Ticket #42853: 42853.diff
File 42853.diff, 7.1 KB (added by , 6 years ago) |
---|
-
src/js/_enqueues/admin/user-profile.js
238 238 $pass1.data( 'pw', data ); 239 239 } ); 240 240 241 $generateButton.show() ;241 $generateButton.show().focus(); 242 242 $passwordWrapper.hide(); 243 243 244 244 $weakRow.hide( 0, function () { -
src/wp-admin/css/forms.css
427 427 margin-left: 1em; 428 428 } 429 429 430 button.wp-hide-pw > .dashicons { 430 .wp-hide-pw > .dashicons, 431 .wp-cancel-pw > .dashicons { 431 432 position: relative; 432 433 top: 3px; 433 434 } 434 435 436 .wp-cancel-pw .dashicons-no { 437 display: none; 438 } 439 435 440 label, 436 441 #your-profile label + a { 437 442 vertical-align: middle; … … 459 464 background-color: #eee; 460 465 border: 1px solid #ddd; 461 466 color: #23282d; 462 margin: - 2px 5px 5px 1px;467 margin: -1px 0 5px; 463 468 padding: 3px 5px; 464 469 text-align: center; 465 470 width: 25em; … … 515 520 padding-top: 8px; 516 521 } 517 522 523 .wp-pwd [type="text"], 524 .wp-pwd [type="password"] { 525 margin: 0; 526 /* Same height as the buttons */ 527 line-height: 20px; 528 min-height: 28px; 529 max-height: 40px; 530 } 531 518 532 #pass1-text, 519 533 .show-password #pass1 { 520 534 display: none; 521 535 } 522 536 523 .show-password #pass1-text 524 { 537 #pass1-text::-ms-clear { 538 display: none; 539 } 540 541 .show-password #pass1-text { 525 542 display: inline-block; 526 543 } 527 544 … … 1462 1479 1463 1480 .wp-pwd [type="text"], 1464 1481 .wp-pwd [type="password"] { 1465 padding-right: 40px;1482 padding-right: 88px; 1466 1483 } 1467 1484 1468 1485 .wp-pwd button.button { 1469 1486 background: transparent; 1470 border: none;1487 border: 1px solid transparent; 1471 1488 box-shadow: none; 1472 1489 line-height: 2; 1473 1490 margin: 0; 1474 padding: 5px 10px;1491 padding: 5px 9px; 1475 1492 position: absolute; 1476 1493 right: 0; 1477 1494 top: 0; 1478 1495 } 1479 1496 1497 .wp-pwd button.wp-hide-pw { 1498 right: 40px; 1499 } 1500 1480 1501 .wp-pwd button.button:hover, 1481 .wp-pwd button.button:focus, 1502 .wp-pwd button.button:focus { 1503 background: transparent; 1504 } 1505 1482 1506 .wp-pwd button.button:active { 1483 1507 background: transparent; 1508 box-shadow: none; 1509 transform: none; 1484 1510 } 1485 1511 1486 1512 .wp-pwd .button .text { … … 1487 1513 display: none; 1488 1514 } 1489 1515 1516 .wp-cancel-pw .dashicons-no { 1517 display: inline-block; 1518 } 1519 1490 1520 .options-general-php input[type="text"].small-text { 1491 1521 max-width: 6.25em; 1492 1522 margin: 0; … … 1533 1563 .form-wrap .form-field { 1534 1564 padding: 0; 1535 1565 } 1536 1537 /* users */1538 #profile-page .form-table textarea {1539 max-width: 400px;1540 width: auto;1541 }1542 1566 } 1543 1567 1544 1568 @media only screen and (max-height: 480px), screen and (max-width: 450px) { -
src/wp-admin/css/login.css
79 79 } 80 80 81 81 .login .password-input-wrapper { 82 display: table;82 position: relative; 83 83 } 84 84 85 85 .login .input.password-input { 86 display: table-cell;87 86 margin: 0; 88 87 } 89 88 89 .login .input::-ms-clear { 90 display: none; 91 } 92 90 93 .login .pw-weak { 91 94 margin-bottom: 15px; 92 95 } 93 96 94 97 .login .button.button-secondary { 95 display: table-cell; 96 border-radius: 0; 97 vertical-align: middle; 98 background: transparent; 99 border: 1px solid transparent; 100 box-shadow: none; 101 font-size: 14px; 102 line-height: 2; 103 height: auto; 104 margin: 0; 105 padding: 5px 9px; 106 position: absolute; 107 right: 0; 108 top: 0; 98 109 } 99 110 111 .login .button.button-secondary:hover { 112 background: transparent; 113 } 114 115 .login .button.button-secondary:focus { 116 background: transparent; 117 border-color: #5b9dd9; 118 box-shadow: 0 0 3px rgba(0, 115, 170, 0.8); 119 } 120 121 .login .button.button-secondary:active { 122 background: transparent; 123 box-shadow: none; 124 transform: none; 125 } 126 100 127 .login form { 101 128 margin-top: 20px; 102 129 margin-left: 0; … … 127 154 } 128 155 129 156 .login label { 130 color: #72777c;131 157 font-size: 14px; 132 158 } 133 159 … … 209 235 .login input[type="text"] { 210 236 font-size: 24px; 211 237 width: 100%; 212 padding: 3px;238 padding: 5px 45px 5px 5px; 213 239 margin: 2px 6px 16px 0; 214 240 } 215 241 -
src/wp-admin/user-edit.php
618 618 <input type="password" name="pass1" id="pass1" class="regular-text" value="" autocomplete="off" data-pw="<?php echo esc_attr( wp_generate_password( 24 ) ); ?>" aria-describedby="pass-strength-result" /> 619 619 </span> 620 620 <button type="button" class="button wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>"> 621 <span class="dashicons dashicons-hidden" ></span>621 <span class="dashicons dashicons-hidden" aria-hidden="true"></span> 622 622 <span class="text"><?php _e( 'Hide' ); ?></span> 623 623 </button> 624 624 <button type="button" class="button wp-cancel-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Cancel password change' ); ?>"> 625 <span class="dashicons dashicons-no" aria-hidden="true"></span> 625 626 <span class="text"><?php _e( 'Cancel' ); ?></span> 626 627 </button> 627 628 <div style="display:none" id="pass-strength-result" aria-live="polite"></div> -
src/wp-admin/user-new.php
498 498 <input type="password" name="pass1" id="pass1" class="regular-text" autocomplete="off" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" aria-describedby="pass-strength-result" /> 499 499 </span> 500 500 <button type="button" class="button wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>"> 501 <span class="dashicons dashicons-hidden" ></span>501 <span class="dashicons dashicons-hidden" aria-hidden="true"></span> 502 502 <span class="text"><?php _e( 'Hide' ); ?></span> 503 503 </button> 504 504 <button type="button" class="button wp-cancel-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Cancel password change' ); ?>"> 505 <span class="dashicons dashicons-no" aria-hidden="true"></span> 505 506 <span class="text"><?php _e( 'Cancel' ); ?></span> 506 507 </button> 507 508 <div style="display:none" id="pass-strength-result" aria-live="polite"></div> -
src/wp-login.php
712 712 <div class="wp-pwd"> 713 713 <div class="password-input-wrapper"> 714 714 <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" /> 715 < spanclass="button button-secondary wp-hide-pw hide-if-no-js">716 <span class="dashicons dashicons-hidden" ></span>717 </ span>715 <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js"> 716 <span class="dashicons dashicons-hidden" aria-hidden="true"></span> 717 </button> 718 718 </div> 719 719 <div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php _e( 'Strength indicator' ); ?></div> 720 720 </div>