twocol_section.css 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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) { /* 768px */
  14. .layout--twocol-section {
  15. margin-right: -1.5%;
  16. margin-left: -1.5%;
  17. }
  18. .layout--twocol-section > .layout__region {
  19. margin-right: 1.5%;
  20. margin-left: 1.5%;
  21. }
  22. .layout--twocol-section.layout--twocol-section--50-50 > .layout__region {
  23. flex: 0 1 47%;
  24. }
  25. .layout--twocol-section.layout--twocol-section--33-67 > .layout__region--first,
  26. .layout--twocol-section.layout--twocol-section--67-33 > .layout__region--second {
  27. flex: 0 1 30%;
  28. }
  29. .layout--twocol-section.layout--twocol-section--33-67 > .layout__region--second,
  30. .layout--twocol-section.layout--twocol-section--67-33 > .layout__region--first {
  31. flex: 0 1 64%;
  32. }
  33. .layout--twocol-section.layout--twocol-section--25-75 > .layout__region--first,
  34. .layout--twocol-section.layout--twocol-section--75-25 > .layout__region--second {
  35. flex: 0 1 22%;
  36. }
  37. .layout--twocol-section.layout--twocol-section--25-75 > .layout__region--second,
  38. .layout--twocol-section.layout--twocol-section--75-25 > .layout__region--first {
  39. flex: 0 1 72%;
  40. }
  41. }