Ticket #33704: 33704-login.diff
File 33704-login.diff, 1.7 KB (added by , 8 years ago) |
---|
-
src/wp-login.php
36 36 // Don't index any of these forms 37 37 add_action( 'login_head', 'wp_no_robots' ); 38 38 39 if ( wp_is_mobile() ) 40 add_action( 'login_head', 'wp_login_viewport_meta' ); 39 add_action( 'login_head', 'wp_login_viewport_meta' ); 41 40 42 41 if ( empty($wp_error) ) 43 42 $wp_error = new WP_Error(); … … 124 123 $login_header_title = apply_filters( 'login_headertitle', $login_header_title ); 125 124 126 125 $classes = array( 'login-action-' . $action, 'wp-core-ui' ); 127 if ( wp_is_mobile() )128 $classes[] = 'mobile';129 126 if ( is_rtl() ) 130 127 $classes[] = 'rtl'; 131 128 if ( $interim_login ) { … … 260 257 * @since 3.0.0 261 258 */ 262 259 function wp_shake_js() { 263 if ( wp_is_mobile() )264 return;265 260 ?> 266 261 <script type="text/javascript"> 267 262 addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}; -
src/wp-admin/css/login.css
216 216 width: 100%; 217 217 } 218 218 219 .mobile #login {220 padding: 20px 0;221 }222 223 .mobile #login form {224 margin-left: 0;225 }226 227 .mobile #login #nav,228 .mobile #login #backtoblog {229 margin-left: 8px;230 }231 232 219 body.interim-login { 233 220 height: auto; 234 221 } … … 255 242 width: device-width; 256 243 } 257 244 245 @media screen and ( max-height: 550px ) { 246 #login { 247 padding: 20px 0; 248 } 249 } 250 258 251 @media screen and ( max-width: 782px ) { 259 252 .interim-login input[type=checkbox] { 260 253 height: 16px;