layout-content-narrow.css

Same filename in other branches
  1. 9 core/themes/olivero/css/layout/layout-content-narrow.css
  2. 10 core/themes/olivero/css/layout/layout-content-narrow.css

Grid system definition for the content narrow layout.

File

core/themes/olivero/css/layout/layout-content-narrow.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. * Grid system definition for the content narrow layout.
  10. */
  11. .layout--content-narrow,
  12. .layout--pass--content-narrow > * {
  13. grid-column: 1 / 7;
  14. width: 100%;
  15. }
  16. @media (min-width: 43.75rem) {
  17. .layout--content-narrow,
  18. .layout--pass--content-narrow > * {
  19. grid-column: 2 / 14;
  20. }
  21. }
  22. @media (min-width: 62.5rem) {
  23. .layout--content-narrow,
  24. .layout--pass--content-narrow > * {
  25. grid-column: 3 / 11;
  26. }
  27. }
  28. /*
  29. If .layout--content-narrow is nested within any of the following, allocate the appropriate
  30. amount of columns within its parent .grid-full.
  31. - .layout--content-narrow class.
  32. - Element that's inheriting the layout--content-narrow styles from its parent region.
  33. - .layout--content-medium class.
  34. - Element that's inheriting the layout--content-medium styles from its parent region.
  35. */
  36. @media (min-width: 43.75rem) {
  37. .layout--content-narrow .layout--content-narrow,
  38. .layout--pass--content-narrow > * .layout--content-narrow,
  39. .layout--content-medium .layout--content-narrow,
  40. .layout--pass--content-medium > * .layout--content-narrow,
  41. .layout--content-narrow .layout--pass--content-narrow > *,
  42. .layout--pass--content-narrow > * .layout--pass--content-narrow > *,
  43. .layout--content-medium .layout--pass--content-narrow > *,
  44. .layout--pass--content-medium > * .layout--pass--content-narrow > * {
  45. grid-column: 1 / 13;
  46. }
  47. }
  48. @media (min-width: 62.5rem) {
  49. .layout--content-narrow .layout--content-narrow,
  50. .layout--pass--content-narrow > * .layout--content-narrow,
  51. .layout--content-medium .layout--content-narrow,
  52. .layout--pass--content-medium > * .layout--content-narrow,
  53. .layout--content-narrow .layout--pass--content-narrow > *,
  54. .layout--pass--content-narrow > * .layout--pass--content-narrow > *,
  55. .layout--content-medium .layout--pass--content-narrow > *,
  56. .layout--pass--content-medium > * .layout--pass--content-narrow > * {
  57. grid-column: 1 / 9;
  58. }
  59. }
  60. /*
  61. Special grid-breaking treatment for text-content elements that
  62. reside in a content-narrow layout.
  63. */
  64. @media (min-width: 43.75rem) {
  65. .layout--content-narrow.text-content blockquote::before,
  66. .layout--pass--content-narrow > *.text-content blockquote::before,
  67. .layout--content-narrow .text-content blockquote::before,
  68. .layout--pass--content-narrow > * .text-content blockquote::before {
  69. inset-inline-start: calc(-1 * (var(--grid-col-width) + var(--grid-gap)));
  70. }
  71. }
  72. @media (min-width: 43.75rem) {
  73. .layout--content-narrow.text-content blockquote::after,
  74. .layout--pass--content-narrow > *.text-content blockquote::after,
  75. .layout--content-narrow .text-content blockquote::after,
  76. .layout--pass--content-narrow > * .text-content blockquote::after {
  77. inset-inline-start: calc(-1 * (var(--grid-col-width) + var(--grid-gap)));
  78. width: var(--sp);
  79. height: calc(100% - 2.8125rem);
  80. margin-inline-start: 2px;
  81. }
  82. }
  83. @media (min-width: 43.75rem) {
  84. .layout--content-narrow.text-content blockquote,
  85. .layout--pass--content-narrow > *.text-content blockquote,
  86. .layout--content-narrow .text-content blockquote,
  87. .layout--pass--content-narrow > * .text-content blockquote {
  88. width: calc(10 * var(--grid-col-width) + 9 * var(--grid-gap));
  89. margin-block: var(--sp3);
  90. padding-inline-start: 0;
  91. }
  92. }
  93. @media (min-width: 43.75rem) {
  94. .layout--content-narrow.text-content pre,
  95. .layout--pass--content-narrow > *.text-content pre,
  96. .layout--content-narrow .text-content pre,
  97. .layout--pass--content-narrow > * .text-content pre {
  98. margin-block: var(--sp3);
  99. }
  100. }
  101. @media (min-width: 62.5rem) {
  102. .layout--content-narrow.text-content pre,
  103. .layout--pass--content-narrow > *.text-content pre,
  104. .layout--content-narrow .text-content pre,
  105. .layout--pass--content-narrow > * .text-content pre {
  106. width: calc(12 * var(--grid-col-width) + 11 * var(--grid-gap));
  107. margin-inline-start: calc(-1 * (var(--grid-col-width) + var(--grid-gap)));
  108. }
  109. }
  110. /**
  111. *
     and 
    elements should not break containers and overflow
  112. * into sidebar region when present.
  113. */
  114. .sidebar-grid .layout--content-narrow.text-content blockquote,
  115. .sidebar-grid .layout--pass--content-narrow > *.text-content blockquote,
  116. .sidebar-grid .layout--content-narrow .text-content blockquote,
  117. .sidebar-grid .layout--pass--content-narrow > * .text-content blockquote,
  118. .sidebar-grid .layout--content-narrow.text-content pre,
  119. .sidebar-grid .layout--pass--content-narrow > *.text-content pre,
  120. .sidebar-grid .layout--content-narrow .text-content pre,
  121. .sidebar-grid .layout--pass--content-narrow > * .text-content pre {
  122. width: auto;
  123. }

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