layout-content-narrow.css

Same filename and directory in other branches
  1. 10 core/themes/olivero/css/layout/layout-content-narrow.css
  2. 9 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. :is(.layout--content-narrow, .layout--pass--content-narrow > *, .layout--content-medium, .layout--pass--content-medium > *) .layout--content-narrow,
  38. :is(.layout--content-narrow, .layout--pass--content-narrow > *, .layout--content-medium, .layout--pass--content-medium > *) .layout--pass--content-narrow > * {
  39. grid-column: 1 / 13;
  40. }
  41. }
  42. @media (min-width: 62.5rem) {
  43. :is(.layout--content-narrow, .layout--pass--content-narrow > *, .layout--content-medium, .layout--pass--content-medium > *) .layout--content-narrow,
  44. :is(.layout--content-narrow, .layout--pass--content-narrow > *, .layout--content-medium, .layout--pass--content-medium > *) .layout--pass--content-narrow > * {
  45. grid-column: 1 / 9;
  46. }
  47. }
  48. /*
  49. Special grid-breaking treatment for text-content elements that
  50. reside in a content-narrow layout.
  51. */
  52. @media (min-width: 43.75rem) {
  53. :is(:is(.text-content:is(.layout--content-narrow, .layout--pass--content-narrow > *), :is(.layout--content-narrow, .layout--pass--content-narrow > *) .text-content) blockquote)::before {
  54. inset-inline-start: calc(-1 * (var(--grid-col-width) + var(--grid-gap)));
  55. }
  56. }
  57. @media (min-width: 43.75rem) {
  58. :is(:is(.text-content:is(.layout--content-narrow, .layout--pass--content-narrow > *), :is(.layout--content-narrow, .layout--pass--content-narrow > *) .text-content) blockquote)::after {
  59. inset-inline-start: calc(-1 * (var(--grid-col-width) + var(--grid-gap)));
  60. width: var(--sp);
  61. height: calc(100% - 2.8125rem);
  62. margin-inline-start: 2px;
  63. }
  64. }
  65. @media (min-width: 43.75rem) {
  66. :is(.text-content:is(.layout--content-narrow, .layout--pass--content-narrow > *), :is(.layout--content-narrow, .layout--pass--content-narrow > *) .text-content) blockquote {
  67. width: calc(10 * var(--grid-col-width) + 9 * var(--grid-gap));
  68. margin-block: var(--sp3);
  69. padding-inline-start: 0;
  70. }
  71. }
  72. @media (min-width: 43.75rem) {
  73. :is(.text-content:is(.layout--content-narrow, .layout--pass--content-narrow > *), :is(.layout--content-narrow, .layout--pass--content-narrow > *) .text-content) pre {
  74. margin-block: var(--sp3);
  75. }
  76. }
  77. @media (min-width: 62.5rem) {
  78. :is(.text-content:is(.layout--content-narrow, .layout--pass--content-narrow > *), :is(.layout--content-narrow, .layout--pass--content-narrow > *) .text-content) pre {
  79. width: calc(12 * var(--grid-col-width) + 11 * var(--grid-gap));
  80. margin-inline-start: calc(-1 * (var(--grid-col-width) + var(--grid-gap)));
  81. }
  82. }
  83. /**
  84. *
     and 
    elements should not break containers and overflow
  85. * into sidebar region when present.
  86. */
  87. :is(.text-content:is(.sidebar-grid .layout--content-narrow, .sidebar-grid .layout--pass--content-narrow > *), :is(.sidebar-grid .layout--content-narrow, .sidebar-grid .layout--pass--content-narrow > *) .text-content) blockquote,
  88. :is(.text-content:is(.sidebar-grid .layout--content-narrow, .sidebar-grid .layout--pass--content-narrow > *), :is(.sidebar-grid .layout--content-narrow, .sidebar-grid .layout--pass--content-narrow > *) .text-content) pre {
  89. width: auto;
  90. }

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