form--password-confirm.css

Same filename in other branches
  1. 9 core/themes/claro/css/components/form--password-confirm.css
  2. 10 core/themes/claro/css/components/form--password-confirm.css
  3. 11.x core/themes/claro/css/components/form--password-confirm.css

Visual styles for the Password widgets.

File

core/themes/claro/css/components/form--password-confirm.css

View source
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/2815083
  5. * @preserve
  6. */
  7. /**
  8. * @file
  9. * Visual styles for the Password widgets.
  10. */
  11. :root {
  12. /* Weak */
  13. /* Fair */
  14. /* Good */
  15. /* Strong */
  16. }
  17. /**
  18. * Password confirm widget styles.
  19. */
  20. .password-confirm {
  21. max-width: 25rem;
  22. }
  23. .password-confirm__password {
  24. margin-bottom: 0;
  25. }
  26. .password-confirm__confirm {
  27. margin-bottom: 0;
  28. }
  29. .js .password-confirm__confirm {
  30. max-height: 10rem;
  31. transition: max-height 0.2s ease-in-out, margin 0.2s ease-in-out;
  32. }
  33. @media screen and (prefers-reduced-motion: reduce) {
  34. .js .password-confirm__confirm {
  35. transition: none;
  36. }
  37. }
  38. /* Password confirm widget states. */
  39. .js .is-initial:not(.form-item--error) .form-item__description {
  40. margin-top: 0;
  41. }
  42. .js .is-initial.is-password-empty.is-confirm-empty:not(.form-item--error) .password-confirm__confirm {
  43. display: none;
  44. max-height: 0;
  45. margin-top: 0;
  46. }
  47. /**
  48. * Password strength
  49. *
  50. * Description and strength indicator for the main input.
  51. */
  52. .password-strength {
  53. margin-top: 0.5rem;
  54. margin-bottom: 0.5rem;
  55. }
  56. .password-strength__track {
  57. height: calc(0.5rem - 2px);
  58. margin-top: 0.5rem;
  59. margin-bottom: 0.5rem;
  60. border: 1px solid #8e929c;
  61. border-radius: 0.5rem;
  62. background-color: #d4d4d8;
  63. }
  64. .password-strength__track::after {
  65. display: table;
  66. clear: both;
  67. content: "";
  68. }
  69. .password-strength__bar {
  70. min-width: calc(0.5rem - 2px);
  71. height: calc(0.5rem - 2px);
  72. margin: -1px;
  73. transition: width 0.5s ease-out;
  74. border: 1px solid transparent;
  75. border-radius: 0.5rem;
  76. background-color: transparent;
  77. }
  78. @media screen and (prefers-reduced-motion: reduce) {
  79. .password-strength__bar {
  80. transition: none;
  81. }
  82. }
  83. @media screen and (-ms-high-contrast: active) {
  84. .password-strength__bar {
  85. background-color: windowText;
  86. }
  87. .is-initial .password-strength__bar {
  88. border-color: transparent;
  89. background-color: transparent;
  90. }
  91. }
  92. .password-strength__title {
  93. overflow: hidden;
  94. margin-top: 0.5rem;
  95. margin-bottom: 0.5rem;
  96. color: #545560;
  97. font-size: 0.79rem;
  98. line-height: 1rem;
  99. }
  100. .password-strength__text {
  101. color: #222330;
  102. font-weight: bold;
  103. }
  104. /* Password strength states */
  105. .password-strength__bar.is-weak {
  106. border-color: #d72222;
  107. background-color: #d72222;
  108. }
  109. .password-strength__bar.is-fair {
  110. border-color: #977405;
  111. background-color: #ffd23f;
  112. }
  113. .password-strength__bar.is-good {
  114. border-color: #26a769;
  115. background-color: #26a769;
  116. }
  117. .password-strength__bar.is-strong {
  118. border-color: #26a769;
  119. background-color: #26a769;
  120. }
  121. .is-initial.is-password-empty .password-strength__title {
  122. margin: 0;
  123. line-height: 0;
  124. }
  125. /**
  126. * Password match message.
  127. *
  128. * This is the description-like message on the bottom of the password confirm
  129. * input.
  130. */
  131. .password-match-message {
  132. margin-top: 0.5rem;
  133. margin-bottom: 0.5rem;
  134. color: #545560;
  135. font-size: 0.79rem;
  136. }
  137. .password-match-message__text {
  138. color: #222330;
  139. font-weight: bold;
  140. }
  141. .is-confirm-empty .password-match-message {
  142. visibility: hidden;
  143. }
  144. /**
  145. * Password suggestions.
  146. *
  147. * Tips for improving the password.
  148. */
  149. .password-suggestions {
  150. margin-top: 0.5rem;
  151. margin-bottom: 0.5rem;
  152. padding: 1rem;
  153. color: #545560;
  154. border: 1px solid #d4d4d8;
  155. border-radius: 2px;
  156. background-color: #fff;
  157. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  158. font-size: 0.79rem;
  159. }
  160. .password-suggestions__tips {
  161. margin: 0.5rem 0 0 1.5rem; /* LTR */
  162. }
  163. [dir="rtl"] .password-suggestions__tips {
  164. margin-right: 1.5rem;
  165. margin-left: 0;
  166. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.