You are here

layout.pcss.css in Drupal 10

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. width: calc(100% - var(--drupal-displace-offset-left, 0px) - var(--drupal-displace-offset-right, 0px));
  15. }
  16. }
  17. .page-wrapper {
  18. max-width: var(--max-bg-color);
  19. background: var(--color--white);
  20. }
  21. /**
  22. * Creates stacking context ensuring that child elements can never appear in
  23. * front of mobile navigation.
  24. */
  25. .layout-main-wrapper {
  26. position: relative;
  27. z-index: 1;
  28. }
  29. /* Contains the social sidebar, and the primary content area. */
  30. .layout-main {
  31. @media (--nav) {
  32. display: flex;
  33. flex-direction: row-reverse;
  34. flex-wrap: wrap;
  35. }
  36. }
  37. .main-content {
  38. @media (--nav) {
  39. width: calc(100% - var(--content-left));
  40. margin-inline-end: auto;
  41. }
  42. }
  43. .main-content__container {
  44. padding-block-start: var(--sp3);
  45. @media (--md) {
  46. padding-block-start: var(--sp5);
  47. }
  48. }