form--password-confirm.css

Same filename in other branches
  1. 8.9.x 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/3084859
  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 #919297;
  61. border-radius: 0.5rem;
  62. background-color: #d3d4d9;
  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: #55565b;
  97. font-size: 0.79rem;
  98. line-height: 1rem;
  99. }
  100. .password-strength__text {
  101. color: #232429;
  102. font-weight: bold;
  103. }
  104. /* Password strength states */
  105. .password-strength__bar.is-weak {
  106. border-color: #dc2323;
  107. background-color: #dc2323;
  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. @media (forced-colors: active) {
  122. .password-strength__bar.is-weak,
  123. .password-strength__bar.is-fair,
  124. .password-strength__bar.is-good,
  125. .password-strength__bar.is-strong {
  126. background-color: canvastext;
  127. }
  128. .is-initial .password-strength__bar {
  129. border-color: transparent;
  130. background-color: transparent;
  131. }
  132. }
  133. .is-initial.is-password-empty .password-strength__title {
  134. margin: 0;
  135. line-height: 0;
  136. }
  137. /**
  138. * Password match message.
  139. *
  140. * This is the description-like message on the bottom of the password confirm
  141. * input.
  142. */
  143. .password-match-message {
  144. margin-top: 0.5rem;
  145. margin-bottom: 0.5rem;
  146. color: #55565b;
  147. font-size: 0.79rem;
  148. }
  149. .password-match-message__text {
  150. color: #232429;
  151. font-weight: bold;
  152. }
  153. .is-confirm-empty .password-match-message {
  154. visibility: hidden;
  155. }
  156. /**
  157. * Password suggestions.
  158. *
  159. * Tips for improving the password.
  160. */
  161. .password-suggestions {
  162. margin-top: 0.5rem;
  163. margin-bottom: 0.5rem;
  164. padding: 1rem;
  165. color: #55565b;
  166. border: 1px solid #d3d4d9;
  167. border-radius: 2px;
  168. background-color: #fff;
  169. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  170. font-size: 0.79rem;
  171. }
  172. .password-suggestions__tips {
  173. margin: 0.5rem 0 0 1.5rem; /* LTR */
  174. }
  175. [dir="rtl"] .password-suggestions__tips {
  176. margin-right: 1.5rem;
  177. margin-left: 0;
  178. }

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