oneplusfourgrid_section.css

Same filename in other branches
  1. 9 core/profiles/demo_umami/themes/umami/layouts/oneplusfourgrid_section/oneplusfourgrid_section.css
  2. 10 core/profiles/demo_umami/themes/umami/layouts/oneplusfourgrid_section/oneplusfourgrid_section.css
  3. 11.x core/profiles/demo_umami/themes/umami/layouts/oneplusfourgrid_section/oneplusfourgrid_section.css
/*
 * @file
 * Provides the layout styles for two-column layout section.
 */

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

.layout--oneplusfourgrid-section > .layout__region {
  flex: 0 1 100%;
}

/* Large */
@media screen and (min-width: 60rem) { /* 960px */
  .layout--oneplusfourgrid-section {
    margin-right: -1.5%;
    margin-left: -1.5%;
  }
  .layout--oneplusfourgrid-section > .layout__region--first {
    flex: 0 1 47%;
    margin-right: 1.5%;
    margin-left: 1.5%;
  }
  .layout--oneplusfourgrid-section > .layout__four-grid-group {
    display: flex;
    flex: 0 1 50%;
    flex-wrap: wrap;
  }
  .layout__four-grid-group > .layout__region--second,
  .layout__four-grid-group > .layout__region--third,
  .layout__four-grid-group > .layout__region--fourth,
  .layout__four-grid-group > .layout__region--fifth {
    flex: 0 1 44%;
    margin-right: 3%;
    margin-left: 3%;
  }
}

File

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

View source
  1. /*
  2. * @file
  3. * Provides the layout styles for two-column layout section.
  4. */
  5. .layout--oneplusfourgrid-section {
  6. display: flex;
  7. flex-wrap: wrap;
  8. }
  9. .layout--oneplusfourgrid-section > .layout__region {
  10. flex: 0 1 100%;
  11. }
  12. /* Large */
  13. @media screen and (min-width: 60rem) { /* 960px */
  14. .layout--oneplusfourgrid-section {
  15. margin-right: -1.5%;
  16. margin-left: -1.5%;
  17. }
  18. .layout--oneplusfourgrid-section > .layout__region--first {
  19. flex: 0 1 47%;
  20. margin-right: 1.5%;
  21. margin-left: 1.5%;
  22. }
  23. .layout--oneplusfourgrid-section > .layout__four-grid-group {
  24. display: flex;
  25. flex: 0 1 50%;
  26. flex-wrap: wrap;
  27. }
  28. .layout__four-grid-group > .layout__region--second,
  29. .layout__four-grid-group > .layout__region--third,
  30. .layout__four-grid-group > .layout__region--fourth,
  31. .layout__four-grid-group > .layout__region--fifth {
  32. flex: 0 1 44%;
  33. margin-right: 3%;
  34. margin-left: 3%;
  35. }
  36. }

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