grid-3.css

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

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

File

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

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

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