layout-views-grid-horizontal.css
Responsive styles for views grid horizontal layout.
File
-
core/
themes/ olivero/ css/ layout/ layout-views-grid-horizontal.css
View source
- /*
- * DO NOT EDIT THIS FILE.
- * See the following change record for more information,
- * https://www.drupal.org/node/3084859
- * @preserve
- */
-
- /**
- * @file
- * Responsive styles for views grid horizontal layout.
- */
-
- .views-view-grid--horizontal {
- display: flex;
- flex-wrap: wrap;
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-1 > * {
- margin-right: 0;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-1 > * {
- margin-left: 0;
- }
-
- .views-view-grid--horizontal.cols-1 > * {
- flex-basis: 100%;
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-2 > * {
- margin-right: 0;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-2 > * {
- margin-left: 0;
- }
-
- .views-view-grid--horizontal.cols-2 > * {
- flex-basis: 100%;
-
- /* 2 column layout. */
- }
-
- @media (min-width: 43.75rem) {
-
- [dir="ltr"] .views-view-grid--horizontal.cols-2 > * {
- margin-right: 1.125rem;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-2 > * {
- margin-left: 1.125rem;
- }
-
- .views-view-grid--horizontal.cols-2 > * {
- flex-basis: calc(50% - 0.5625rem);
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-2 > *:nth-child(2n) {
- margin-right: 0;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-2 > *:nth-child(2n) {
- margin-left: 0;
- }
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-3 > * {
- margin-right: 0;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-3 > * {
- margin-left: 0;
- }
-
- .views-view-grid--horizontal.cols-3 > * {
- flex-basis: 100%;
-
- /* 2 column layout. */
- }
-
- @media (min-width: 43.75rem) {
-
- [dir="ltr"] .views-view-grid--horizontal.cols-3 > * {
- margin-right: 1.125rem;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-3 > * {
- margin-left: 1.125rem;
- }
-
- .views-view-grid--horizontal.cols-3 > * {
- flex-basis: calc(50% - 0.5625rem);
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-3 > *:nth-child(2n) {
- margin-right: 0;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-3 > *:nth-child(2n) {
- margin-left: 0;
- }
- }
-
- /* 3 column layout. */
-
- @media (min-width: 62.5rem) {
-
- .views-view-grid--horizontal.cols-3 > * {
- flex-basis: calc(33.33333% - 0.75rem);
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-3 > *:nth-child(2n) {
- margin-right: 1.125rem;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-3 > *:nth-child(2n) {
- margin-left: 1.125rem;
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-3 > *:nth-child(3n) {
- margin-right: 0;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-3 > *:nth-child(3n) {
- margin-left: 0;
- }
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-4 > * {
- margin-right: 0;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-4 > * {
- margin-left: 0;
- }
-
- .views-view-grid--horizontal.cols-4 > * {
- flex-basis: 100%;
-
- /* 2 column layout. */
- }
-
- @media (min-width: 43.75rem) {
-
- [dir="ltr"] .views-view-grid--horizontal.cols-4 > * {
- margin-right: 1.125rem;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-4 > * {
- margin-left: 1.125rem;
- }
-
- .views-view-grid--horizontal.cols-4 > * {
- flex-basis: calc(50% - 0.5625rem);
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-4 > *:nth-child(2n) {
- margin-right: 0;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-4 > *:nth-child(2n) {
- margin-left: 0;
- }
- }
-
- /* 4 column layout. */
-
- @media (min-width: 62.5rem) {
-
- .views-view-grid--horizontal.cols-4 > * {
- flex-basis: calc(25% - 0.84375rem);
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-4 > *:nth-child(2n) {
- margin-right: 1.125rem;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-4 > *:nth-child(2n) {
- margin-left: 1.125rem;
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-4 > *:nth-child(4n) {
- margin-right: 0;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-4 > *:nth-child(4n) {
- margin-left: 0;
- }
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-5 > * {
- margin-right: 0;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-5 > * {
- margin-left: 0;
- }
-
- .views-view-grid--horizontal.cols-5 > * {
- flex-basis: 100%;
-
- /* 2 column layout. */
- }
-
- @media (min-width: 31.25rem) {
-
- [dir="ltr"] .views-view-grid--horizontal.cols-5 > * {
- margin-right: 1.125rem;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-5 > * {
- margin-left: 1.125rem;
- }
-
- .views-view-grid--horizontal.cols-5 > * {
- flex-basis: calc(50% - 0.5625rem);
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-5 > *:nth-child(2n) {
- margin-right: 0;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-5 > *:nth-child(2n) {
- margin-left: 0;
- }
- }
-
- /* 3 column layout. */
-
- @media (min-width: 43.75rem) {
-
- .views-view-grid--horizontal.cols-5 > * {
- flex-basis: calc(33.33333% - 0.75rem);
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-5 > *:nth-child(2n) {
- margin-right: 1.125rem;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-5 > *:nth-child(2n) {
- margin-left: 1.125rem;
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-5 > *:nth-child(3n) {
- margin-right: 0;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-5 > *:nth-child(3n) {
- margin-left: 0;
- }
- }
-
- /* 5 column layout. */
-
- @media (min-width: 62.5rem) {
-
- .views-view-grid--horizontal.cols-5 > * {
- flex-basis: calc(20% - 0.9rem);
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-5 > *:nth-child(3n) {
- margin-right: 1.125rem;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-5 > *:nth-child(3n) {
- margin-left: 1.125rem;
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-5 > *:nth-child(5n) {
- margin-right: 0;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-5 > *:nth-child(5n) {
- margin-left: 0;
- }
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-6 > * {
- margin-right: 0;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-6 > * {
- margin-left: 0;
- }
-
- .views-view-grid--horizontal.cols-6 > * {
- flex-basis: 100%;
-
- /* 2 column layout. */
- }
-
- @media (min-width: 31.25rem) {
-
- [dir="ltr"] .views-view-grid--horizontal.cols-6 > * {
- margin-right: 1.125rem;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-6 > * {
- margin-left: 1.125rem;
- }
-
- .views-view-grid--horizontal.cols-6 > * {
- flex-basis: calc(50% - 0.5625rem);
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-6 > *:nth-child(2n) {
- margin-right: 0;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-6 > *:nth-child(2n) {
- margin-left: 0;
- }
- }
-
- /* 3 column layout. */
-
- @media (min-width: 43.75rem) {
-
- .views-view-grid--horizontal.cols-6 > * {
- flex-basis: calc(33.33333% - 0.75rem);
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-6 > *:nth-child(2n) {
- margin-right: 1.125rem;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-6 > *:nth-child(2n) {
- margin-left: 1.125rem;
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-6 > *:nth-child(3n) {
- margin-right: 0;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-6 > *:nth-child(3n) {
- margin-left: 0;
- }
- }
-
- /* 6 column layout. */
-
- @media (min-width: 62.5rem) {
-
- .views-view-grid--horizontal.cols-6 > * {
- flex-basis: calc(16.66667% - 0.9375rem);
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-6 > *:nth-child(3n) {
- margin-right: 1.125rem;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-6 > *:nth-child(3n) {
- margin-left: 1.125rem;
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-6 > *:nth-child(6n) {
- margin-right: 0;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-6 > *:nth-child(6n) {
- margin-left: 0;
- }
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-7 > * {
- margin-right: 0;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-7 > * {
- margin-left: 0;
- }
-
- .views-view-grid--horizontal.cols-7 > * {
- flex-basis: 100%;
-
- /* 2 column layout. */
- }
-
- @media (min-width: 31.25rem) {
-
- [dir="ltr"] .views-view-grid--horizontal.cols-7 > * {
- margin-right: 1.125rem;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-7 > * {
- margin-left: 1.125rem;
- }
-
- .views-view-grid--horizontal.cols-7 > * {
- flex-basis: calc(50% - 0.5625rem);
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-7 > *:nth-child(2n) {
- margin-right: 0;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-7 > *:nth-child(2n) {
- margin-left: 0;
- }
- }
-
- /* 3 column layout. */
-
- @media (min-width: 43.75rem) {
-
- .views-view-grid--horizontal.cols-7 > * {
- flex-basis: calc(33.33333% - 0.75rem);
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-7 > *:nth-child(2n) {
- margin-right: 1.125rem;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-7 > *:nth-child(2n) {
- margin-left: 1.125rem;
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-7 > *:nth-child(3n) {
- margin-right: 0;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-7 > *:nth-child(3n) {
- margin-left: 0;
- }
- }
-
- /* 7 column layout. */
-
- @media (min-width: 62.5rem) {
-
- .views-view-grid--horizontal.cols-7 > * {
- flex-basis: calc(14.28571% - 0.96429rem);
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-7 > *:nth-child(3n) {
- margin-right: 1.125rem;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-7 > *:nth-child(3n) {
- margin-left: 1.125rem;
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-7 > *:nth-child(7n) {
- margin-right: 0;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-7 > *:nth-child(7n) {
- margin-left: 0;
- }
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-8 > * {
- margin-right: 0;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-8 > * {
- margin-left: 0;
- }
-
- .views-view-grid--horizontal.cols-8 > * {
- flex-basis: 100%;
-
- /* 2 column layout. */
- }
-
- @media (min-width: 31.25rem) {
-
- [dir="ltr"] .views-view-grid--horizontal.cols-8 > * {
- margin-right: 1.125rem;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-8 > * {
- margin-left: 1.125rem;
- }
-
- .views-view-grid--horizontal.cols-8 > * {
- flex-basis: calc(50% - 0.5625rem);
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-8 > *:nth-child(2n) {
- margin-right: 0;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-8 > *:nth-child(2n) {
- margin-left: 0;
- }
- }
-
- /* 4 column layout. */
-
- @media (min-width: 43.75rem) {
-
- .views-view-grid--horizontal.cols-8 > * {
- flex-basis: calc(25% - 0.84375rem);
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-8 > *:nth-child(2n) {
- margin-right: 1.125rem;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-8 > *:nth-child(2n) {
- margin-left: 1.125rem;
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-8 > *:nth-child(4n) {
- margin-right: 0;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-8 > *:nth-child(4n) {
- margin-left: 0;
- }
- }
-
- /* 8 column layout. */
-
- @media (min-width: 62.5rem) {
-
- .views-view-grid--horizontal.cols-8 > * {
- flex-basis: calc(12.5% - 0.98438rem);
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-8 > *:nth-child(4n) {
- margin-right: 1.125rem;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-8 > *:nth-child(4n) {
- margin-left: 1.125rem;
- }
-
- [dir="ltr"] .views-view-grid--horizontal.cols-8 > *:nth-child(8n) {
- margin-right: 0;
- }
-
- [dir="rtl"] .views-view-grid--horizontal.cols-8 > *:nth-child(8n) {
- margin-left: 0;
- }
- }
-
- .views-view-grid--horizontal > * {
- flex-grow: 0;
- flex-shrink: 0;
- margin-bottom: 1.125rem;
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.