fieldset.css

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

Fieldset styles.

File

core/themes/claro/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 styles.
  10. */
  11. .fieldset {
  12. min-width: 0;
  13. margin: var(--space-m) 0;
  14. padding: 0;
  15. color: var(--color-text);
  16. border: var(--details-border-size) solid var(--details-border-color);
  17. border-radius: var(--base-border-radius);
  18. background-color: var(--color-white);
  19. box-shadow: var(--details-box-shadow);
  20. }
  21. .fieldset--group {
  22. color: inherit;
  23. border: 0;
  24. border-radius: 0;
  25. background: none;
  26. box-shadow: none;
  27. }
  28. /**
  29. * Fieldset legend.
  30. */
  31. .fieldset__legend {
  32. display: contents; /* For Firefox. */
  33. float: left; /* iOS Safari, Android Chrome, Edge. */
  34. width: 100%; /* iOS Safari, Android Chrome, Edge. */
  35. margin-block-end: var(--space-m);
  36. color: var(--color-gray-800);
  37. font-weight: bold;
  38. }
  39. .fieldset__legend--composite {
  40. float: none;
  41. width: auto;
  42. margin-block-start: calc(var(--space-xs) / 2); /* 4px */
  43. margin-block-end: calc(var(--space-xs) / 2); /* 4px */
  44. color: inherit;
  45. font-size: var(--font-size-s); /* 14px */
  46. line-height: calc(18rem / 16); /* 18px */
  47. }
  48. @media screen and (min-width: 48em) {
  49. .fieldset__legend {
  50. margin-bottom: var(--space-l);
  51. }
  52. }
  53. /* This is used only on install configure form. */
  54. .fieldset__legend--group {
  55. text-transform: uppercase;
  56. color: inherit;
  57. }
  58. .fieldset__label {
  59. display: block;
  60. padding: var(--space-m);
  61. line-height: var(--space-m);
  62. }
  63. .fieldset__label.is-disabled {
  64. color: var(--input--disabled-fg-color);
  65. }
  66. .fieldset__label.has-error {
  67. color: var(--input--error-color);
  68. }
  69. .fieldset__label--group {
  70. padding: 0;
  71. line-height: inherit;
  72. }
  73. @media screen and (min-width: 48em) {
  74. .fieldset__label {
  75. padding-right: var(--space-l);
  76. padding-left: var(--space-l);
  77. }
  78. .fieldset__label--group {
  79. padding: 0;
  80. }
  81. }
  82. .fieldset__description {
  83. margin-block-start: calc(6rem / 16); /* 6px */
  84. margin-block-end: calc(6rem / 16); /* 6px */
  85. color: var(--input-fg-color--description);
  86. font-size: var(--font-size-xs); /* ~13px */
  87. line-height: calc(17rem / 16); /* 17px */
  88. }
  89. .fieldset__description.is-disabled {
  90. color: var(--input--disabled-fg-color);
  91. }
  92. /* Error message (Inline form errors). */
  93. .fieldset__error-message {
  94. margin-block-start: calc(6rem / 16); /* 6px */
  95. margin-block-end: calc(6rem / 16); /* 6px */
  96. color: var(--input--error-color);
  97. font-size: var(--font-size-xs); /* ~13px */
  98. font-weight: normal;
  99. line-height: calc(17rem / 16); /* 17px */
  100. }
  101. .fieldset__wrapper {
  102. margin: var(--space-m);
  103. /**
  104. * Remove the extra padding of container-inline wrapper if it's used inside a fieldset
  105. */
  106. }
  107. .fieldset__wrapper > .container-inline {
  108. padding: 0;
  109. }
  110. @media screen and (min-width: 48em) {
  111. .fieldset__wrapper {
  112. margin: var(--space-l) var(--space-l) calc(var(--space-m) + var(--space-s));
  113. }
  114. }
  115. .fieldset__legend--visible ~ .fieldset__wrapper {
  116. margin-block-start: 0;
  117. }
  118. .fieldset__wrapper--group {
  119. margin: 0;
  120. }

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