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

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