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

Breadcrumb

  1. Drupal Core 11.1.x

layout.pcss.css

Same filename in this branch
  1. 11.1.x core/themes/claro/css/layout/layout.pcss.css

Base Layout.

File

core/themes/olivero/css/layout/layout.pcss.css

View source
  1. /**
  2. * @file
  3. * Base Layout.
  4. */
  5. @import "../base/media-queries.pcss.css";
  6. .container {
  7. width: 100%;
  8. max-width: var(--max-width);
  9. padding-inline: var(--container-padding);
  10. /* This fixes an issue where if the toolbar is open in vertical mode, and
  11. * the mobile navigation is open, the "close" button gets pushed outside of
  12. * the viewport. */
  13. @nest body.is-fixed
  14. }
  15. .page-wrapper {
  16. max-width: var(--max-bg-color);
  17. background: var(--color--white);
  18. }
  19. /**
  20. * Creates stacking context ensuring that child elements can never appear in
  21. * front of mobile navigation.
  22. */
  23. .layout-main-wrapper {
  24. position: relative;
  25. z-index: 2; /* Ensure dropdown is not cut off by footer. */
  26. }
  27. /* Contains the social sidebar, and the primary content area. */
  28. .layout-main {
  29. @media (--nav) {
  30. display: flex;
  31. flex-direction: row-reverse;
  32. flex-wrap: wrap;
  33. }
  34. }
  35. .main-content {
  36. @media (--nav) {
  37. width: calc(100% - var(--content-left));
  38. margin-inline-end: auto;
  39. }
  40. }
  41. .main-content__container {
  42. padding-block-start: var(--sp3);
  43. @media (--md) {
  44. padding-block-start: var(--sp5);
  45. }
  46. }
  47. /*
  48. * Contextual link wrappers load without the ".contextual" CSS class, which
  49. * causes layout shifts. We fix this by setting this to position: absolute;
  50. */
  51. [data-contextual-id]:not(.contextual) {
  52. position: absolute;
  53. }

API Navigation

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