diff --git a/assets/base.css b/assets/base.css index f775c50400b..6eae8053d12 100644 --- a/assets/base.css +++ b/assets/base.css @@ -3048,3 +3048,71 @@ details-disclosure > details { outline: transparent solid 1px; } } + +.rte:after { + clear: both; + content: ''; + display: block; +} + +.rte > p:first-child { + margin-top: 0; +} + +.rte > p:last-child { + margin-bottom: 0; +} + +.rte table { + table-layout: fixed; +} + +@media screen and (min-width: 750px) { + .rte table td { + padding-left: 1.2rem; + padding-right: 1.2rem; + } +} + +.rte img { + height: auto; + max-width: 100%; + border: var(--media-border-width) solid rgba(var(--color-foreground), var(--media-border-opacity)); + border-radius: var(--media-radius); + box-shadow: var(--media-shadow-horizontal-offset) var(--media-shadow-vertical-offset) var(--media-shadow-blur-radius) rgba(var(--color-shadow), var(--media-shadow-opacity)); + margin-bottom: var(--media-shadow-vertical-offset); +} + +.rte ul, +.rte ol { + list-style-position: inside; + padding-left: 2rem; +} + +.rte li { + list-style: inherit; +} + +.rte li:last-child { + margin-bottom: 0; +} + +.rte a { + color: rgba(var(--color-link), var(--alpha-link)); + text-underline-offset: 0.3rem; + text-decoration-thickness: 0.1rem; + transition: text-decoration-thickness var(--duration-short) ease; +} + +.rte a:hover { + color: rgb(var(--color-link)); + text-decoration-thickness: 0.2rem; +} + +.rte blockquote { + display: inline-flex; +} + +.rte blockquote > * { + margin: -0.5rem 0 -0.5rem 0; +} diff --git a/assets/component-rte.css b/assets/component-rte.css deleted file mode 100644 index dc412b63546..00000000000 --- a/assets/component-rte.css +++ /dev/null @@ -1,67 +0,0 @@ -.rte:after { - clear: both; - content: ''; - display: block; -} - -.rte > p:first-child { - margin-top: 0; -} - -.rte > p:last-child { - margin-bottom: 0; -} - -.rte table { - table-layout: fixed; -} - -@media screen and (min-width: 750px) { - .rte table td { - padding-left: 1.2rem; - padding-right: 1.2rem; - } -} - -.rte img { - height: auto; - max-width: 100%; - border: var(--media-border-width) solid rgba(var(--color-foreground), var(--media-border-opacity)); - border-radius: var(--media-radius); - box-shadow: var(--media-shadow-horizontal-offset) var(--media-shadow-vertical-offset) var(--media-shadow-blur-radius) rgba(var(--color-shadow), var(--media-shadow-opacity)); - margin-bottom: var(--media-shadow-vertical-offset); -} - -.rte ul, -.rte ol { - list-style-position: inside; - padding-left: 2rem; -} - -.rte li { - list-style: inherit; -} - -.rte li:last-child { - margin-bottom: 0; -} - -.rte a { - color: rgba(var(--color-link), var(--alpha-link)); - text-underline-offset: 0.3rem; - text-decoration-thickness: 0.1rem; - transition: text-decoration-thickness var(--duration-short) ease; -} - -.rte a:hover { - color: rgb(var(--color-link)); - text-decoration-thickness: 0.2rem; -} - -.rte blockquote { - display: inline-flex; -} - -.rte blockquote > * { - margin: -0.5rem 0 -0.5rem 0; -} diff --git a/sections/collapsible-content.liquid b/sections/collapsible-content.liquid index 1e6cc8216b7..01ed143a3f2 100644 --- a/sections/collapsible-content.liquid +++ b/sections/collapsible-content.liquid @@ -1,6 +1,5 @@ {{ 'component-accordion.css' | asset_url | stylesheet_tag }} {{ 'collapsible-content.css' | asset_url | stylesheet_tag }} -{{ 'component-rte.css' | asset_url | stylesheet_tag }} {%- style -%} .section-{{ section.id }}-padding { diff --git a/sections/email-signup-banner.liquid b/sections/email-signup-banner.liquid index eb6be0d2d3c..dcf612e9c90 100644 --- a/sections/email-signup-banner.liquid +++ b/sections/email-signup-banner.liquid @@ -2,7 +2,6 @@ {{ 'component-newsletter.css' | asset_url | stylesheet_tag }} {{ 'newsletter-section.css' | asset_url | stylesheet_tag }} {{ 'section-email-signup-banner.css' | asset_url | stylesheet_tag }} -{{ 'component-rte.css' | asset_url | stylesheet_tag }} {%- style -%} #Banner-{{ section.id }}::after { diff --git a/sections/featured-collection.liquid b/sections/featured-collection.liquid index de0ac378733..dc1dffc8ab3 100644 --- a/sections/featured-collection.liquid +++ b/sections/featured-collection.liquid @@ -1,6 +1,5 @@ {{ 'component-card.css' | asset_url | stylesheet_tag }} {{ 'component-price.css' | asset_url | stylesheet_tag }} -{{ 'component-rte.css' | asset_url | stylesheet_tag }} @@ -48,7 +47,6 @@