layout-content-narrow.css

Same filename in other branches
  1. 10 core/themes/olivero/css/layout/layout-content-narrow.css
  2. 11.x 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. -ms-grid-column: 1;
  14. -ms-grid-column-span: 6;
  15. grid-column: 1 / 7;
  16. width: 100%;
  17. }
  18. @media (min-width: 43.75rem) {
  19. .layout--content-narrow,
  20. .layout--pass--content-narrow > * {
  21. -ms-grid-column: 2;
  22. -ms-grid-column-span: 12;
  23. grid-column: 2 / 14;
  24. }
  25. }
  26. @media (min-width: 62.5rem) {
  27. .layout--content-narrow,
  28. .layout--pass--content-narrow > * {
  29. -ms-grid-column: 3;
  30. -ms-grid-column-span: 8;
  31. grid-column: 3 / 11;
  32. }
  33. }
  34. /*
  35. If .layout--content-narrow is nested within any of the following, allocate the appropriate
  36. amount of columns within its parent .grid-full.
  37. - .layout--content-narrow class.
  38. - Element that's inheriting the layout--content-narrow styles from its parent region.
  39. - .layout--content-medium class.
  40. - Element that's inheriting the layout--content-medium styles from its parent region.
  41. */
  42. @media (min-width: 43.75rem) {
  43. .layout--content-narrow .layout--content-narrow,
  44. .layout--pass--content-narrow > * .layout--content-narrow,
  45. .layout--content-medium .layout--content-narrow,
  46. .layout--pass--content-medium > * .layout--content-narrow,
  47. .layout--content-narrow .layout--pass--content-narrow > *,
  48. .layout--pass--content-narrow > * .layout--pass--content-narrow > *,
  49. .layout--content-medium .layout--pass--content-narrow > *,
  50. .layout--pass--content-medium > * .layout--pass--content-narrow > * {
  51. -ms-grid-column: 1;
  52. -ms-grid-column-span: 12;
  53. grid-column: 1 / 13;
  54. }
  55. }
  56. @media (min-width: 62.5rem) {
  57. .layout--content-narrow .layout--content-narrow,
  58. .layout--pass--content-narrow > * .layout--content-narrow,
  59. .layout--content-medium .layout--content-narrow,
  60. .layout--pass--content-medium > * .layout--content-narrow,
  61. .layout--content-narrow .layout--pass--content-narrow > *,
  62. .layout--pass--content-narrow > * .layout--pass--content-narrow > *,
  63. .layout--content-medium .layout--pass--content-narrow > *,
  64. .layout--pass--content-medium > * .layout--pass--content-narrow > * {
  65. -ms-grid-column: 1;
  66. -ms-grid-column-span: 8;
  67. grid-column: 1 / 9;
  68. }
  69. }
  70. /*
  71. Special grid-breaking treatment for text-content elements that
  72. reside in a content-narrow layout.
  73. */
  74. @media (min-width: 43.75rem) {
  75. [dir="ltr"] .layout--content-narrow.text-content blockquote:before,
  76. [dir="ltr"] .layout--pass--content-narrow > *.text-content blockquote:before,
  77. [dir="ltr"] .layout--content-narrow .text-content blockquote:before,
  78. [dir="ltr"] .layout--pass--content-narrow > * .text-content blockquote:before {
  79. left: -7.14286vw;
  80. }
  81. [dir="rtl"] .layout--content-narrow.text-content blockquote:before,
  82. [dir="rtl"] .layout--pass--content-narrow > *.text-content blockquote:before,
  83. [dir="rtl"] .layout--content-narrow .text-content blockquote:before,
  84. [dir="rtl"] .layout--pass--content-narrow > * .text-content blockquote:before {
  85. right: -7.14286vw;
  86. }
  87. }
  88. @media (min-width: 62.5rem) {
  89. [dir="ltr"] .layout--content-narrow.text-content blockquote:before,
  90. [dir="ltr"] .layout--pass--content-narrow > *.text-content blockquote:before,
  91. [dir="ltr"] .layout--content-narrow .text-content blockquote:before,
  92. [dir="ltr"] .layout--pass--content-narrow > * .text-content blockquote:before {
  93. left: calc(-7.14286vw - -0.06696rem);
  94. }
  95. [dir="rtl"] .layout--content-narrow.text-content blockquote:before,
  96. [dir="rtl"] .layout--pass--content-narrow > *.text-content blockquote:before,
  97. [dir="rtl"] .layout--content-narrow .text-content blockquote:before,
  98. [dir="rtl"] .layout--pass--content-narrow > * .text-content blockquote:before {
  99. right: calc(-7.14286vw - -0.06696rem);
  100. }
  101. }
  102. @media (min-width: 75rem) {
  103. [dir="ltr"] .layout--content-narrow.text-content blockquote:before,
  104. [dir="ltr"] .layout--pass--content-narrow > *.text-content blockquote:before,
  105. [dir="ltr"] .layout--content-narrow .text-content blockquote:before,
  106. [dir="ltr"] .layout--pass--content-narrow > * .text-content blockquote:before {
  107. left: calc(-7.14286vw - -0.62946rem);
  108. }
  109. [dir="rtl"] .layout--content-narrow.text-content blockquote:before,
  110. [dir="rtl"] .layout--pass--content-narrow > *.text-content blockquote:before,
  111. [dir="rtl"] .layout--content-narrow .text-content blockquote:before,
  112. [dir="rtl"] .layout--pass--content-narrow > * .text-content blockquote:before {
  113. right: calc(-7.14286vw - -0.62946rem);
  114. }
  115. }
  116. @media (min-width: 90rem) {
  117. [dir="ltr"] .layout--content-narrow.text-content blockquote:before,
  118. [dir="ltr"] .layout--pass--content-narrow > *.text-content blockquote:before,
  119. [dir="ltr"] .layout--content-narrow .text-content blockquote:before,
  120. [dir="ltr"] .layout--pass--content-narrow > * .text-content blockquote:before {
  121. left: -5.86607rem;
  122. }
  123. [dir="rtl"] .layout--content-narrow.text-content blockquote:before,
  124. [dir="rtl"] .layout--pass--content-narrow > *.text-content blockquote:before,
  125. [dir="rtl"] .layout--content-narrow .text-content blockquote:before,
  126. [dir="rtl"] .layout--pass--content-narrow > * .text-content blockquote:before {
  127. right: -5.86607rem;
  128. }
  129. }
  130. @media (min-width: 43.75rem) {
  131. [dir="ltr"] .layout--content-narrow.text-content blockquote:after,
  132. [dir="ltr"] .layout--pass--content-narrow > *.text-content blockquote:after,
  133. [dir="ltr"] .layout--content-narrow .text-content blockquote:after,
  134. [dir="ltr"] .layout--pass--content-narrow > * .text-content blockquote:after {
  135. left: -7.14286vw;
  136. }
  137. [dir="rtl"] .layout--content-narrow.text-content blockquote:after,
  138. [dir="rtl"] .layout--pass--content-narrow > *.text-content blockquote:after,
  139. [dir="rtl"] .layout--content-narrow .text-content blockquote:after,
  140. [dir="rtl"] .layout--pass--content-narrow > * .text-content blockquote:after {
  141. right: -7.14286vw;
  142. }
  143. [dir="ltr"] .layout--content-narrow.text-content blockquote:after,
  144. [dir="ltr"] .layout--pass--content-narrow > *.text-content blockquote:after,
  145. [dir="ltr"] .layout--content-narrow .text-content blockquote:after,
  146. [dir="ltr"] .layout--pass--content-narrow > * .text-content blockquote:after {
  147. margin-left: 2px;
  148. }
  149. [dir="rtl"] .layout--content-narrow.text-content blockquote:after,
  150. [dir="rtl"] .layout--pass--content-narrow > *.text-content blockquote:after,
  151. [dir="rtl"] .layout--content-narrow .text-content blockquote:after,
  152. [dir="rtl"] .layout--pass--content-narrow > * .text-content blockquote:after {
  153. margin-right: 2px;
  154. }
  155. .layout--content-narrow.text-content blockquote:after,
  156. .layout--pass--content-narrow > *.text-content blockquote:after,
  157. .layout--content-narrow .text-content blockquote:after,
  158. .layout--pass--content-narrow > * .text-content blockquote:after {
  159. width: 1.125rem;
  160. height: calc(100% - 2.8125rem);
  161. }
  162. }
  163. @media (min-width: 62.5rem) {
  164. [dir="ltr"] .layout--content-narrow.text-content blockquote:after,
  165. [dir="ltr"] .layout--pass--content-narrow > *.text-content blockquote:after,
  166. [dir="ltr"] .layout--content-narrow .text-content blockquote:after,
  167. [dir="ltr"] .layout--pass--content-narrow > * .text-content blockquote:after {
  168. left: calc(-7.14286vw - -0.06696rem);
  169. }
  170. [dir="rtl"] .layout--content-narrow.text-content blockquote:after,
  171. [dir="rtl"] .layout--pass--content-narrow > *.text-content blockquote:after,
  172. [dir="rtl"] .layout--content-narrow .text-content blockquote:after,
  173. [dir="rtl"] .layout--pass--content-narrow > * .text-content blockquote:after {
  174. right: calc(-7.14286vw - -0.06696rem);
  175. }
  176. }
  177. @media (min-width: 75rem) {
  178. [dir="ltr"] .layout--content-narrow.text-content blockquote:after,
  179. [dir="ltr"] .layout--pass--content-narrow > *.text-content blockquote:after,
  180. [dir="ltr"] .layout--content-narrow .text-content blockquote:after,
  181. [dir="ltr"] .layout--pass--content-narrow > * .text-content blockquote:after {
  182. left: calc(-7.14286vw - -0.62946rem);
  183. }
  184. [dir="rtl"] .layout--content-narrow.text-content blockquote:after,
  185. [dir="rtl"] .layout--pass--content-narrow > *.text-content blockquote:after,
  186. [dir="rtl"] .layout--content-narrow .text-content blockquote:after,
  187. [dir="rtl"] .layout--pass--content-narrow > * .text-content blockquote:after {
  188. right: calc(-7.14286vw - -0.62946rem);
  189. }
  190. }
  191. @media (min-width: 90rem) {
  192. [dir="ltr"] .layout--content-narrow.text-content blockquote:after,
  193. [dir="ltr"] .layout--pass--content-narrow > *.text-content blockquote:after,
  194. [dir="ltr"] .layout--content-narrow .text-content blockquote:after,
  195. [dir="ltr"] .layout--pass--content-narrow > * .text-content blockquote:after {
  196. left: -5.86607rem;
  197. }
  198. [dir="rtl"] .layout--content-narrow.text-content blockquote:after,
  199. [dir="rtl"] .layout--pass--content-narrow > *.text-content blockquote:after,
  200. [dir="rtl"] .layout--content-narrow .text-content blockquote:after,
  201. [dir="rtl"] .layout--pass--content-narrow > * .text-content blockquote:after {
  202. right: -5.86607rem;
  203. }
  204. }
  205. @media (min-width: 43.75rem) {
  206. [dir="ltr"] .layout--content-narrow.text-content blockquote,
  207. [dir="ltr"] .layout--pass--content-narrow > *.text-content blockquote,
  208. [dir="ltr"] .layout--content-narrow .text-content blockquote,
  209. [dir="ltr"] .layout--pass--content-narrow > * .text-content blockquote {
  210. padding-left: 0;
  211. }
  212. [dir="rtl"] .layout--content-narrow.text-content blockquote,
  213. [dir="rtl"] .layout--pass--content-narrow > *.text-content blockquote,
  214. [dir="rtl"] .layout--content-narrow .text-content blockquote,
  215. [dir="rtl"] .layout--pass--content-narrow > * .text-content blockquote {
  216. padding-right: 0;
  217. }
  218. .layout--content-narrow.text-content blockquote,
  219. .layout--pass--content-narrow > *.text-content blockquote,
  220. .layout--content-narrow .text-content blockquote,
  221. .layout--pass--content-narrow > * .text-content blockquote {
  222. width: calc(71.42857vw - 2.25rem);
  223. margin-top: 3.375rem;
  224. margin-bottom: 3.375rem;
  225. }
  226. }
  227. @media (min-width: 62.5rem) {
  228. .layout--content-narrow.text-content blockquote,
  229. .layout--pass--content-narrow > *.text-content blockquote,
  230. .layout--content-narrow .text-content blockquote,
  231. .layout--pass--content-narrow > * .text-content blockquote {
  232. width: calc(71.42857vw - 2.91964rem);
  233. }
  234. }
  235. @media (min-width: 75rem) {
  236. .layout--content-narrow.text-content blockquote,
  237. .layout--pass--content-narrow > *.text-content blockquote,
  238. .layout--content-narrow .text-content blockquote,
  239. .layout--pass--content-narrow > * .text-content blockquote {
  240. width: calc(71.42857vw - 8.54464rem);
  241. }
  242. }
  243. @media (min-width: 90rem) {
  244. .layout--content-narrow.text-content blockquote,
  245. .layout--pass--content-narrow > *.text-content blockquote,
  246. .layout--content-narrow .text-content blockquote,
  247. .layout--pass--content-narrow > * .text-content blockquote {
  248. width: 56.41071rem;
  249. }
  250. }
  251. @media (min-width: 43.75rem) {
  252. .layout--content-narrow.text-content pre,
  253. .layout--pass--content-narrow > *.text-content pre,
  254. .layout--content-narrow .text-content pre,
  255. .layout--pass--content-narrow > * .text-content pre {
  256. margin-top: 3.375rem;
  257. margin-bottom: 3.375rem;
  258. }
  259. }
  260. @media (min-width: 62.5rem) {
  261. [dir="ltr"] .layout--content-narrow.text-content pre,
  262. [dir="ltr"] .layout--pass--content-narrow > *.text-content pre,
  263. [dir="ltr"] .layout--content-narrow .text-content pre,
  264. [dir="ltr"] .layout--pass--content-narrow > * .text-content pre {
  265. margin-left: calc(-7.14286vw - -0.06696rem);
  266. }
  267. [dir="rtl"] .layout--content-narrow.text-content pre,
  268. [dir="rtl"] .layout--pass--content-narrow > *.text-content pre,
  269. [dir="rtl"] .layout--content-narrow .text-content pre,
  270. [dir="rtl"] .layout--pass--content-narrow > * .text-content pre {
  271. margin-right: calc(-7.14286vw - -0.06696rem);
  272. }
  273. .layout--content-narrow.text-content pre,
  274. .layout--pass--content-narrow > *.text-content pre,
  275. .layout--content-narrow .text-content pre,
  276. .layout--pass--content-narrow > * .text-content pre {
  277. width: calc(85.71429vw - 3.05357rem);
  278. }
  279. }
  280. @media (min-width: 75rem) {
  281. [dir="ltr"] .layout--content-narrow.text-content pre,
  282. [dir="ltr"] .layout--pass--content-narrow > *.text-content pre,
  283. [dir="ltr"] .layout--content-narrow .text-content pre,
  284. [dir="ltr"] .layout--pass--content-narrow > * .text-content pre {
  285. margin-left: calc(-7.14286vw - -0.62946rem);
  286. }
  287. [dir="rtl"] .layout--content-narrow.text-content pre,
  288. [dir="rtl"] .layout--pass--content-narrow > *.text-content pre,
  289. [dir="rtl"] .layout--content-narrow .text-content pre,
  290. [dir="rtl"] .layout--pass--content-narrow > * .text-content pre {
  291. margin-right: calc(-7.14286vw - -0.62946rem);
  292. }
  293. .layout--content-narrow.text-content pre,
  294. .layout--pass--content-narrow > *.text-content pre,
  295. .layout--content-narrow .text-content pre,
  296. .layout--pass--content-narrow > * .text-content pre {
  297. width: calc(85.71429vw - 9.80357rem);
  298. }
  299. }
  300. @media (min-width: 90rem) {
  301. [dir="ltr"] .layout--content-narrow.text-content pre,
  302. [dir="ltr"] .layout--pass--content-narrow > *.text-content pre,
  303. [dir="ltr"] .layout--content-narrow .text-content pre,
  304. [dir="ltr"] .layout--pass--content-narrow > * .text-content pre {
  305. margin-left: -5.86607rem;
  306. }
  307. [dir="rtl"] .layout--content-narrow.text-content pre,
  308. [dir="rtl"] .layout--pass--content-narrow > *.text-content pre,
  309. [dir="rtl"] .layout--content-narrow .text-content pre,
  310. [dir="rtl"] .layout--pass--content-narrow > * .text-content pre {
  311. margin-right: -5.86607rem;
  312. }
  313. .layout--content-narrow.text-content pre,
  314. .layout--pass--content-narrow > *.text-content pre,
  315. .layout--content-narrow .text-content pre,
  316. .layout--pass--content-narrow > * .text-content pre {
  317. width: 68.14286rem;
  318. }
  319. }
  320. /**
  321. *
     and 
    elements should not break containers and overflow
  322. * into sidebar region when present.
  323. */
  324. .sidebar-grid .layout--content-narrow.text-content blockquote,
  325. .sidebar-grid .layout--pass--content-narrow > *.text-content blockquote,
  326. .sidebar-grid .layout--content-narrow .text-content blockquote,
  327. .sidebar-grid .layout--pass--content-narrow > * .text-content blockquote,
  328. .sidebar-grid .layout--content-narrow.text-content pre,
  329. .sidebar-grid .layout--pass--content-narrow > *.text-content pre,
  330. .sidebar-grid .layout--content-narrow .text-content pre,
  331. .sidebar-grid .layout--pass--content-narrow > * .text-content pre {
  332. width: auto;
  333. }

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