Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move mobile devices CSS from wp-login.php to wp-admin.css, props Serg…

…eyBiryukov, fixes #19673

git-svn-id: http://svn.automattic.com/wordpress/trunk@20430 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
commit 000b7a93134abf69e6f7c698395f43bbea11ef27 1 parent 7492250
azaozz authored
Showing with 23 additions and 11 deletions.
  1. +20 −0 wp-admin/css/wp-admin.dev.css
  2. +3 −11 wp-login.php
View
20 wp-admin/css/wp-admin.dev.css
@@ -6200,6 +6200,26 @@ a.rsswidget {
text-align: center;
}
+.mobile #login {
+ padding: 20px 0;
+}
+
+.mobile #login form,
+.mobile #login .message,
+.mobile #login_error {
+ margin-left: 0;
+}
+
+.mobile #login #nav,
+.mobile #login #backtoblog {
+ margin-left: 8px;
+}
+
+.mobile #login h1 a {
+ width: auto;
+}
+
+
/* ms */
/* Dashboard: MS Specific Data */
#dashboard_right_now p.musub {
View
14 wp-login.php
@@ -64,16 +64,8 @@ function login_header($title = 'Log In', $message = '', $wp_error = '') {
wp_admin_css( 'wp-admin', true );
wp_admin_css( 'colors-fresh', true );
- if ( wp_is_mobile() ) {
- ?>
- <meta name="viewport" content="width=320; initial-scale=0.9; maximum-scale=1.0; user-scalable=0;" />
- <style type="text/css" media="screen">
- .login form, .login .message, #login_error { margin-left: 0px; }
- .login #nav, .login #backtoblog { margin-left: 8px; }
- .login h1 a { width: auto; }
- #login { padding: 20px 0; }
- </style>
- <?php
+ if ( wp_is_mobile() ) { ?>
+ <meta name="viewport" content="width=320; initial-scale=0.9; maximum-scale=1.0; user-scalable=0;" /><?php
}
do_action( 'login_enqueue_scripts' );
@@ -92,7 +84,7 @@ function login_header($title = 'Log In', $message = '', $wp_error = '') {
?>
</head>
- <body class="login">
+ <body class="login<?php if ( wp_is_mobile() ) echo ' mobile'; ?>">
<div id="login">
<h1><a href="<?php echo esc_url( $login_header_url ); ?>" title="<?php echo esc_attr( $login_header_title ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
<?php
Please sign in to comment.
Something went wrong with that request. Please try again.