layout.css
Same filename in this branch
Same filename in other branches
- 7.x themes/stark/layout.css
- 7.x themes/bartik/css/layout.css
- 9 core/profiles/demo_umami/themes/umami/css/layout/layout.css
- 9 core/themes/olivero/css/layout/layout.css
- 9 core/themes/seven/css/layout/layout.css
- 9 core/themes/claro/css/layout/layout.css
- 9 core/themes/bartik/css/layout.css
- 9 core/modules/ckeditor5/tests/modules/ckeditor5_test/css/layout.css
- 8.9.x core/profiles/demo_umami/themes/umami/css/layout/layout.css
- 8.9.x core/themes/seven/css/layout/layout.css
- 8.9.x core/themes/claro/css/layout/layout.css
- 8.9.x core/themes/stark/css/layout.css
- 8.9.x core/themes/bartik/css/layout.css
- 11.x core/profiles/demo_umami/themes/umami/css/layout/layout.css
- 11.x core/themes/olivero/css/layout/layout.css
- 11.x core/themes/claro/css/layout/layout.css
- 11.x core/modules/ckeditor5/tests/modules/ckeditor5_test/css/layout.css
This file is used to create generic layout styles.
More specific layout items may be found within their respective files, e.g. the layout for two columns is in the layout-2-cols.css file.
File
-
core/
profiles/ demo_umami/ themes/ umami/ css/ layout/ layout.css
View source
- /**
- * @file
- * This file is used to create generic layout styles.
- *
- * More specific layout items may be found within their respective files, e.g.
- * the layout for two columns is in the layout-2-cols.css file.
- */
-
- .container {
- max-width: min(calc(100vw - var(--drupal-displace-offset-left, 0px) - var(--drupal-displace-offset-right, 0px) - 2rem), 1200px);
- margin: auto;
- }
-
- /* Add responsive side gutters to the outer layout container 'main' at smaller sizes */
- .main {
- padding-inline: 4%;
- padding-block: 0 2.37rem;
- }
- /* Extra large + side margins */
- @media screen and (min-width: 80rem) {
- /* 1200px (large) + 80px (side margins) = 1280px */
- .main {
- padding-inline: 0;
- }
- }
-
- .views-view-responsive-grid__item .views-view-responsive-grid__item-inner,
- .views-view-responsive-grid__item .views-view-responsive-grid__item-inner .umami-card {
- height: 100%;
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.