You are here

text-content.css in Drupal 9

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