diff --git src/wp-admin/css/login.css src/wp-admin/css/login.css
index f0261a6819..63b5ba981c 100644
|
|
p { |
79 | 79 | margin-bottom: 15px; |
80 | 80 | } |
81 | 81 | |
| 82 | .login .wp-pwd-label-wrap:after { |
| 83 | content: ""; |
| 84 | display: table; |
| 85 | clear: both; |
| 86 | } |
| 87 | |
| 88 | .login .wp-pwd-label-wrap label { |
| 89 | float: left; |
| 90 | } |
| 91 | |
82 | 92 | .login .button.wp-hide-pw { |
| 93 | float: right; |
83 | 94 | background: transparent; |
84 | 95 | border: 1px solid transparent; |
85 | 96 | box-shadow: none; |
86 | | font-size: 14px; |
87 | | line-height: 2; |
88 | | width: 2.5rem; |
89 | | height: 2.5rem; |
90 | | min-width: 40px; |
91 | | min-height: 40px; |
| 97 | line-height: 2.15; |
| 98 | font-size: 12px; |
| 99 | height: 1.25rem; |
| 100 | min-height: 0; |
92 | 101 | margin: 0; |
93 | | padding: 5px 9px; |
94 | | position: absolute; |
95 | | right: 0; |
96 | | top: 0; |
| 102 | padding: 0; |
| 103 | position: relative; |
| 104 | top: -2px; |
| 105 | } |
| 106 | |
| 107 | @media screen and (max-width: 782px) { |
| 108 | .login .button.wp-hide-pw { |
| 109 | line-height: 2.4; |
| 110 | } |
97 | 111 | } |
98 | 112 | |
99 | 113 | .login .button.wp-hide-pw:hover { |
… |
… |
p { |
115 | 129 | } |
116 | 130 | |
117 | 131 | .login .button.wp-hide-pw .dashicons { |
118 | | width: 1.25rem; |
| 132 | width: 1rem; |
119 | 133 | height: 1.25rem; |
120 | | top: 0.25rem; |
| 134 | top: 0.35rem; |
| 135 | font-size: 16px; |
121 | 136 | } |
122 | 137 | |
123 | 138 | .login .wp-pwd { |
diff --git src/wp-login.php src/wp-login.php
index 0b552ef326..1f6f4a1cab 100644
|
|
switch ( $action ) { |
962 | 962 | <input type="hidden" id="user_login" value="<?php echo esc_attr( $rp_login ); ?>" autocomplete="off" /> |
963 | 963 | |
964 | 964 | <div class="user-pass1-wrap"> |
965 | | <p> |
| 965 | <p class="wp-pwd-label-wrap"> |
966 | 966 | <label for="pass1"><?php _e( 'New password' ); ?></label> |
| 967 | <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>"> |
| 968 | <span class="dashicons dashicons-hidden" aria-hidden="true"></span> <?php _e( 'Hide' ) ?> |
| 969 | </button> |
967 | 970 | </p> |
968 | 971 | |
969 | 972 | <div class="wp-pwd"> |
970 | 973 | <input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 16 ) ); ?>" name="pass1" id="pass1" class="input password-input" size="24" value="" autocomplete="off" aria-describedby="pass-strength-result" /> |
971 | 974 | |
972 | | <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>"> |
973 | | <span class="dashicons dashicons-hidden" aria-hidden="true"></span> |
974 | | </button> |
975 | 975 | <div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php _e( 'Strength indicator' ); ?></div> |
976 | 976 | </div> |
977 | 977 | <div class="pw-weak"> |
… |
… |
switch ( $action ) { |
1368 | 1368 | </p> |
1369 | 1369 | |
1370 | 1370 | <div class="user-pass-wrap"> |
1371 | | <label for="user_pass"><?php _e( 'Password' ); ?></label> |
1372 | | <div class="wp-pwd"> |
1373 | | <input type="password" name="pwd" id="user_pass"<?php echo $aria_describedby_error; ?> class="input password-input" value="" size="20" /> |
1374 | | <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Show password' ); ?>"> |
| 1371 | <div class="wp-pwd-label-wrap"> |
| 1372 | <label for="user_pass"><?php _e( 'Password' ); ?></label> |
| 1373 | <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Show' ); ?>"> |
1375 | 1374 | <span class="dashicons dashicons-visibility" aria-hidden="true"></span> |
| 1375 | <?php _e( 'Show' ); ?> |
1376 | 1376 | </button> |
1377 | 1377 | </div> |
| 1378 | <div class="wp-pwd"> |
| 1379 | <input type="password" name="pwd" id="user_pass"<?php echo $aria_describedby_error; ?> class="input password-input" value="" size="20" /> |
| 1380 | </div> |
1378 | 1381 | </div> |
1379 | 1382 | <?php |
1380 | 1383 | |