text-content.css

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

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