grid-2.css

Same filename in other branches
  1. 9 core/profiles/demo_umami/themes/umami/css/layout/grid-2.css
  2. 8.9.x core/profiles/demo_umami/themes/umami/css/layout/grid-2.css
  3. 10 core/profiles/demo_umami/themes/umami/css/layout/grid-2.css

This file is used to create a 2 column grid layout.

File

core/profiles/demo_umami/themes/umami/css/layout/grid-2.css

View source
  1. /**
  2. * @file
  3. * This file is used to create a 2 column grid layout.
  4. */
  5. .grid--2 .view-content {
  6. margin-right: -14px;
  7. margin-left: -14px;
  8. }
  9. .grid--2 .views-row {
  10. margin-bottom: 28px;
  11. padding: 0 14px;
  12. }
  13. @media screen and (min-width: 30em) {
  14. .grid--2 {
  15. overflow-x: hidden;
  16. }
  17. .grid--2 .view-content {
  18. display: flex;
  19. flex-wrap: wrap;
  20. }
  21. .grid--2 .views-row {
  22. display: flex;
  23. flex-basis: calc(50% - 28px);
  24. flex-grow: 0;
  25. flex-shrink: 0;
  26. margin: 0 14px 28px;
  27. padding: 0;
  28. }
  29. }

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