threecol_section.css

Same filename in this branch
  1. 9 core/themes/stable9/layouts/layout_builder/threecol_section/threecol_section.css
  2. 9 core/themes/stable/layouts/threecol_section/threecol_section.css
  3. 9 core/modules/layout_builder/layouts/threecol_section/threecol_section.css
Same filename and directory in other branches
  1. 11.x core/profiles/demo_umami/themes/umami/layouts/threecol_section/threecol_section.css
  2. 11.x core/themes/stable9/layouts/layout_builder/threecol_section/threecol_section.css
  3. 11.x core/modules/layout_builder/layouts/threecol_section/threecol_section.css
  4. 10 core/profiles/demo_umami/themes/umami/layouts/threecol_section/threecol_section.css
  5. 10 core/themes/stable9/layouts/layout_builder/threecol_section/threecol_section.css
  6. 10 core/modules/layout_builder/layouts/threecol_section/threecol_section.css
  7. 8.9.x core/profiles/demo_umami/themes/umami/layouts/threecol_section/threecol_section.css
  8. 8.9.x core/themes/stable/layouts/threecol_section/threecol_section.css
  9. 8.9.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) { /* 768px */
  14. .layout--threecol-section {
  15. margin-right: -1.5%;
  16. margin-left: -1.5%;
  17. }
  18. .layout--threecol-section > .layout__region {
  19. margin-right: 1.5%;
  20. margin-left: 1.5%;
  21. }
  22. .layout--threecol-section--25-50-25 > .layout__region--first,
  23. .layout--threecol-section--25-50-25 > .layout__region--third,
  24. .layout--threecol-section--25-25-50 > .layout__region--first,
  25. .layout--threecol-section--25-25-50 > .layout__region--second,
  26. .layout--threecol-section--50-25-25 > .layout__region--second,
  27. .layout--threecol-section--50-25-25 > .layout__region--third {
  28. flex: 0 1 22%;
  29. }
  30. .layout--threecol-section--25-50-25 > .layout__region--second,
  31. .layout--threecol-section--25-25-50 > .layout__region--third,
  32. .layout--threecol-section--50-25-25 > .layout__region--first {
  33. flex: 0 1 47%;
  34. }
  35. .layout--threecol-section--33-34-33 > .layout__region--first,
  36. .layout--threecol-section--33-34-33 > .layout__region--third {
  37. flex: 0 1 30%;
  38. }
  39. .layout--threecol-section--33-34-33 > .layout__region--second {
  40. flex: 0 1 31%;
  41. }
  42. }

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