Same filename and directory in other branches
  1. 8.9.x core/profiles/demo_umami/themes/umami/css/layout/grid-4.css
  2. 9 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) { /* 480px */
  10. .grid--4 {
  11. overflow-x: hidden;
  12. }
  13. .grid--4 .view-content {
  14. display: flex;
  15. flex-wrap: wrap;
  16. margin: 0 -14px;
  17. }
  18. .grid--4 .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--4 .views-row {
  30. flex-basis: calc(25% - 28px);
  31. flex-grow: 0;
  32. flex-shrink: 0;
  33. }
  34. }