twocol_section.css

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

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

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

  .layout--twocol-section.layout--twocol-section--50-50 > .layout__region {
    flex: 0 1 47%;
  }

  .layout--twocol-section.layout--twocol-section--33-67 > .layout__region--first,
  .layout--twocol-section.layout--twocol-section--67-33 > .layout__region--second {
    flex: 0 1 30%;
  }

  .layout--twocol-section.layout--twocol-section--33-67 > .layout__region--second,
  .layout--twocol-section.layout--twocol-section--67-33 > .layout__region--first {
    flex: 0 1 64%;
  }

  .layout--twocol-section.layout--twocol-section--25-75 > .layout__region--first,
  .layout--twocol-section.layout--twocol-section--75-25 > .layout__region--second {
    flex: 0 1 22%;
  }

  .layout--twocol-section.layout--twocol-section--25-75 > .layout__region--second,
  .layout--twocol-section.layout--twocol-section--75-25 > .layout__region--first {
    flex: 0 1 72%;
  }
}

File

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

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

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