layout-views-grid-vertical.css

Responsive styles for views grid vertical layout.

File

core/themes/olivero/css/layout/layout-views-grid-vertical.css

View source
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/3084859
  5. * @preserve
  6. */
  7. /**
  8. * @file
  9. * Responsive styles for views grid vertical layout.
  10. */
  11. .views-view-grid--vertical {
  12. margin-bottom: -1.125rem; /* Offset the bottom row's padding. */
  13. column-gap: 1.125rem;
  14. }
  15. @media (min-width: 31.25rem) {
  16. .views-view-grid--vertical.cols-2 {
  17. column-count: 2;
  18. }
  19. }
  20. @media (min-width: 31.25rem) {
  21. .views-view-grid--vertical.cols-3 {
  22. column-count: 2;
  23. }
  24. }
  25. @media (min-width: 43.75rem) {
  26. .views-view-grid--vertical.cols-3 {
  27. column-count: 3;
  28. }
  29. }
  30. @media (min-width: 31.25rem) {
  31. .views-view-grid--vertical.cols-4 {
  32. column-count: 2;
  33. }
  34. }
  35. @media (min-width: 43.75rem) {
  36. .views-view-grid--vertical.cols-4 {
  37. column-count: 3;
  38. }
  39. }
  40. @media (min-width: 62.5rem) {
  41. .views-view-grid--vertical.cols-4 {
  42. column-count: 4;
  43. }
  44. }
  45. @media (min-width: 31.25rem) {
  46. .views-view-grid--vertical.cols-5 {
  47. column-count: 2;
  48. }
  49. }
  50. @media (min-width: 43.75rem) {
  51. .views-view-grid--vertical.cols-5 {
  52. column-count: 3;
  53. }
  54. }
  55. @media (min-width: 62.5rem) {
  56. .views-view-grid--vertical.cols-5 {
  57. column-count: 5;
  58. }
  59. }
  60. @media (min-width: 31.25rem) {
  61. .views-view-grid--vertical.cols-6 {
  62. column-count: 2;
  63. }
  64. }
  65. @media (min-width: 43.75rem) {
  66. .views-view-grid--vertical.cols-6 {
  67. column-count: 3;
  68. }
  69. }
  70. @media (min-width: 62.5rem) {
  71. .views-view-grid--vertical.cols-6 {
  72. column-count: 6;
  73. }
  74. }
  75. @media (min-width: 31.25rem) {
  76. .views-view-grid--vertical.cols-7 {
  77. column-count: 2;
  78. }
  79. }
  80. @media (min-width: 43.75rem) {
  81. .views-view-grid--vertical.cols-7 {
  82. column-count: 3;
  83. }
  84. }
  85. @media (min-width: 62.5rem) {
  86. .views-view-grid--vertical.cols-7 {
  87. column-count: 7;
  88. }
  89. }
  90. @media (min-width: 31.25rem) {
  91. .views-view-grid--vertical.cols-8 {
  92. column-count: 2;
  93. }
  94. }
  95. @media (min-width: 43.75rem) {
  96. .views-view-grid--vertical.cols-8 {
  97. column-count: 4;
  98. }
  99. }
  100. @media (min-width: 62.5rem) {
  101. .views-view-grid--vertical.cols-8 {
  102. column-count: 8;
  103. }
  104. }
  105. .views-view-grid--vertical .views-view-grid__item > * {
  106. padding-bottom: 1.125rem;
  107. page-break-inside: avoid;
  108. break-inside: avoid;
  109. }

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