aboutsummaryrefslogtreecommitdiff
path: root/src/components/rich_content
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2024-02-18 18:40:14 +0200
committerHenry Jameson <me@hjkos.com>2024-02-18 18:40:14 +0200
commit3e198526e66b88301882b14240f0d50b8819b520 (patch)
treed275a3e37c6f79c695d121bec658f61f154c9683 /src/components/rich_content
parent7c77809ff9a4d365ec17fb2ed43f3795382940a9 (diff)
dynamically load .style.js files; move the files closer to related components
Diffstat (limited to 'src/components/rich_content')
-rw-r--r--src/components/rich_content/rich_content.style.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/components/rich_content/rich_content.style.js b/src/components/rich_content/rich_content.style.js
new file mode 100644
index 00000000..aaf126a5
--- /dev/null
+++ b/src/components/rich_content/rich_content.style.js
@@ -0,0 +1,17 @@
+export default {
+ name: 'RichContent',
+ selector: '.RichContent',
+ validInnerComponents: [
+ 'Text',
+ 'FunText',
+ 'Link'
+ ],
+ defaultRules: [
+ {
+ directives: {
+ background: '--bg',
+ textNoCssColor: 'yes'
+ }
+ }
+ ]
+}