grid-4.css

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

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

File

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

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

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