/* Widen the core password field so the strength message fits underneath. */
input.password-confirm, input.password-field {
width: 20em;
}
.password-strength-check { position: relative;}
.password-strength-message-strength,
.password-strength-message-requirements,
.password-strength-message-flaws {font-size: 12px;}
/* Bar */
.password-strength-strength-bar { position: absolute; top: 0; z-index: 100; }
.password-strength-strength-bar .bar,
.password-strength-strength-bar .value { height: 3px; }
.password-strength-strength-bar .bar { position: relative; background-color: #e9e9e9; overflow: hidden; }
.password-strength-strength-bar .value {
position: absolute;
top: 0;
left: 0;
width: 0;
background-color: transparent;
-webkit-transition: width 0.75s cubic-bezier(0.785, 0.135, 0.15, 0.86), opacity 0.2s linear, background-color 0.75s linear;
-moz-transition: width 0.75s cubic-bezier(0.785, 0.135, 0.15, 0.86), opacity 0.2s linear, background-color 0.75s linear;
-ms-transition: width 0.75s cubic-bezier(0.785, 0.135, 0.15, 0.86), opacity 0.2s linear, background-color 0.75s linear;
-o-transition: width 0.75s cubic-bezier(0.785, 0.135, 0.15, 0.86), opacity 0.2s linear, background-color 0.75s linear;
transition: width 0.75s cubic-bezier(0.785, 0.135, 0.15, 0.86), opacity 0.2s linear, background-color 0.75s linear;
}
/* Message: Strength */
.password-strength-message-strength { margin-bottom: 9px; }
.password-strength-message-strength .name { float: left; }
.password-strength-message-strength .value { float: right; text-transform: capitalize; font-weight: bold; text-align: right; padding-left: 25px; }
/* Message: Requirements */
.password-strength-message-requirements p { border-top: 1px #555 solid; padding-top: 10px; }
/* Message: Flaws */
.password-strength-message-flaws ul li { line-height: 18px; }
/* Colors! */
.password-strength-check .bg-score-0 { background-color: #FD5C56; }
.password-strength-check .bg-score-1 { background-color: #FD5C56; }
.password-strength-check .bg-score-2 { background-color: #F59500; }
.password-strength-check .bg-score-3 { background-color: #90B70E; }
.password-strength-check .bg-score-4 { background-color: #90B70E; }
.password-strength-check .text-score-0 { color: #FD5C56; }
.password-strength-check .text-score-1 { color: #FD5C56; }
.password-strength-check .text-score-2 { color: #F59500; }
.password-strength-check .text-score-3 { color: #90B70E; }
.password-strength-check .text-score-4 { color: #90B70E; background: url("../images/check.png") no-repeat top left; }
/* Registration page */
#user-register-form .password-strength-check { color: #bababa; }
#user-register-form .password-strength-message-flaws .hint { cursor: pointer; color: #fff; }
/* Drupal 6: Neutralize core's CSS/JS for password management. */
.password-strength {
display: none;
}
/* Drupal 6: poorman clearfix. */
.password-strength-message-flaws {clear: both;}
View source
- /* Widen the core password field so the strength message fits underneath. */
- input.password-confirm, input.password-field {
- width: 20em;
- }
-
- .password-strength-check { position: relative;}
- .password-strength-message-strength,
- .password-strength-message-requirements,
- .password-strength-message-flaws {font-size: 12px;}
-
- /* Bar */
- .password-strength-strength-bar { position: absolute; top: 0; z-index: 100; }
- .password-strength-strength-bar .bar,
- .password-strength-strength-bar .value { height: 3px; }
- .password-strength-strength-bar .bar { position: relative; background-color: #e9e9e9; overflow: hidden; }
- .password-strength-strength-bar .value {
- position: absolute;
- top: 0;
- left: 0;
- width: 0;
- background-color: transparent;
-
- -webkit-transition: width 0.75s cubic-bezier(0.785, 0.135, 0.15, 0.86), opacity 0.2s linear, background-color 0.75s linear;
- -moz-transition: width 0.75s cubic-bezier(0.785, 0.135, 0.15, 0.86), opacity 0.2s linear, background-color 0.75s linear;
- -ms-transition: width 0.75s cubic-bezier(0.785, 0.135, 0.15, 0.86), opacity 0.2s linear, background-color 0.75s linear;
- -o-transition: width 0.75s cubic-bezier(0.785, 0.135, 0.15, 0.86), opacity 0.2s linear, background-color 0.75s linear;
- transition: width 0.75s cubic-bezier(0.785, 0.135, 0.15, 0.86), opacity 0.2s linear, background-color 0.75s linear;
- }
-
- /* Message: Strength */
- .password-strength-message-strength { margin-bottom: 9px; }
- .password-strength-message-strength .name { float: left; }
- .password-strength-message-strength .value { float: right; text-transform: capitalize; font-weight: bold; text-align: right; padding-left: 25px; }
-
- /* Message: Requirements */
- .password-strength-message-requirements p { border-top: 1px #555 solid; padding-top: 10px; }
-
- /* Message: Flaws */
- .password-strength-message-flaws ul li { line-height: 18px; }
-
- /* Colors! */
- .password-strength-check .bg-score-0 { background-color: #FD5C56; }
- .password-strength-check .bg-score-1 { background-color: #FD5C56; }
- .password-strength-check .bg-score-2 { background-color: #F59500; }
- .password-strength-check .bg-score-3 { background-color: #90B70E; }
- .password-strength-check .bg-score-4 { background-color: #90B70E; }
- .password-strength-check .text-score-0 { color: #FD5C56; }
- .password-strength-check .text-score-1 { color: #FD5C56; }
- .password-strength-check .text-score-2 { color: #F59500; }
- .password-strength-check .text-score-3 { color: #90B70E; }
- .password-strength-check .text-score-4 { color: #90B70E; background: url("../images/check.png") no-repeat top left; }
-
- /* Registration page */
- #user-register-form .password-strength-check { color: #bababa; }
- #user-register-form .password-strength-message-flaws .hint { cursor: pointer; color: #fff; }
-
- /* Drupal 6: Neutralize core's CSS/JS for password management. */
- .password-strength {
- display: none;
- }
-
- /* Drupal 6: poorman clearfix. */
- .password-strength-message-flaws {clear: both;}