field.pcss.css

Same filename in other branches
  1. 10 core/themes/olivero/css/components/field.pcss.css
  2. 11.x core/themes/olivero/css/components/field.pcss.css

Visual styles for fields.

File

core/themes/olivero/css/components/field.pcss.css

View source
  1. /**
  2. * @file
  3. * Visual styles for fields.
  4. */
  5. @import "../base/variables.pcss.css";
  6. .field:not(:last-child) {
  7. margin-block-end: var(--sp2);
  8. }
  9. .node--view-mode-teaser .field {
  10. margin-block-end: var(--sp);
  11. &:last-child {
  12. margin-block-end: 0;
  13. }
  14. @media (--lg) {
  15. margin-block-end: var(--sp2);
  16. }
  17. }
  18. .field__label {
  19. font-weight: bold;
  20. }
  21. .field--label-inline .field__label,
  22. .field--label-inline .field__items {
  23. float: inline-start;
  24. }
  25. .field--label-inline .field__label,
  26. .field--label-inline > .field__item,
  27. .field--label-inline .field__items {
  28. padding-inline-end: 0.5em;
  29. }
  30. .field--label-inline .field__label::after {
  31. content: ":";
  32. }

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