You are here

layout.css in Drupal 10

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. /*
  12. * Media query breakpoints.
  13. * Processed by postcss/postcss-custom-media.
  14. */
  15. /* Navigation related breakpoints */
  16. /* Grid related breakpoints */
  17. /* Grid shifts from 6 to 14 columns. */
  18. /* Width of the entire grid maxes out. */
  19. .container {
  20. width: 100%;
  21. max-width: var(--max-width);
  22. padding-left: var(--container-padding);
  23. padding-right: var(--container-padding)
  24. /* This fixes an issue where if the toolbar is open in vertical mode, and
  25. * the mobile navigation is open, the "close" button gets pushed outside of
  26. * the viewport. */
  27. }
  28. body.is-fixed .container {
  29. width: calc(100% - var(--drupal-displace-offset-left, 0px) - var(--drupal-displace-offset-right, 0px))
  30. }
  31. .page-wrapper {
  32. max-width: var(--max-bg-color);
  33. background: var(--color--white);
  34. }
  35. /**
  36. * Creates stacking context ensuring that child elements can never appear in
  37. * front of mobile navigation.
  38. */
  39. .layout-main-wrapper {
  40. position: relative;
  41. z-index: 1;
  42. }
  43. /* Contains the social sidebar, and the primary content area. */
  44. @media (min-width: 75rem) {
  45. .layout-main {
  46. display: flex;
  47. flex-direction: row-reverse;
  48. flex-wrap: wrap
  49. }
  50. }
  51. @media (min-width: 75rem) {
  52. [dir="ltr"] .main-content {
  53. margin-right: auto
  54. }
  55. [dir="rtl"] .main-content {
  56. margin-left: auto
  57. }
  58. .main-content {
  59. width: calc(100% - var(--content-left))
  60. }
  61. }
  62. .main-content__container {
  63. padding-top: var(--sp3)
  64. }
  65. @media (min-width: 43.75rem) {
  66. .main-content__container {
  67. padding-top: var(--sp5)
  68. }
  69. }