grid-3.css
Same filename in other branches
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
- /**
- * @file
- * This file is used to create a 3 column grid layout.
- */
-
- .grid--3 .views-row {
- margin-bottom: 28px;
- }
- /* Small */
- @media screen and (min-width: 30em) { /* 480px */
- .grid--3 {
- overflow-x: hidden;
- }
- .grid--3 .view-content {
- display: flex;
- flex-wrap: wrap;
- margin: 0 -14px;
- }
- .grid--3 .views-row {
- display: flex;
- flex-basis: calc(50% - 28px);
- flex-grow: 0;
- flex-shrink: 0;
- margin: 0 14px 28px;
- padding: 0;
- }
- }
- /* Large */
- @media screen and (min-width: 60em) { /* 960px */
- .grid--3 .views-row {
- flex-basis: calc(33.3% - 28px);
- flex-grow: 0;
- flex-shrink: 0;
- }
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.