You are here

password.css in Password Strength 6.2

Same filename and directory in other branches
  1. 7 css/password.css
/* 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;}

File

css/password.css
View source
  1. /* Widen the core password field so the strength message fits underneath. */
  2. input.password-confirm, input.password-field {
  3. width: 20em;
  4. }
  5. .password-strength-check { position: relative;}
  6. .password-strength-message-strength,
  7. .password-strength-message-requirements,
  8. .password-strength-message-flaws {font-size: 12px;}
  9. /* Bar */
  10. .password-strength-strength-bar { position: absolute; top: 0; z-index: 100; }
  11. .password-strength-strength-bar .bar,
  12. .password-strength-strength-bar .value { height: 3px; }
  13. .password-strength-strength-bar .bar { position: relative; background-color: #e9e9e9; overflow: hidden; }
  14. .password-strength-strength-bar .value {
  15. position: absolute;
  16. top: 0;
  17. left: 0;
  18. width: 0;
  19. background-color: transparent;
  20. -webkit-transition: width 0.75s cubic-bezier(0.785, 0.135, 0.15, 0.86), opacity 0.2s linear, background-color 0.75s linear;
  21. -moz-transition: width 0.75s cubic-bezier(0.785, 0.135, 0.15, 0.86), opacity 0.2s linear, background-color 0.75s linear;
  22. -ms-transition: width 0.75s cubic-bezier(0.785, 0.135, 0.15, 0.86), opacity 0.2s linear, background-color 0.75s linear;
  23. -o-transition: width 0.75s cubic-bezier(0.785, 0.135, 0.15, 0.86), opacity 0.2s linear, background-color 0.75s linear;
  24. transition: width 0.75s cubic-bezier(0.785, 0.135, 0.15, 0.86), opacity 0.2s linear, background-color 0.75s linear;
  25. }
  26. /* Message: Strength */
  27. .password-strength-message-strength { margin-bottom: 9px; }
  28. .password-strength-message-strength .name { float: left; }
  29. .password-strength-message-strength .value { float: right; text-transform: capitalize; font-weight: bold; text-align: right; padding-left: 25px; }
  30. /* Message: Requirements */
  31. .password-strength-message-requirements p { border-top: 1px #555 solid; padding-top: 10px; }
  32. /* Message: Flaws */
  33. .password-strength-message-flaws ul li { line-height: 18px; }
  34. /* Colors! */
  35. .password-strength-check .bg-score-0 { background-color: #FD5C56; }
  36. .password-strength-check .bg-score-1 { background-color: #FD5C56; }
  37. .password-strength-check .bg-score-2 { background-color: #F59500; }
  38. .password-strength-check .bg-score-3 { background-color: #90B70E; }
  39. .password-strength-check .bg-score-4 { background-color: #90B70E; }
  40. .password-strength-check .text-score-0 { color: #FD5C56; }
  41. .password-strength-check .text-score-1 { color: #FD5C56; }
  42. .password-strength-check .text-score-2 { color: #F59500; }
  43. .password-strength-check .text-score-3 { color: #90B70E; }
  44. .password-strength-check .text-score-4 { color: #90B70E; background: url("../images/check.png") no-repeat top left; }
  45. /* Registration page */
  46. #user-register-form .password-strength-check { color: #bababa; }
  47. #user-register-form .password-strength-message-flaws .hint { cursor: pointer; color: #fff; }
  48. /* Drupal 6: Neutralize core's CSS/JS for password management. */
  49. .password-strength {
  50. display: none;
  51. }
  52. /* Drupal 6: poorman clearfix. */
  53. .password-strength-message-flaws {clear: both;}