From 7d2faccd4f62e8ff6c2f6cc9b8b11d890a6ab974 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 22 Feb 2024 18:04:28 +0200 Subject: fonts support, cleanup --- src/components/rich_content/rich_content.scss | 8 ++++---- src/components/rich_content/rich_content.style.js | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src/components/rich_content') diff --git a/src/components/rich_content/rich_content.scss b/src/components/rich_content/rich_content.scss index 3bb5b16b..73eb07e9 100644 --- a/src/components/rich_content/rich_content.scss +++ b/src/components/rich_content/rich_content.scss @@ -1,10 +1,10 @@ -@import "../../variables"; - .RichContent { + font-family: var(--font); + blockquote { margin: 0.2em 0 0.2em 0.2em; font-style: italic; - border-left: 0.2em solid var(--faint, $fallback--faint); + border-left: 0.2em solid var(--textFaint); padding-left: 1em; } @@ -17,7 +17,7 @@ kbd, var, pre { - font-family: var(--postCodeFont, monospace); + font-family: var(--monoFont); } p { diff --git a/src/components/rich_content/rich_content.style.js b/src/components/rich_content/rich_content.style.js index 7acc9d4f..c8314000 100644 --- a/src/components/rich_content/rich_content.style.js +++ b/src/components/rich_content/rich_content.style.js @@ -9,6 +9,8 @@ export default { defaultRules: [ { directives: { + '--font': 'generic | inherit', + '--monoFont': 'generic | monospace', textNoCssColor: 'yes' } } -- cgit v1.2.3-70-g09d2