text-content.css

Same filename in other branches
  1. 9 core/themes/olivero/css/components/text-content.css
  2. 10 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. .text-content,
  12. .cke_editable {
  13. color: var(--color-text-neutral-medium);
  14. font-family: var(--font-serif);
  15. line-height: var(--sp1-5);
  16. /*
  17. @todo
  18. text-decoration-thickness is supported by FF & Safari
  19. text-underline-offset is supported by Safari
  20. text-decoration-color supported by Chrome, FF, & Safari
  21. */
  22. }
  23. .text-content a:where(:not(.button)),
  24. .cke_editable a:where(:not(.button)) {
  25. color: var(--color-text-primary-medium);
  26. text-decoration-color: currentColor;
  27. text-decoration-thickness: 2px;
  28. overflow-wrap: break-word;
  29. }
  30. @supports (box-shadow: none) {
  31. .text-content a:where(:not(.button)),
  32. .cke_editable a:where(:not(.button)) {
  33. transition: box-shadow 0.3s cubic-bezier(0.55, 0.085, 0, 0.99);
  34. -webkit-text-decoration: none;
  35. text-decoration: none;
  36. box-shadow: inset 0 -2px 0 0 var(--color--primary-50);
  37. }
  38. .text-content a:where(:not(.button)):hover,
  39. .cke_editable a:where(:not(.button)):hover {
  40. -webkit-text-decoration: underline;
  41. text-decoration: underline;
  42. color: var(--color--black);
  43. box-shadow: inset 0 -2em 0 0 var(--color--primary-80);
  44. text-decoration-color: var(--color--primary-80);
  45. }
  46. }
  47. .text-content p,
  48. .cke_editable p {
  49. margin-block-start: var(--sp);
  50. margin-block-end: var(--sp);
  51. }
  52. .text-content p:first-child,
  53. .cke_editable p:first-child {
  54. margin-block-start: 0;
  55. }
  56. .text-content p:last-child,
  57. .cke_editable p:last-child {
  58. margin-block-end: 0;
  59. }
  60. @media (min-width: 43.75rem) {
  61. .text-content p,
  62. .cke_editable p {
  63. margin-block-start: var(--sp2);
  64. margin-block-end: var(--sp2);
  65. }
  66. }
  67. .text-content code,
  68. .cke_editable code {
  69. background-color: var(--color--gray-100);
  70. }
  71. .text-content pre code,
  72. .cke_editable pre code {
  73. display: block;
  74. overflow: auto;
  75. padding-block: var(--sp);
  76. padding-inline-start: var(--sp);
  77. padding-inline-end: var(--sp);
  78. color: var(--color-text-neutral-soft);
  79. }
  80. .text-content blockquote,
  81. .cke_editable blockquote {
  82. position: relative;
  83. margin-block: var(--sp2);
  84. margin-inline-start: 0;
  85. margin-inline-end: 0;
  86. padding-inline-start: var(--sp2);
  87. letter-spacing: -0.01em;
  88. font-family: var(--font-serif);
  89. font-size: 1.3125rem;
  90. line-height: var(--sp2);
  91. }
  92. .text-content blockquote::before,
  93. .cke_editable blockquote::before {
  94. position: absolute;
  95. inset-block-start: 0;
  96. inset-inline-start: 0;
  97. content: "\201C";
  98. color: var(--color--primary-60);
  99. font-size: 3.375rem;
  100. }
  101. .text-content blockquote::after,
  102. .cke_editable blockquote::after {
  103. position: absolute;
  104. inset-block-end: 0;
  105. inset-inline-start: 0;
  106. width: var(--sp0-5);
  107. height: calc(100% - 1.875rem);
  108. margin-inline-start: 0.25rem;
  109. content: "";
  110. background: var(--color--gray-100);
  111. }
  112. @media (min-width: 43.75rem) {
  113. .text-content blockquote,
  114. .cke_editable blockquote {
  115. font-size: 2rem;
  116. line-height: var(--sp3);
  117. }
  118. }
  119. @media (min-width: 62.5rem) {
  120. .text-content blockquote,
  121. .cke_editable blockquote {
  122. font-size: 2.5rem;
  123. line-height: var(--sp3-5);
  124. }
  125. }
  126. @media (min-width: 43.75rem) {
  127. .text-content,
  128. .cke_editable {
  129. font-size: 1.125rem;
  130. line-height: var(--sp2);
  131. }
  132. }
  133. /**
  134. * Special colors for footer that has a dark background.
  135. */
  136. .site-footer .text-content {
  137. color: inherit;
  138. }
  139. .site-footer .text-content * {
  140. color: inherit;
  141. }
  142. .site-footer .text-content a {
  143. -webkit-text-decoration: underline;
  144. text-decoration: underline;
  145. color: var(--color--white);
  146. box-shadow: none;
  147. }
  148. .site-footer .text-content a:hover {
  149. -webkit-text-decoration: none;
  150. text-decoration: none;
  151. color: var(--color--white);
  152. box-shadow: none;
  153. }
  154. /**
  155. * Decrease font-size for blockquote placed in sidebar region.
  156. */
  157. @media (min-width: 62.5rem) {
  158. .region--sidebar .text-content blockquote {
  159. font-size: 1.5rem;
  160. line-height: var(--sp2);
  161. }
  162. }

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