fieldset.css 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. * Fieldset styles.
  10. */
  11. .fieldset {
  12. min-width: 0;
  13. margin: 1rem 0;
  14. padding: 0;
  15. color: #222330;
  16. border: 1px solid rgba(216, 217, 224, 0.8);
  17. border-radius: 2px;
  18. background-color: #fff;
  19. box-shadow: 0
  20. 2px
  21. 4px
  22. rgba(0, 0, 0, 0.1);
  23. }
  24. .fieldset--group {
  25. color: inherit;
  26. border: 0;
  27. border-radius: 0;
  28. background: none;
  29. box-shadow: none;
  30. }
  31. /* IE workaround. */
  32. /* stylelint-disable-next-line selector-type-no-unknown */
  33. _:-ms-fullscreen,
  34. .fieldset {
  35. display: table;
  36. box-sizing: border-box;
  37. width: 100%;
  38. }
  39. /**
  40. * Fieldset legend.
  41. */
  42. .fieldset__legend {
  43. display: contents; /* For Firefox. */
  44. float: left; /* iOS Safari, Android Chrome, Edge. */
  45. width: 100%; /* iOS Safari, Android Chrome, Edge. */
  46. margin-bottom: 1rem;
  47. color: #545560;
  48. font-weight: bold;
  49. }
  50. @media screen and (min-width: 48em) {
  51. .fieldset__legend {
  52. margin-bottom: 1.5rem;
  53. }
  54. }
  55. .fieldset__legend--composite {
  56. float: none;
  57. width: auto;
  58. margin-top: 0; /* IE11 and Edge do not collapse this margin. Ideally this would be 4px */
  59. margin-bottom: 0.25rem; /* 4px */
  60. color: inherit;
  61. font-size: 0.889rem; /* 14px */
  62. line-height: 1.125rem; /* 18px */
  63. }
  64. /* This is used only on install configure form. */
  65. .fieldset__legend--group {
  66. text-transform: uppercase;
  67. color: inherit;
  68. }
  69. .fieldset__label {
  70. display: block;
  71. padding: 1rem;
  72. line-height: 1rem;
  73. }
  74. @media screen and (min-width: 48em) {
  75. .fieldset__label {
  76. padding-right: 1.5rem;
  77. padding-left: 1.5rem;
  78. }
  79. }
  80. .fieldset__label--group {
  81. padding: 0;
  82. line-height: inherit;
  83. }
  84. .fieldset__label.is-disabled {
  85. color: #82828c;
  86. }
  87. .fieldset__label.has-error {
  88. color: #d72222;
  89. }
  90. .fieldset__description {
  91. margin-top: 0.375rem; /* 6px */
  92. margin-bottom: 0.375rem; /* 6px */
  93. color: #545560;
  94. font-size: 0.79rem; /* ~13px */
  95. line-height: 1.0625rem; /* 17px */
  96. }
  97. .fieldset__description.is-disabled {
  98. color: #82828c;
  99. }
  100. /* Error message (Inline form errors). */
  101. .fieldset__error-message {
  102. margin-top: 0.375rem; /* 6px */
  103. margin-bottom: 0.375rem; /* 6px */
  104. color: #d72222;
  105. font-size: 0.79rem; /* ~13px */
  106. font-weight: normal;
  107. line-height: 1.0625rem; /* 17px */
  108. }
  109. .fieldset__wrapper {
  110. margin: 1rem;
  111. }
  112. @media screen and (min-width: 48em) {
  113. .fieldset__wrapper {
  114. margin: 1.5rem 1.5rem 1.75rem;
  115. }
  116. }
  117. .fieldset__legend--visible ~ .fieldset__wrapper {
  118. margin-top: 0;
  119. }
  120. .fieldset__wrapper--group {
  121. margin: 0;
  122. }
  123. /**
  124. * Remove the unnecessary extra padding of container-inline wrapper if it's used
  125. * inside a fieldset.
  126. */
  127. .fieldset__wrapper > .container-inline {
  128. padding: 0;
  129. }