New colors and small improvements for the pwd strength meter, includes patch by Simek, fixes #7588

git-svn-id: https://develop.svn.wordpress.org/trunk@8733 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2008-08-26 00:40:10 +00:00
parent bda582ab0d
commit 03207bf738
4 changed files with 34 additions and 42 deletions

View File

@ -403,26 +403,27 @@ input.readonly {
#pass-strength-result { #pass-strength-result {
background-color: #e3e3e3; background-color: #e3e3e3;
border-color: #000; border-color: #ccc !important;
} }
#pass-strength-result.bad { #pass-strength-result.bad {
background-color: #ffeff7; background-color: #ffb78c;
border-color: #c69; border-color: #ff853c !important;
} }
#pass-strength-result.good { #pass-strength-result.good {
background-color: #effff4; background-color: #ffec8b;
border-color: #66cc87; border-color: #fc0 !important;
} }
#pass-strength-result.short { #pass-strength-result.short {
background-color: #e3e3e3; background-color: #ffa0a0;
border-color: #f04040 !important;
} }
#pass-strength-result.strong { #pass-strength-result.strong {
background-color: #59ef86; background-color: #c3ff88;
border-color: #319f52; border-color: #8dff1c !important;
} }
.checkbox, .side-info, #your-profile #rich_editing { .checkbox, .side-info, #your-profile #rich_editing {

View File

@ -387,27 +387,28 @@ input.readonly {
} }
#pass-strength-result { #pass-strength-result {
background-color: #e3e3e3; background-color: #eee;
border-color: #000; border-color: #ddd !important;
} }
#pass-strength-result.bad { #pass-strength-result.bad {
background-color: #ffeff7; background-color: #ffb78c;
border-color: #c69; border-color: #ff853c !important;
} }
#pass-strength-result.good { #pass-strength-result.good {
background-color: #effff4; background-color: #ffec8b;
border-color: #66cc87; border-color: #fc0 !important;
} }
#pass-strength-result.short { #pass-strength-result.short {
background-color: #e3e3e3; background-color: #ffa0a0;
border-color: #f04040 !important;
} }
#pass-strength-result.strong { #pass-strength-result.strong {
background-color: #59ef86; background-color: #c3ff88;
border-color: #319f52; border-color: #8dff1c !important;
} }
.checkbox, .side-info, #your-profile #rich_editing { .checkbox, .side-info, #your-profile #rich_editing {

View File

@ -341,7 +341,6 @@ if ( $show_password_fields ) :
<td><input type="password" name="pass1" id="pass1" size="16" value="" /> <?php _e("If you would like to change the password type a new one. Otherwise leave this blank."); ?><br /> <td><input type="password" name="pass1" id="pass1" size="16" value="" /> <?php _e("If you would like to change the password type a new one. Otherwise leave this blank."); ?><br />
<input type="password" name="pass2" id="pass2" size="16" value="" /> <?php _e("Type your new password again."); ?><br /> <input type="password" name="pass2" id="pass2" size="16" value="" /> <?php _e("Type your new password again."); ?><br />
<?php if ( $is_profile_page ): ?> <?php if ( $is_profile_page ): ?>
<p><strong><?php _e('Password Strength'); ?></strong></p>
<div id="pass-strength-result"><?php _e('Strength indicator'); ?></div> <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div>
<p><?php _e('Hint: Your password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ &amp; ).'); ?></p> <p><?php _e('Hint: Your password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ &amp; ).'); ?></p>
<?php endif; ?> <?php endif; ?>

View File

@ -1,4 +1,9 @@
.plugins .name { .plugins .name,
#pass-strength-result.strong,
#pass-strength-result.short,
.button-highlighted,
#quicktags #ed_strong,
#ed_reply_toolbar #ed_reply_strong {
font-weight: bold; font-weight: bold;
} }
@ -231,10 +236,6 @@ table#availablethemes td.bottom {
text-decoration: none; text-decoration: none;
} }
.button-highlighted {
font-weight: bold;
}
#wpcontent select { #wpcontent select {
font: 12px/20px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif; font: 12px/20px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
padding: 2px; padding: 2px;
@ -329,11 +330,6 @@ textarea.all-options, input.all-options {
display: inline-block; display: inline-block;
} }
#quicktags #ed_strong,
#ed_reply_toolbar #ed_reply_strong {
font-weight: bold;
}
#quicktags #ed_link, #quicktags #ed_link,
#ed_reply_toolbar #ed_reply_link { #ed_reply_toolbar #ed_reply_link {
text-decoration: underline; text-decoration: underline;
@ -585,11 +581,13 @@ td.media-icon img {
} }
#pass-strength-result { #pass-strength-result {
padding: 3px 5px 3px 5px;
margin-top: 3px;
text-align: center;
border-width: 1px;
border-style: solid; border-style: solid;
border-width: 1px;
float: left;
margin: 12px 5px 5px 1px;
padding: 3px 5px;
text-align: center;
width: 200px;
} }
a.view-comment-post-link { a.view-comment-post-link {
@ -1020,13 +1018,6 @@ html, body {
width: 300px; width: 300px;
} }
#pass-strength-result {
width: 197px;
float: left;
margin-right: 5px;
border: 1px solid #ccc !important;
}
#profile-page .form-table #rich_editing { #profile-page .form-table #rich_editing {
margin-right: 5px margin-right: 5px
} }