layout.css

Base Layout.

File

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

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.