You are here

text-content.css in Drupal 10

Same filename and directory in other branches
  1. 9 core/themes/olivero/css/components/text-content.css

Text Content.

File

core/themes/olivero/css/components/text-content.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. * Text Content.
  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. .text-content,
  20. .cke_editable {
  21. color: var(--color-text-neutral-medium);
  22. font-family: var(--font-serif);
  23. line-height: var(--sp1-5)
  24. /*
  25. @todo
  26. text-decoration-thickness is supported by FF & Safari
  27. text-underline-offset is supported by Safari
  28. text-decoration-color supported by Chrome, FF, & Safari
  29. */
  30. }
  31. .text-content a:where(:not(.button)), .cke_editable a:where(:not(.button)) {
  32. color: var(--color-text-primary-medium);
  33. -webkit-text-decoration-color: currentColor;
  34. text-decoration-color: currentColor;
  35. text-decoration-thickness: 2px;
  36. overflow-wrap: break-word
  37. }
  38. @supports (box-shadow: none) {
  39. .text-content a:where(:not(.button)), .cke_editable a:where(:not(.button)) {
  40. transition: box-shadow 0.3s cubic-bezier(0.55, 0.085, 0, 0.99);
  41. text-decoration: none;
  42. box-shadow: inset 0 -2px 0 0 var(--color--primary-50)
  43. }
  44. .text-content a:where(:not(.button)):hover, .cke_editable a:where(:not(.button)):hover {
  45. text-decoration: underline;
  46. color: var(--color--black);
  47. /* @todo - #d9ecfa isn't currently a variable. */
  48. box-shadow: inset 0 -2em 0 0 #d9ecfa;
  49. -webkit-text-decoration-color: #d9ecfa;
  50. text-decoration-color: #d9ecfa;
  51. }
  52. }
  53. .text-content p, .cke_editable p {
  54. margin-top: var(--sp);
  55. margin-bottom: var(--sp)
  56. }
  57. .text-content p:first-child, .cke_editable p:first-child {
  58. margin-top: 0;
  59. }
  60. .text-content p:last-child, .cke_editable p:last-child {
  61. margin-bottom: 0;
  62. }
  63. @media (min-width: 43.75rem) {
  64. .text-content p, .cke_editable p {
  65. margin-top: var(--sp2);
  66. margin-bottom: var(--sp2)
  67. }
  68. }
  69. .text-content code, .cke_editable code {
  70. background-color: var(--color--gray-100);
  71. }
  72. [dir="ltr"] .text-content pre code,[dir="ltr"] .cke_editable pre code {
  73. padding-left: var(--sp)
  74. }
  75. [dir="rtl"] .text-content pre code,[dir="rtl"] .cke_editable pre code {
  76. padding-right: var(--sp)
  77. }
  78. [dir="ltr"] .text-content pre code,[dir="ltr"] .cke_editable pre code {
  79. padding-right: var(--sp)
  80. }
  81. [dir="rtl"] .text-content pre code,[dir="rtl"] .cke_editable pre code {
  82. padding-left: var(--sp)
  83. }
  84. .text-content pre code, .cke_editable pre code {
  85. display: block;
  86. overflow: auto;
  87. padding-top: var(--sp);
  88. padding-bottom: var(--sp);
  89. color: var(--color-text-neutral-soft);
  90. }
  91. [dir="ltr"] .text-content blockquote,[dir="ltr"] .cke_editable blockquote {
  92. margin-left: 0
  93. }
  94. [dir="rtl"] .text-content blockquote,[dir="rtl"] .cke_editable blockquote {
  95. margin-right: 0
  96. }
  97. [dir="ltr"] .text-content blockquote,[dir="ltr"] .cke_editable blockquote {
  98. margin-right: 0
  99. }
  100. [dir="rtl"] .text-content blockquote,[dir="rtl"] .cke_editable blockquote {
  101. margin-left: 0
  102. }
  103. [dir="ltr"] .text-content blockquote,[dir="ltr"] .cke_editable blockquote {
  104. padding-left: var(--sp2)
  105. }
  106. [dir="rtl"] .text-content blockquote,[dir="rtl"] .cke_editable blockquote {
  107. padding-right: var(--sp2)
  108. }
  109. .text-content blockquote, .cke_editable blockquote {
  110. position: relative;
  111. margin-top: var(--sp2);
  112. margin-bottom: var(--sp2);
  113. letter-spacing: -0.01em;
  114. font-family: var(--font-serif);
  115. font-size: 1.3125rem;
  116. line-height: var(--sp2)
  117. }
  118. [dir="ltr"] .text-content blockquote:before,[dir="ltr"] .cke_editable blockquote:before {
  119. left: 0
  120. }
  121. [dir="rtl"] .text-content blockquote:before,[dir="rtl"] .cke_editable blockquote:before {
  122. right: 0
  123. }
  124. .text-content blockquote:before, .cke_editable blockquote:before {
  125. position: absolute;
  126. top: 0;
  127. content: "“";
  128. color: var(--color--primary-60);
  129. font-size: 3.375rem;
  130. }
  131. [dir="ltr"] .text-content blockquote:after,[dir="ltr"] .cke_editable blockquote:after {
  132. left: 0
  133. }
  134. [dir="rtl"] .text-content blockquote:after,[dir="rtl"] .cke_editable blockquote:after {
  135. right: 0
  136. }
  137. [dir="ltr"] .text-content blockquote:after,[dir="ltr"] .cke_editable blockquote:after {
  138. margin-left: 0.25rem
  139. }
  140. [dir="rtl"] .text-content blockquote:after,[dir="rtl"] .cke_editable blockquote:after {
  141. margin-right: 0.25rem
  142. }
  143. .text-content blockquote:after, .cke_editable blockquote:after {
  144. position: absolute;
  145. bottom: 0;
  146. width: var(--sp0-5);
  147. height: calc(100% - 1.875rem);
  148. content: "";
  149. background: var(--color--gray-100);
  150. }
  151. @media (min-width: 43.75rem) {
  152. .text-content blockquote, .cke_editable blockquote {
  153. font-size: 2rem;
  154. line-height: var(--sp3)
  155. }
  156. }
  157. @media (min-width: 62.5rem) {
  158. .text-content blockquote, .cke_editable blockquote {
  159. font-size: 2.5rem;
  160. line-height: calc(3.5 * var(--sp))
  161. }
  162. }
  163. @media (min-width: 43.75rem) {
  164. .text-content,
  165. .cke_editable {
  166. font-size: 1.125rem;
  167. line-height: var(--sp2)
  168. }
  169. }
  170. /**
  171. * Special colors for footer that has a dark background.
  172. */
  173. .site-footer .text-content {
  174. color: inherit
  175. }
  176. .site-footer .text-content * {
  177. color: inherit;
  178. }
  179. .site-footer .text-content a {
  180. text-decoration: underline;
  181. color: var(--color--white);
  182. box-shadow: none
  183. }
  184. .site-footer .text-content a:hover {
  185. text-decoration: none;
  186. color: var(--color--white);
  187. box-shadow: none;
  188. }
  189. /**
  190. * Decrease font-size for blockquote placed in sidebar region.
  191. */
  192. @media (min-width: 62.5rem) {
  193. .region--sidebar .text-content blockquote {
  194. font-size: 1.5rem;
  195. line-height: var(--sp2)
  196. }
  197. }