grid-3.css

Same filename in other branches
  1. 9 core/profiles/demo_umami/themes/umami/css/layout/grid-3.css
  2. 10 core/profiles/demo_umami/themes/umami/css/layout/grid-3.css
  3. 11.x 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. padding: 0 14px;
  8. }
  9. @media screen and (min-width: 30em) {
  10. .grid--3 {
  11. overflow-x: hidden;
  12. }
  13. .grid--3 .view-content {
  14. display: flex;
  15. flex-wrap: wrap;
  16. margin: 0;
  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. @media screen and (min-width: 60em) {
  28. .grid--3 .views-row {
  29. flex-basis: calc(33% - 28px);
  30. flex-grow: 0;
  31. flex-shrink: 0;
  32. }
  33. }
  34. /* 77em == the max width of .container + 1em either side */
  35. @media screen and (min-width: 77em) {
  36. .grid--3 .view-content {
  37. margin-right: -14px;
  38. margin-left: -14px;
  39. }
  40. }

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