field_ui_add_field.module.css

Same filename in other branches
  1. 11.x core/modules/field_ui/css/field_ui_add_field.module.css

field_ui_add_field.module.css

File

core/modules/field_ui/css/field_ui_add_field.module.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 field_ui_add_field.module.css
  9. */
  10. .field-ui-field-storage-add-form {
  11. --thumb-size: 4.5rem;
  12. --color-focus: #26a769;
  13. --color-gray: #232429;
  14. --input-fg-color: var(--color-gray);
  15. --color-blue: #003ecc;
  16. --color-red: #dc2323;
  17. --details-box-shadow: 0 2px 0.25rem rgba(0, 0, 0, 0.1);
  18. }
  19. .field-ui-new-storage-wrapper {
  20. margin-bottom: 0.75rem;
  21. }
  22. .group-field-options-wrapper {
  23. margin-block: 1.5em;
  24. }
  25. .add-field-container,
  26. .group-field-options {
  27. display: grid;
  28. gap: 0.75rem 1.25rem;
  29. margin-block: 0.625rem;
  30. }
  31. @media (min-width: 45rem) {
  32. .add-field-container,
  33. .group-field-options {
  34. grid-template-columns: repeat(2, 1fr);
  35. }
  36. }
  37. @media (min-width: 75rem) {
  38. .add-field-container {
  39. grid-template-columns: repeat(3, 1fr);
  40. }
  41. }
  42. @media (min-width: 87.5rem) {
  43. .add-field-container {
  44. grid-template-columns: repeat(4, 1fr);
  45. }
  46. }
  47. .field-option {
  48. display: grid;
  49. grid-template-columns: var(--thumb-size) auto;
  50. align-items: center;
  51. padding: 0.25rem;
  52. padding-inline-end: 0.75rem;
  53. border: 1px solid #dedfe4;
  54. gap: 0.75rem;
  55. border-radius: 0.25rem;
  56. }
  57. .field-option__item {
  58. display: grid;
  59. grid-template-rows: auto 2fr;
  60. grid-template-columns: auto 1.1875rem;
  61. align-items: center;
  62. width: 100%;
  63. margin: 0;
  64. column-gap: 1.25rem;
  65. padding-block: 0.25rem;
  66. }
  67. .field-option__item > *:not(input) {
  68. grid-column: 1;
  69. }
  70. .field-option__item > input {
  71. grid-row: 1 / -1;
  72. grid-column: 2;
  73. }
  74. .field-option__thumb {
  75. height: 100%;
  76. min-height: var(--thumb-size);
  77. background-color: #f3f4f9;
  78. }
  79. .subfield-option {
  80. margin-block: 0.625rem;
  81. padding: 1rem;
  82. padding-inline-end: 2rem;
  83. border: 1px solid #d3d4d9;
  84. border-radius: 0.25rem;
  85. }
  86. .subfield-option .field-option-radio {
  87. margin-inline-end: 0.4375rem;
  88. }
  89. .subfield-option .item-list ul {
  90. margin-inline: 0;
  91. }
  92. .field-option,
  93. .subfield-option {
  94. cursor: pointer;
  95. }
  96. .field-option.focus,
  97. .subfield-option.focus {
  98. outline: 3px solid var(--color-focus);
  99. outline-offset: 2px;
  100. }
  101. .field-option.hover,
  102. .subfield-option.hover {
  103. border-color: var(--color-gray);
  104. box-shadow:
  105. inset 0 0 0 1px var(--color-gray),
  106. var(--details-box-shadow);
  107. }
  108. .field-option:not(.selected, .error):hover .form-boolean,
  109. .subfield-option:not(.selected, .error):hover .form-boolean {
  110. border-color: var(--input-fg-color);
  111. box-shadow: inset 0 0 0 1px var(--input-fg-color);
  112. }
  113. .field-option.selected,
  114. .subfield-option.selected {
  115. border-color: var(--color-blue);
  116. box-shadow:
  117. inset 0 0 0 2px var(--color-blue),
  118. var(--details-box-shadow);
  119. }
  120. .field-option.error,
  121. .subfield-option.error {
  122. border-color: var(--color-red);
  123. box-shadow:
  124. inset 0 0 0 1px var(--color-red),
  125. var(--details-box-shadow);
  126. }
  127. .field-option .form-item__label.has-error,
  128. .subfield-option .form-item__label.has-error {
  129. color: currentColor;
  130. }

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