Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

layout.css

Same filename in this branch
  1. 11.1.x core/themes/olivero/css/layout/layout.css
  2. 11.1.x core/themes/claro/css/layout/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
  1. /**
  2. * @file
  3. * This file is used to create generic layout styles.
  4. *
  5. * More specific layout items may be found within their respective files, e.g.
  6. * the layout for two columns is in the layout-2-cols.css file.
  7. */
  8. .container {
  9. max-width: min(calc(100vw - var(--drupal-displace-offset-left, 0px) - var(--drupal-displace-offset-right, 0px) - 2rem), 1200px);
  10. margin: auto;
  11. }
  12. /* Add responsive side gutters to the outer layout container 'main' at smaller sizes */
  13. .main-content-area {
  14. padding-inline: 4%;
  15. padding-block: 0 2.37rem;
  16. }
  17. /* Extra large + side margins */
  18. @media screen and (min-width: 80rem) {
  19. /* 1200px (large) + 80px (side margins) = 1280px */
  20. .main-content-area {
  21. padding-inline: 0;
  22. }
  23. }
  24. .views-view-responsive-grid__item .views-view-responsive-grid__item-inner,
  25. .views-view-responsive-grid__item .views-view-responsive-grid__item-inner .umami-card {
  26. height: 100%;
  27. }

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal