twocol_section.css 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. @media screen and (min-width: 40em) {
  13. .layout--twocol-section.layout--twocol-section--50-50 > .layout__region--first,
  14. .layout--twocol-section.layout--twocol-section--50-50 > .layout__region--second {
  15. flex: 0 1 50%;
  16. }
  17. .layout--twocol-section.layout--twocol-section--33-67 > .layout__region--first,
  18. .layout--twocol-section.layout--twocol-section--67-33 > .layout__region--second {
  19. flex: 0 1 33%;
  20. }
  21. .layout--twocol-section.layout--twocol-section--33-67 > .layout__region--second,
  22. .layout--twocol-section.layout--twocol-section--67-33 > .layout__region--first {
  23. flex: 0 1 67%;
  24. }
  25. .layout--twocol-section.layout--twocol-section--25-75 > .layout__region--first,
  26. .layout--twocol-section.layout--twocol-section--75-25 > .layout__region--second {
  27. flex: 0 1 25%;
  28. }
  29. .layout--twocol-section.layout--twocol-section--25-75 > .layout__region--second,
  30. .layout--twocol-section.layout--twocol-section--75-25 > .layout__region--first {
  31. flex: 0 1 75%;
  32. }
  33. }