Changeset 2492
- Timestamp:
- 02/10/2016 08:05:09 PM (9 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login
- Files:
-
- 2 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/footer.php
r2313 r2492 7 7 ?> 8 8 </div> 9 <div class="loginfooter">wordpress.org • code is poetry</div>10 </div>11 9 12 10 <?php wp_footer(); ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php
r2454 r2492 1 1 <?php 2 2 /** 3 * W .org login functions and definitions.3 * WP.org login functions and definitions. 4 4 * 5 5 * @package wporg-login … … 46 46 */ 47 47 function wporg_login_replace_css() { 48 $css_file = '/stylesheets/login.css'; 49 wp_deregister_style( 'login' ); 50 wp_register_style( 'login', get_stylesheet_directory_uri() . $css_file, array( 'buttons', 'dashicons', 'open-sans' ), filemtime( __DIR__ . $css_file ) ); 48 wp_enqueue_style( 'wporg-login', get_template_directory_uri() . '/stylesheets/login.css', array( 'login', 'dashicons', 'l10n' ), 1 ); 51 49 } 52 50 add_action( 'login_init', 'wporg_login_replace_css' ); 53 51 54 /**55 * Log failed logins to Google Analytics.56 */57 $wporg_login_failed_username = '';58 function wporg_login_failed( $errors ) {59 global $wporg_login_failed_username;60 $wporg_login_failed_username = ( 'incorrect_password' == $errors->get_error_code() || 'empty_password' == $errors->get_error_code() ) ? esc_attr(wp_unslash($_POST['log'])) : '';61 62 return $errors;63 }64 add_action( 'wp_login_errors', 'wporg_login_failed', 10, 1 );65 52 66 53 /** 67 * Add Google Analytics tracking to login pages.54 * Enqueue scripts and styles. 68 55 */ 69 function wporg_login_analytics() { 70 global $wporg_login_failed_username; 71 ?> 72 <script type="text/javascript"> 73 var _gaq = _gaq || []; 74 _gaq.push(['_setAccount', 'UA-52447-1']); 75 _gaq.push(['_setDomainName', 'wordpress.org']); 76 _gaq.push(['_trackPageview']); 77 <?php if ( $wporg_login_failed_username ) { ?> 78 _gaq.push(['_trackEvent', 'user', 'login-failed', '<?php echo $wporg_login_failed_username; ?>']); 79 <?php } ?> 80 (function() { 81 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; 82 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; 83 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); 84 })(); 85 function recordOutboundLink(link, category, action) { 86 _gaq.push(['_trackEvent', category, action]) 87 setTimeout('document.location = "' + link.href + '"', 100); 56 function wporg_login_scripts() { 57 $script_debug = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG; 58 $suffix = $script_debug ? '' : '.min'; 59 60 // Concatenates core scripts when possible. 61 if ( ! $script_debug ) { 62 $GLOBALS['concatenate_scripts'] = true; 63 } 64 65 wp_enqueue_style( 'wporg-normalize', get_template_directory_uri() . '/stylesheets/normalize.css', 3 ); 66 wp_enqueue_style( 'wporg-login', get_template_directory_uri() . '/stylesheets/login.css', array( 'login', 'dashicons', 'l10n' ), 1 ); 67 68 // No emoji support needed. 69 remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); 70 remove_action( 'wp_print_styles', 'print_emoji_styles' ); 71 72 // No Jetpack styles needed. 73 add_filter( 'jetpack_implode_frontend_css', '__return_false' ); 74 75 // No embeds needed. 76 remove_action( 'wp_head','wp_oembed_add_discovery_links' ); 77 remove_action( 'wp_head', 'wp_oembed_add_host_js' ); 88 78 } 89 </script> 90 <?php 91 } 92 add_action( 'wp_footer', 'wporg_login_analytics' ); 93 add_action( 'login_footer', 'wporg_login_analytics' ); 79 add_action( 'wp_enqueue_scripts', 'wporg_login_scripts' ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/header.php
r2351 r2492 5 5 * @package wporg-login 6 6 */ 7 8 $normalize_css = '/stylesheets/normalize.css';9 wp_enqueue_style( 'normalize', get_template_directory_uri() . $normalize_css, array(), filemtime( __DIR__ . $normalize_css ) );10 11 $login_css = '/stylesheets/login.css';12 wp_enqueue_style( 'custom-login', get_template_directory_uri() . $login_css, array(), filemtime( __DIR__ . $login_css ) );13 7 ?> 14 8 <!doctype html> … … 17 11 <meta charset="utf-8"> 18 12 <meta http-equiv="x-ua-compatible" content="ie=edge"> 19 <title><?php _e( 'WordPress.org Login', 'wporg-login' ); ?></title> 20 <meta name="description" content=""> 13 <title><?php _e( 'WordPress.org Login' ); ?></title> 21 14 <meta name="viewport" content="width=device-width, initial-scale=1"> 22 15 23 16 <?php wp_head(); ?> 24 17 </head> 25 <body >18 <body class="wp-core-ui login"> 26 19 27 <div class="wrapper"> 28 <div class="login"> 29 <h1><a href="https://wordpress.org/" title="WordPress.org" tabindex="-1"><?php _e( 'WordPress.org Login', 'wporg-login' ); ?></a></h1> 20 <div id="login"> 21 <h1><a href="https://wordpress.org/" title="WordPress.org" tabindex="-1"><?php _e( 'WordPress.org Login' ); ?></a></h1> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/partials/404.php
r2323 r2492 1 1 <p class="center"><?php _e( '404, not found.', 'wporg-login' ); ?></p> 2 2 3 <p class="nav">3 <p id="nav"> 4 4 <a href="/"><?php _e( '← Back to login', 'wporg-login' ); ?></a> 5 5 </p> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/partials/checkemail.php
r2321 r2492 1 <p class="center "><?php _e( 'Check your email for theconfirmation link.', 'wporg-login' ); ?></p>1 <p class="center singleline"><?php _e( 'Check your email for a confirmation link.', 'wporg-login' ); ?></p> 2 2 3 <p class="nav">3 <p id="nav"> 4 4 <a href="/"><?php _e( '← Back to login', 'wporg-login' ); ?></a> 5 5 </p> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/partials/loggedout.php
r2321 r2492 1 1 <p class="center"><?php _e( 'You are now logged out.', 'wporg-login' ); ?></p> 2 2 3 <p class="nav">3 <p id="nav"> 4 4 <a href="/"><?php _e( '← Back to login', 'wporg-login' ); ?></a> 5 5 </p> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/partials/login.php
r2466 r2492 1 <p class="intro">Log in to your WordPress.org account to contribute to WordPress, get help in the support forum, or rate and review themes and plugins.</p> 2 1 3 <?php wp_login_form(); ?> 2 4 3 <p class="nav">4 <a href=" <?php echo wp_lostpassword_url( '/' ); ?>" title="<?php _e( 'Password Lost and Found', 'wporg-login' ); ?>"><?php _e( 'Forgot password?', 'wporg-login' ); ?></a> • 5 <p id="nav"> 6 <a href="/lostpassword/" title="<?php _e( 'Password Lost and Found', 'wporg-login' ); ?>"><?php _e( 'Lost password?', 'wporg-login' ); ?></a> • 5 7 <a href="https://wordpress.org/support/register.php" title="<?php _e( 'Create an account', 'wporg-login' ); ?>"><?php _e( 'Create an account', 'wporg-login' ); ?></a> 6 8 </p> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/partials/lostpassword.php
r2323 r2492 1 <p><?php _e( 'Please enter your username or email address. You will receive a link to create a new password via email.', 'wporg-login' ); ?></p> 1 2 2 3 3 <form name="lostpasswordform" id="lostpasswordform" action="/wp-login.php?action=lostpassword" method="post"> 4 <p class="intro"><?php _e( 'Please enter your username or email address. You will receive a link to create a new password via email.', 'wporg-login' ); ?></p> 4 5 <p> 5 6 <label for="user_login"><?php _e( 'Username or Email', 'wporg-login' ); ?> … … 11 12 </p> 12 13 </form> 13 <p class="nav">14 <p id="nav"> 14 15 <a href="/"><?php _e( '← Back to login', 'wporg-login' ); ?></a> 15 16 </p> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/partials/oauth.php
r2308 r2492 1 1 <p><?php _e( 'Coming soon. :)', 'wporg-login' ); ?></p> 2 2 3 <p class="nav">3 <p id="nav"> 4 4 <a href="/"><?php _e( '← Back to login', 'wporg-login' ); ?></a> 5 5 </p> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/stylesheets/login.css
r2353 r2492 1 @import url(../stylesheets/l10n.css);2 @import url(../stylesheets/dashicons.css);3 4 /**5 * * #.# Compass Reset6 *7 * A quick way to reset some of the HTML elements across browsers8 */9 10 html, body, div, span, applet, object, iframe,11 h1, h2, h3, h4, h5, h6, p, blockquote, pre,12 a, abbr, acronym, address, big, cite, code,13 del, dfn, em, img, ins, kbd, q, s, samp,14 small, strike, strong, sub, sup, tt, var,15 b, u, i, center,16 dl, dt, dd, ol, ul, li,17 fieldset, form, label, legend,18 table, caption, tbody, tfoot, thead, tr, th, td,19 article, aside, canvas, details, embed,20 figure, figcaption, footer, header, hgroup,21 menu, nav, output, ruby, section, summary,22 time, mark, audio, video {23 margin: 0;24 padding: 0;25 border: 0;26 font: inherit;27 font-size: 100%;28 vertical-align: baseline;29 }30 31 html {32 line-height: 1;33 }34 35 ol, ul {36 list-style: none;37 }38 39 table {40 border-collapse: collapse;41 border-spacing: 0;42 }43 44 caption, th, td {45 text-align: left;46 font-weight: normal;47 vertical-align: middle;48 }49 50 q, blockquote {51 quotes: none;52 }53 54 q:before, q:after, blockquote:before, blockquote:after {55 content: "";56 content: none;57 }58 59 a img {60 border: none;61 }62 63 article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {64 display: block;65 }66 67 1 /** 68 2 * #.# wp-login CSS overwrites … … 71 5 */ 72 6 73 button, input, optgroup, select, textarea {74 color: inherit;75 font: inherit;76 margin: 0;77 }78 79 7 body.login { 80 padding-top: 8%; 8 /* Using flexbox to control the vertical alignment of the form and white box */ 9 display: -webkit-flex; 10 display: flex; 11 -webkit-align-items:center; 12 align-items:center; 81 13 } 82 14 … … 87 19 border-left: none; 88 20 background-color: transparent; 89 color: # f5f5f5 !important;21 color: #555D66; 90 22 padding: 0; 91 23 -webkit-box-shadow: none; … … 93 25 } 94 26 95 .wp-core-ui.login .button-primary { 96 width: 100%; 97 height: 40px; 98 background: #00a0d2; 99 color: #fff; 100 border: none; 101 -webkit-border-radius: 2px; 102 -moz-border-radius: 2px; 103 border-radius: 2px; 104 outline: none; 105 position: relative; 106 text-shadow: none; 107 font-size: 16px; 108 -webkit-box-shadow: none; 109 box-shadow: none; 110 } 111 112 .wp-core-ui.login .button-primary:hover { 113 background: #008db9; 114 -webkit-transition: background 0.2s ease; 115 transition: background 0.2s ease; 116 } 117 118 .wp-core-ui.login .button-primary:active { 119 -webkit-box-shadow: none; 120 box-shadow: none; 121 top: 0; 27 .wp-core-ui .button-primary, .wp-core-ui.login .button-primary { 28 width:100%; 29 height:40px; 30 font-size:14px; 122 31 } 123 32 … … 126 35 } 127 36 128 .login #nav,129 .container #nav {130 font-size: 0.8em;131 padding: 0;132 margin: 24px 0;133 text-align: center;134 }135 136 37 #pass-strength-result { 137 background: # 23282d;38 background: #FFF; 138 39 } 139 40 140 41 #pass-strength-result.strong { 42 background-color:#FFF; 43 border-color:transparent; 141 44 color: #46b450; /* Green */ 142 45 -webkit-box-shadow: 143 inset 0 1 6px #23282d,144 inset 0 -1 6px #23282d,46 inset 0 14px #FFF, 47 inset 0 -14px #FFF, 145 48 inset -100px 0 #46b450, 146 49 inset 100px 0 #46b450; 147 50 box-shadow: 148 inset 0 1 6px #23282d,149 inset 0 -1 6px #23282d,51 inset 0 14px #FFF, 52 inset 0 -14px #FFF, 150 53 inset -100px 0 #46b450, 151 54 inset 100px 0 #46b450; … … 153 56 154 57 #pass-strength-result.good { 58 background-color:#FFF; 59 border-color:transparent; 155 60 color: #ffb900; /* Orange */ 156 61 -webkit-box-shadow: 157 inset 0 1 6px #23282d,158 inset 0 -1 6px #23282d,159 inset - 100px 0 #ffb900,160 inset 100px 0 #ffb900;62 inset 0 14px #FFF, 63 inset 0 -14px #FFF, 64 inset -80px 0 #ffb900, 65 inset 80px 0 #ffb900; 161 66 box-shadow: 162 inset 0 1 6px #23282d,163 inset 0 -1 6px #23282d,164 inset - 100px 0 #ffb900,165 inset 100px 0 #ffb900;67 inset 0 14px #FFF, 68 inset 0 -14px #FFF, 69 inset -80px 0 #ffb900, 70 inset 80px 0 #ffb900; 166 71 } 167 72 168 73 #pass-strength-result.bad, #pass-strength-result.short { 74 background-color:#FFF; 75 border-color:transparent; 169 76 color: #dc3232; /* Red */ 170 77 -webkit-box-shadow: 171 inset 0 1 6px #23282d,172 inset 0 -1 6px #23282d,173 inset - 100px 0 #dc3232,174 inset 100px 0 #dc3232;78 inset 0 14px #FFF, 79 inset 0 -14px #FFF, 80 inset -80px 0 #dc3232, 81 inset 80px 0 #dc3232; 175 82 box-shadow: 176 inset 0 16px #23282d, 177 inset 0 -16px #23282d, 178 inset -100px 0 #dc3232, 179 inset 100px 0 #dc3232; 180 } 83 inset 0 14px #FFF, 84 inset 0 -14px #FFF, 85 inset -80px 0 #dc3232, 86 inset 80px 0 #dc3232; 87 } 88 89 .reset-pass { 90 margin-bottom:0; 91 } 92 93 #loginform { 94 margin: 0 !important; 95 padding: 0 !important; 96 background: transparent !important; 97 -webkit-box-shadow: none !important; 98 box-shadow: none !important; 99 } 100 101 #login form p { 102 margin:0; 103 } 104 105 181 106 182 107 /** … … 185 110 * The rest of the CSS is for all login pages. 186 111 */ 187 html, body {188 height: 100%;189 }190 191 html {192 background: #23282d;193 margin: 0;194 padding: 0;195 }196 112 197 113 body { 198 color: #f5f5f5; 199 font-family: "Open Sans", sans-serif; 200 font-size: 16px; 201 font-weight: 300; 202 line-height: 1.4; 114 color: #555D66; 115 font-size: 14px; 203 116 } 204 117 … … 210 123 211 124 a { 212 color: # 009fd4;213 text-decoration: none;125 color: #555D66 !important; 126 text-decoration: underline !important; 214 127 font-weight: normal; 215 -webkit-transition-property: border, background, color;216 transition-property: border, background, color;217 -webkit-transition-duration: 0.05s;218 transition-duration: 0.05s;219 -webkit-transition-timing-function: ease-in-out;220 transition-timing-function: ease-in-out;221 128 outline: 0; 222 129 } … … 239 146 } 240 147 241 .subtle {242 color: #b4b9be;243 font-size: 0.8em;244 font-weight: normal;245 }246 247 148 .small { 248 149 font-size: 0.8em; … … 254 155 } 255 156 256 .btn { 257 width: 100%; 258 height: 40px; 259 background: #b4b9be; 260 border: none; 261 color: #32373c; 262 -webkit-border-radius: 2px; 263 border-radius: 2px; 264 outline: none; 265 position: relative; 266 } 267 268 .btn:hover { 269 background: #99a0a6; 270 -webkit-transition: background 0.2s ease; 271 transition: background 0.2s ease; 272 } 273 274 .btn:focus { 275 -webkit-box-shadow: 0 0 0 2px #00A0D2; 276 box-shadow: 0 0 0 2px #00A0D2; 277 } 278 279 .btn:active { 280 top: 1px; 281 } 282 283 .btn.btn-primary { 284 background: #00a0d2; 285 color: #fff; 286 } 287 288 .btn.btn-primary:hover { 289 background: #008db9; 290 } 291 292 .button-primary { 293 width: 100%; 294 height: 40px; 295 background: #00a0d2; 296 color: #fff; 297 border: none; 298 -webkit-border-radius: 2px; 299 border-radius: 2px; 300 outline: none; 301 position: relative; 302 } 303 304 .button-primary:hover, .button-primary:focus { 305 background: #008db9; 306 -webkit-transition: background 0.2s ease; 307 transition: background 0.2s ease; 308 } 309 310 .button-primary:focus { 311 -webkit-box-shadow: 0 0 0 2px #00A0D2; 312 box-shadow: 0 0 0 2px #00A0D2; 313 } 314 315 .button-primary:active { 316 top: 1px; 157 .wp-core-ui .button-primary { 158 -webkit-box-shadow:none; 159 box-shadow:none; 317 160 } 318 161 … … 327 170 } 328 171 329 .login, .container { 172 .singleline { 173 position:relative; 174 left:-12px; 175 width:278px; 176 } 177 178 #login { 330 179 width: 304px; 331 padding: 0; 332 margin: auto; 333 } 334 335 .login h1, .container h1 { 180 padding: 24px; 181 margin: 0 auto 0; 182 background: #FFF; 183 position: relative; 184 -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2); 185 box-shadow: 0 1px 2px rgba(0,0,0,.2); 186 } 187 188 #login h1 { 336 189 text-align: center; 337 margin-bottom: 56px; 338 } 339 340 .login h1 a, .container h1 a { 341 background-image: url(../images/wporg-logotype-standard.png); 342 background-image: none, url(../images/wporg-logotype-standard.svg); 343 -webkit-background-size: 253px; 344 background-size: 253px; 190 margin-bottom: 24px; 191 position: absolute; 192 top: -72px; 193 width: 100%; 194 left: 0; 195 } 196 197 #login h1 a { 198 background-image: url(../images/wporg-logo.png); 199 background-image: none, url(../images/wporg-logo.svg); 200 -webkit-background-size: 256px; 201 background-size: 256px; 345 202 background-position: center top; 346 203 background-repeat: no-repeat; … … 354 211 overflow: hidden; 355 212 display: block; 356 } 357 358 .login .message, 359 .login #login_error, 360 .container .message, 361 .container #login_error { 213 -webkit-transition:none; 214 transition:none; 215 } 216 217 p.intro, #login .message { 218 margin-bottom:24px !important; 219 } 220 221 #login .message + #login_error { 222 margin-top:0 !important; 223 border-top:1px solid #f5f5f5; 224 } 225 226 #login #login_error { 362 227 border-left: 4px solid #00a0d2; 363 228 padding: 12px; 364 margin-left: 0; 365 background-color: #fff; 366 -webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1); 367 box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1); 368 color: #000 !important; 369 } 370 371 .login #login_error, .container #login_error { 229 margin:-24px 0 24px -24px; 230 background-color: #fbfbfb; 231 width:304px; 232 border-bottom:1px solid #f5f5f5; 233 -webkit-box-shadow:none !important; 234 box-shadow:none !important; 235 } 236 237 #login #login_error { 372 238 border-left-color: #dc3232; 373 239 } 374 240 375 .login .nav, .container .nav { 376 font-size: 0.8em; 377 padding: 0; 378 margin: 24px 0; 379 text-align: center; 241 #login #nav { 242 font-size: 13px; 243 padding: 0; 244 margin: 24px auto; 245 text-align: center; 246 position: absolute; 247 left: 0; 248 bottom: -68px; 249 width: 100%; 250 } 251 252 .login form { 253 margin: 0 !important; 254 padding: 0 !important; 255 background: transparent !important; 256 -webkit-box-shadow: none !important; 257 box-shadow: none !important; 380 258 } 381 259 … … 396 274 form .login-remember { 397 275 font-weight: normal; 398 margin-bottom: 16px ;276 margin-bottom: 16px !important; 399 277 } 400 278 401 279 form .forgetmenot label, 402 280 form .login-remember label { 403 font-size: 0.8em;281 font-size:12px; 404 282 line-height: 1; 405 283 cursor: pointer; … … 407 285 408 286 form .submit { 409 margin: 8px 0 0 0 ;287 margin: 8px 0 0 0 !important; 410 288 padding: 0; 411 289 } … … 417 295 margin: 2px 6px 16px 0; 418 296 height: 40px; 419 outline: none;420 297 color: #23282d; 421 298 font-weight: 400; 422 299 } 423 300 424 form input[type="text"],425 form input[type="password"],426 form input[type="checkbox"],427 form input[type="radio"] {428 background: #fbfbfb;429 border: none;430 -webkit-transition: all 0.1s ease;431 transition: all 0.1s ease;432 }433 form input[type="text"]:focus,434 form input[type="password"]:focus,435 form input[type="checkbox"]:focus,436 form input[type="radio"]:focus {437 background: #fff;438 -webkit-box-shadow: 0 0 0 2px #00A0D2, inset 0 1px 2px rgba(0,0,0,.5);439 box-shadow: 0 0 0 2px #00A0D2, inset 0 1px 2px rgba(0,0,0,.5);440 }441 442 form input[type="checkbox"], form input[type="radio"] {443 cursor: pointer;444 display: inline-block;445 width: 16px;446 min-width: 16px;447 height: 16px;448 margin: -4px 4px 0 0;449 outline: 0;450 padding: 0;451 text-align: center;452 vertical-align: middle;453 -webkit-appearance: none;454 }455 456 form input[type="checkbox"]:checked:before,457 form input[type="checkbox"]:checked:before,458 form input[type="radio"]:checked:before,459 form input[type="radio"]:checked:before {460 float: left;461 display: inline-block;462 vertical-align: middle;463 width: 16px;464 font: normal 21px/1 dashicons;465 speak: none;466 -webkit-font-smoothing: antialiased;467 -moz-osx-font-smoothing: grayscale;468 }469 470 form input[type="checkbox"]:checked:before {471 content: "\f147";472 margin: -3px 0 0 -4px;473 color: #1e8cbe;474 }475 476 301 form#authorize { 477 302 margin-bottom: 24px; 478 }479 480 label {481 color: #B4B9BE;482 303 } 483 304 … … 493 314 text-align: center; 494 315 width: 100%; 495 }496 497 .wrapper {498 padding: 8% 0 80px;499 min-height: 100%;500 position: relative;501 }502 503 .loginfooter {504 position: absolute;505 bottom: 0;506 width: 100%;507 height: 48px;508 text-align: center;509 text-transform: uppercase;510 letter-spacing: 1px;511 font-size: 0.8em;512 }513 514 @media (max-height: 499px) {515 516 .loginfooter {517 position: relative;518 bottom: inherit;519 }520 316 } 521 317 … … 540 336 margin-bottom: 24px; 541 337 } 338 339 @media (max-width:376px) { 340 body, html { 341 background:#FFF; 342 } 343 body.login { 344 /* Using flexbox to control the vertical alignment of the form and white box */ 345 display:flex; 346 align-items:center; 347 } 348 #login { 349 -webkit-box-shadow:none; 350 box-shadow:none; 351 padding:20px 0; 352 } 353 #login #login_error { 354 margin-left:0; 355 } 356 } 357 358 @media (max-width:352px) { 359 #login { 360 width:100%; 361 padding:20px 24px; 362 } 363 #login h1 { 364 padding:0 24px 24px; 365 } 366 #login h1 a { 367 -webkit-background-size:100%; 368 background-size:100%; 369 } 370 }
Note: See TracChangeset
for help on using the changeset viewer.