Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

threecol_section.css

Same filename in this branch
  1. 11.1.x core/themes/stable9/layouts/layout_builder/threecol_section/threecol_section.css
  2. 11.1.x core/modules/layout_builder/layouts/threecol_section/threecol_section.css
/*
 * @file
 * Provides the layout styles for three-column layout section.
 */

.layout--threecol-section {
  display: flex;
  flex-wrap: wrap;
}

.layout--threecol-section > .layout__region {
  flex: 0 1 100%;
}
/* Medium */
@media screen and (min-width: 48em) {
  /* 768px */
  .layout--threecol-section {
    margin-right: -1.5%;
    margin-left: -1.5%;
  }
  .layout--threecol-section > .layout__region {
    margin-right: 1.5%;
    margin-left: 1.5%;
  }
  .layout--threecol-section--25-50-25 > .layout__region--first,
  .layout--threecol-section--25-50-25 > .layout__region--third,
  .layout--threecol-section--25-25-50 > .layout__region--first,
  .layout--threecol-section--25-25-50 > .layout__region--second,
  .layout--threecol-section--50-25-25 > .layout__region--second,
  .layout--threecol-section--50-25-25 > .layout__region--third {
    flex: 0 1 22%;
  }
  .layout--threecol-section--25-50-25 > .layout__region--second,
  .layout--threecol-section--25-25-50 > .layout__region--third,
  .layout--threecol-section--50-25-25 > .layout__region--first {
    flex: 0 1 47%;
  }
  .layout--threecol-section--33-34-33 > .layout__region--first,
  .layout--threecol-section--33-34-33 > .layout__region--third {
    flex: 0 1 30%;
  }
  .layout--threecol-section--33-34-33 > .layout__region--second {
    flex: 0 1 31%;
  }
}

File

core/profiles/demo_umami/themes/umami/layouts/threecol_section/threecol_section.css

View source
  1. /*
  2. * @file
  3. * Provides the layout styles for three-column layout section.
  4. */
  5. .layout--threecol-section {
  6. display: flex;
  7. flex-wrap: wrap;
  8. }
  9. .layout--threecol-section > .layout__region {
  10. flex: 0 1 100%;
  11. }
  12. /* Medium */
  13. @media screen and (min-width: 48em) {
  14. /* 768px */
  15. .layout--threecol-section {
  16. margin-right: -1.5%;
  17. margin-left: -1.5%;
  18. }
  19. .layout--threecol-section > .layout__region {
  20. margin-right: 1.5%;
  21. margin-left: 1.5%;
  22. }
  23. .layout--threecol-section--25-50-25 > .layout__region--first,
  24. .layout--threecol-section--25-50-25 > .layout__region--third,
  25. .layout--threecol-section--25-25-50 > .layout__region--first,
  26. .layout--threecol-section--25-25-50 > .layout__region--second,
  27. .layout--threecol-section--50-25-25 > .layout__region--second,
  28. .layout--threecol-section--50-25-25 > .layout__region--third {
  29. flex: 0 1 22%;
  30. }
  31. .layout--threecol-section--25-50-25 > .layout__region--second,
  32. .layout--threecol-section--25-25-50 > .layout__region--third,
  33. .layout--threecol-section--50-25-25 > .layout__region--first {
  34. flex: 0 1 47%;
  35. }
  36. .layout--threecol-section--33-34-33 > .layout__region--first,
  37. .layout--threecol-section--33-34-33 > .layout__region--third {
  38. flex: 0 1 30%;
  39. }
  40. .layout--threecol-section--33-34-33 > .layout__region--second {
  41. flex: 0 1 31%;
  42. }
  43. }

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal