fieldset.css

Same filename in this branch
  1. 9 core/themes/claro/css/components/fieldset.css
Same filename in other branches
  1. 8.9.x core/themes/claro/css/components/fieldset.css
  2. 10 core/themes/olivero/css/components/fieldset.css
  3. 10 core/themes/claro/css/components/fieldset.css
  4. 11.x core/themes/olivero/css/components/fieldset.css
  5. 11.x core/themes/claro/css/components/fieldset.css

Fieldset.

File

core/themes/olivero/css/components/fieldset.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. * Fieldset.
  10. */
  11. [dir="ltr"] .fieldset {
  12. margin-left: 0;
  13. }
  14. [dir="rtl"] .fieldset {
  15. margin-right: 0;
  16. }
  17. [dir="ltr"] .fieldset {
  18. margin-right: 0;
  19. }
  20. [dir="rtl"] .fieldset {
  21. margin-left: 0;
  22. }
  23. [dir="ltr"] .fieldset {
  24. padding-left: 0;
  25. }
  26. [dir="rtl"] .fieldset {
  27. padding-right: 0;
  28. }
  29. [dir="ltr"] .fieldset {
  30. padding-right: 0;
  31. }
  32. [dir="rtl"] .fieldset {
  33. padding-left: 0;
  34. }
  35. .fieldset {
  36. min-width: 0;
  37. margin-top: 1.125rem;
  38. margin-bottom: 1.125rem;
  39. padding-top: 0;
  40. padding-bottom: 0;
  41. color: inherit;
  42. border: solid 2px #5d7585;
  43. border-radius: 0.1875rem;
  44. background-color: #fff;
  45. }
  46. .fieldset--group {
  47. width: 100%;
  48. color: inherit;
  49. border: 0;
  50. border-radius: 0;
  51. background: none;
  52. box-shadow: none;
  53. }
  54. /* stylelint-disable-next-line selector-type-no-unknown */
  55. _:-ms-fullscreen,
  56. .fieldset {
  57. display: table;
  58. box-sizing: border-box;
  59. width: 100%;
  60. }
  61. .fieldset__legend {
  62. float: left; /* Prevent sticking out of top of fieldset. */
  63. width: 100%;
  64. color: inherit;
  65. border-top-left-radius: 3px;
  66. border-top-right-radius: 3px;
  67. background-color: #5d7585;
  68. font-size: 1.125rem;
  69. font-weight: 700;
  70. line-height: 1.6875rem;
  71. }
  72. .fieldset__legend + * {
  73. clear: left;
  74. }
  75. .fieldset__legend .fieldset__label.form-required:after {
  76. background-image: url("data:image/svg+xml,%3Csvg height='16' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m0 7.562 1.114-3.438c2.565.906 4.43 1.688 5.59 2.35-.306-2.921-.467-4.93-.484-6.027h3.511c-.05 1.597-.234 3.6-.558 6.003 1.664-.838 3.566-1.613 5.714-2.325l1.113 3.437c-2.05.678-4.06 1.131-6.028 1.356.984.856 2.372 2.381 4.166 4.575l-2.906 2.059c-.935-1.274-2.041-3.009-3.316-5.206-1.194 2.275-2.244 4.013-3.147 5.206l-2.856-2.059c1.872-2.307 3.211-3.832 4.017-4.575-2.081-.402-4.058-.856-5.93-1.356' fill='%23ffffff'/%3E%3C/svg%3E%0A");
  77. }
  78. .fieldset__legend--composite {
  79. margin-top: 2px;
  80. color: inherit;
  81. }
  82. .fieldset__legend--invisible {
  83. margin: 0;
  84. }
  85. .fieldset__legend--group {
  86. color: inherit;
  87. }
  88. [dir="ltr"] .fieldset__label {
  89. padding-left: 1.125rem;
  90. }
  91. [dir="rtl"] .fieldset__label {
  92. padding-right: 1.125rem;
  93. }
  94. [dir="ltr"] .fieldset__label {
  95. padding-right: 1.125rem;
  96. }
  97. [dir="rtl"] .fieldset__label {
  98. padding-left: 1.125rem;
  99. }
  100. .fieldset__label {
  101. display: block;
  102. padding-top: 0.5625rem;
  103. padding-bottom: 0.5625rem;
  104. color: #fff;
  105. line-height: 1.125rem;
  106. }
  107. .fieldset__label.is-disabled {
  108. color: #5d7585;
  109. }
  110. .fieldset__description {
  111. margin-top: 0.5625rem;
  112. margin-bottom: 0.5625rem;
  113. font-size: 0.8125rem;
  114. line-height: 1.125rem;
  115. }
  116. .fieldset__description.is-disabled {
  117. color: var(--input--disabled-fg-color);
  118. }
  119. [dir="ltr"] .fieldset__error-message {
  120. padding-left: 1.6875rem;
  121. }
  122. [dir="rtl"] .fieldset__error-message {
  123. padding-right: 1.6875rem;
  124. }
  125. .fieldset__error-message {
  126. margin-top: 0.5625rem;
  127. margin-bottom: 0.5625rem;
  128. color: #e33f1e;
  129. background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23E33F1E' d='M9 0C4.03125 0 0 4.03125 0 9C0 13.9688 4.03125 18 9 18C13.9687 18 18 13.9688 18 9C18 4.03125 13.9687 0 9 0ZM10.5 14.6133C10.5 14.8242 10.3359 15 10.1367 15H7.88672C7.67578 15 7.5 14.8242 7.5 14.6133V12.3867C7.5 12.1758 7.67578 12 7.88672 12H10.1367C10.3359 12 10.5 12.1758 10.5 12.3867V14.6133ZM10.4766 10.582C10.4648 10.7461 10.2891 10.875 10.0781 10.875H7.91016C7.6875 10.875 7.51172 10.7461 7.51172 10.582L7.3125 3.30469C7.3125 3.22266 7.34766 3.14063 7.42969 3.09375C7.5 3.03516 7.60547 3 7.71094 3H10.2891C10.3945 3 10.5 3.03516 10.5703 3.09375C10.6523 3.14063 10.6875 3.22266 10.6875 3.30469L10.4766 10.582Z'/%3E%3C/svg%3E");
  130. background-repeat: no-repeat;
  131. background-position: left top; /* LTR */
  132. background-size: 1.125rem 1.125rem;
  133. font-size: 0.875rem;
  134. line-height: 1.125rem;
  135. }
  136. @media screen and (-ms-high-contrast: active) {
  137. .fieldset__error-message {
  138. background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' d='M9 0C4.03125 0 0 4.03125 0 9C0 13.9688 4.03125 18 9 18C13.9687 18 18 13.9688 18 9C18 4.03125 13.9687 0 9 0ZM10.5 14.6133C10.5 14.8242 10.3359 15 10.1367 15H7.88672C7.67578 15 7.5 14.8242 7.5 14.6133V12.3867C7.5 12.1758 7.67578 12 7.88672 12H10.1367C10.3359 12 10.5 12.1758 10.5 12.3867V14.6133ZM10.4766 10.582C10.4648 10.7461 10.2891 10.875 10.0781 10.875H7.91016C7.6875 10.875 7.51172 10.7461 7.51172 10.582L7.3125 3.30469C7.3125 3.22266 7.34766 3.14063 7.42969 3.09375C7.5 3.03516 7.60547 3 7.71094 3H10.2891C10.3945 3 10.5 3.03516 10.5703 3.09375C10.6523 3.14063 10.6875 3.22266 10.6875 3.30469L10.4766 10.582Z'/%3E%3C/svg%3E");
  139. }
  140. }
  141. [dir="rtl"] .fieldset__error-message {
  142. background-position: left top;
  143. }
  144. .fieldset__wrapper {
  145. padding: 1.125rem;
  146. }
  147. .fieldset__legend--invisible ~ .fieldset__wrapper {
  148. margin-top: 0;
  149. padding: 0;
  150. }
  151. .fieldset--group .fieldset__legend--visible ~ .fieldset__wrapper {
  152. border: solid 2px #5d7585;
  153. border-bottom-right-radius: 3px;
  154. border-bottom-left-radius: 3px;
  155. }
  156. [dir="ltr"] .fieldset__wrapper--group {
  157. margin-left: 0;
  158. }
  159. [dir="rtl"] .fieldset__wrapper--group {
  160. margin-right: 0;
  161. }
  162. [dir="ltr"] .fieldset__wrapper--group {
  163. margin-right: 0;
  164. }
  165. [dir="rtl"] .fieldset__wrapper--group {
  166. margin-left: 0;
  167. }
  168. .fieldset__wrapper--group {
  169. margin-top: 0;
  170. margin-bottom: 0;
  171. }
  172. [dir="ltr"] .fieldset__wrapper > .container-inline {
  173. padding-left: 0;
  174. }
  175. [dir="rtl"] .fieldset__wrapper > .container-inline {
  176. padding-right: 0;
  177. }
  178. [dir="ltr"] .fieldset__wrapper > .container-inline {
  179. padding-right: 0;
  180. }
  181. [dir="rtl"] .fieldset__wrapper > .container-inline {
  182. padding-left: 0;
  183. }
  184. .fieldset__wrapper > .container-inline {
  185. padding-top: 0;
  186. padding-bottom: 0;
  187. }

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