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
- /**
-  * @file
-  * This file is used to create a 4 column grid layout.
-  */
- 
- .grid--4 .views-row {
-   margin-bottom: 28px;
-   padding: 0 14px;
- }
- 
- @media screen and (min-width: 30em) {
-   .grid--4 {
-     overflow-x: hidden;
-   }
-   .grid--4 .view-content {
-     display: flex;
-     flex-wrap: wrap;
-     margin: 0;
-   }
- 
-   .grid--4 .views-row {
-     display: flex;
-     flex-basis: calc(50% - 28px);
-     flex-grow: 0;
-     flex-shrink: 0;
-     margin: 0 14px 28px;
-     padding: 0;
-   }
- }
- 
- @media screen and (min-width: 60em) {
-   .grid--4 .views-row {
-     flex-basis: calc(25% - 28px);
-     flex-grow: 0;
-     flex-shrink: 0;
-   }
- }
- 
- /* 77em == the max width of .container + 1em either side */
- @media screen and (min-width: 77em) {
-   .grid--4 .view-content {
-     margin-right: -14px;
-     margin-left: -14px;
-   }
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
