fourcol_section.css

Same filename in this branch
  1. 11.x core/themes/stable9/layouts/layout_builder/fourcol_section/fourcol_section.css
  2. 11.x core/modules/layout_builder/layouts/fourcol_section/fourcol_section.css
Same filename in other branches
  1. 9 core/profiles/demo_umami/themes/umami/layouts/fourcol_section/fourcol_section.css
  2. 9 core/themes/stable9/layouts/layout_builder/fourcol_section/fourcol_section.css
  3. 9 core/themes/stable/layouts/fourcol_section/fourcol_section.css
  4. 9 core/modules/layout_builder/layouts/fourcol_section/fourcol_section.css
  5. 8.9.x core/profiles/demo_umami/themes/umami/layouts/fourcol_section/fourcol_section.css
  6. 8.9.x core/themes/stable/layouts/fourcol_section/fourcol_section.css
  7. 8.9.x core/modules/layout_builder/layouts/fourcol_section/fourcol_section.css
  8. 10 core/profiles/demo_umami/themes/umami/layouts/fourcol_section/fourcol_section.css
  9. 10 core/themes/stable9/layouts/layout_builder/fourcol_section/fourcol_section.css
  10. 10 core/modules/layout_builder/layouts/fourcol_section/fourcol_section.css
/*
 * @file
 * Provides the layout styles for four-column layout section.
 */

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

.layout--fourcol-section > .layout__region {
  flex: 0 1 100%;
}
/* Medium */
@media screen and (min-width: 48em) {
  /* 768px */
  .layout--fourcol-section {
    margin-right: -1.5%;
    margin-left: -1.5%;
  }
  .layout--fourcol-section > .layout__region {
    flex: 0 1 47%;
    margin-right: 1.5%;
    margin-left: 1.5%;
  }
}
/* Large */
@media screen and (min-width: 60em) {
  /* 768px */
  .layout--fourcol-section > .layout__region {
    flex: 0 1 22%;
  }
}

File

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

View source
  1. /*
  2. * @file
  3. * Provides the layout styles for four-column layout section.
  4. */
  5. .layout--fourcol-section {
  6. display: flex;
  7. flex-wrap: wrap;
  8. }
  9. .layout--fourcol-section > .layout__region {
  10. flex: 0 1 100%;
  11. }
  12. /* Medium */
  13. @media screen and (min-width: 48em) {
  14. /* 768px */
  15. .layout--fourcol-section {
  16. margin-right: -1.5%;
  17. margin-left: -1.5%;
  18. }
  19. .layout--fourcol-section > .layout__region {
  20. flex: 0 1 47%;
  21. margin-right: 1.5%;
  22. margin-left: 1.5%;
  23. }
  24. }
  25. /* Large */
  26. @media screen and (min-width: 60em) {
  27. /* 768px */
  28. .layout--fourcol-section > .layout__region {
  29. flex: 0 1 22%;
  30. }
  31. }

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