text-content.css
Same filename in other branches
Text Content.
File
-
core/
themes/ olivero/ css/ components/ text-content.css
View source
- /*
- * DO NOT EDIT THIS FILE.
- * See the following change record for more information,
- * https://www.drupal.org/node/3084859
- * @preserve
- */
-
- /**
- * @file
- * Text Content.
- */
-
- .text-content,
- .cke_editable {
- color: #313637;
- font-family: Lora, georgia, serif;
- line-height: 1.6875rem;
-
- /*
- @todo
-
- text-decoration-thickness is supported by FF & Safari
- text-underline-offset is supported by Safari
-
- text-decoration-color supported by Chrome, FF, & Safari
- */
- }
-
- .text-content a:not(.button),
- .cke_editable a:not(.button) {
- word-wrap: break-word;
- color: #0d77b5;
- text-decoration-color: #0d77b5;
- text-decoration-thickness: 2px;
- }
-
- @supports (box-shadow: none) {
-
- .text-content a:not(.button),
- .cke_editable a:not(.button) {
- transition: box-shadow 0.3s cubic-bezier(0.55, 0.085, 0, 0.99);
- text-decoration: none;
- box-shadow: inset 0 -2px 0 0 #2494db;
- }
-
- .text-content a:not(.button):hover,
- .cke_editable a:not(.button):hover {
- text-decoration: underline;
- color: #000;
-
- /* @todo - #d9ecfa isn't currently a variable. */
- box-shadow: inset 0 -2em 0 0 #d9ecfa;
- text-decoration-color: #d9ecfa;
- }
- }
-
- .text-content p,
- .cke_editable p {
- margin-top: 1.125rem;
- margin-bottom: 1.125rem;
- }
-
- .text-content p:first-child,
- .cke_editable p:first-child {
- margin-top: 0;
- }
-
- .text-content p:last-child,
- .cke_editable p:last-child {
- margin-bottom: 0;
- }
-
- @media (min-width: 43.75rem) {
-
- .text-content p,
- .cke_editable p {
- margin-top: 2.25rem;
- margin-bottom: 2.25rem;
- }
- }
-
- .text-content code,
- .cke_editable code {
- background-color: #f7f9fa;
- }
-
- [dir="ltr"] .text-content pre code,
- [dir="ltr"] .cke_editable pre code {
- padding-left: 1.125rem;
- }
-
- [dir="rtl"] .text-content pre code,
- [dir="rtl"] .cke_editable pre code {
- padding-right: 1.125rem;
- }
-
- [dir="ltr"] .text-content pre code,
- [dir="ltr"] .cke_editable pre code {
- padding-right: 1.125rem;
- }
-
- [dir="rtl"] .text-content pre code,
- [dir="rtl"] .cke_editable pre code {
- padding-left: 1.125rem;
- }
-
- .text-content pre code,
- .cke_editable pre code {
- display: block;
- overflow: auto;
- padding-top: 1.125rem;
- padding-bottom: 1.125rem;
- color: #6e7172;
- }
-
- [dir="ltr"] .text-content blockquote,
- [dir="ltr"] .cke_editable blockquote {
- margin-left: 0;
- }
-
- [dir="rtl"] .text-content blockquote,
- [dir="rtl"] .cke_editable blockquote {
- margin-right: 0;
- }
-
- [dir="ltr"] .text-content blockquote,
- [dir="ltr"] .cke_editable blockquote {
- margin-right: 0;
- }
-
- [dir="rtl"] .text-content blockquote,
- [dir="rtl"] .cke_editable blockquote {
- margin-left: 0;
- }
-
- [dir="ltr"] .text-content blockquote,
- [dir="ltr"] .cke_editable blockquote {
- padding-left: 2.25rem;
- }
-
- [dir="rtl"] .text-content blockquote,
- [dir="rtl"] .cke_editable blockquote {
- padding-right: 2.25rem;
- }
-
- .text-content blockquote,
- .cke_editable blockquote {
- position: relative;
- margin-top: 2.25rem;
- margin-bottom: 2.25rem;
- letter-spacing: -0.01em;
- font-family: Lora, georgia, serif;
- font-size: 1.3125rem;
- line-height: 2.25rem;
- }
-
- [dir="ltr"] .text-content blockquote:before,
- [dir="ltr"] .cke_editable blockquote:before {
- left: 0;
- }
-
- [dir="rtl"] .text-content blockquote:before,
- [dir="rtl"] .cke_editable blockquote:before {
- right: 0;
- }
-
- .text-content blockquote:before,
- .cke_editable blockquote:before {
- position: absolute;
- top: 0;
- content: "\201C";
- color: #53b0eb;
- font-size: 3.375rem;
- }
-
- [dir="ltr"] .text-content blockquote:after,
- [dir="ltr"] .cke_editable blockquote:after {
- left: 0;
- }
-
- [dir="rtl"] .text-content blockquote:after,
- [dir="rtl"] .cke_editable blockquote:after {
- right: 0;
- }
-
- [dir="ltr"] .text-content blockquote:after,
- [dir="ltr"] .cke_editable blockquote:after {
- margin-left: 0.25rem;
- }
-
- [dir="rtl"] .text-content blockquote:after,
- [dir="rtl"] .cke_editable blockquote:after {
- margin-right: 0.25rem;
- }
-
- .text-content blockquote:after,
- .cke_editable blockquote:after {
- position: absolute;
- bottom: 0;
- width: 0.5625rem;
- height: calc(100% - 1.875rem);
- content: "";
- background: #f7f9fa;
- }
-
- @media (min-width: 43.75rem) {
-
- .text-content blockquote,
- .cke_editable blockquote {
- font-size: 2rem;
- line-height: 3.375rem;
- }
- }
-
- @media (min-width: 62.5rem) {
-
- .text-content blockquote,
- .cke_editable blockquote {
- font-size: 2.5rem;
- line-height: 3.9375rem;
- }
- }
-
- @media (min-width: 43.75rem) {
-
- .text-content,
- .cke_editable {
- font-size: 1.125rem;
- line-height: 2.25rem;
- }
- }
-
- /**
- * Special colors for footer that has a dark background.
- */
-
- .site-footer .text-content {
- color: inherit;
- }
-
- .site-footer .text-content * {
- color: inherit;
- }
-
- .site-footer .text-content a {
- text-decoration: underline;
- color: #fff;
- box-shadow: none;
- }
-
- .site-footer .text-content a:hover {
- text-decoration: none;
- color: #fff;
- box-shadow: none;
- }
-
- /**
- * Decrease font-size for blockquote placed in sidebar region.
- */
-
- @media (min-width: 62.5rem) {
-
- .region--sidebar .text-content blockquote {
- font-size: 1.5rem;
- line-height: 2.25rem;
- }
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.