aboutsummaryrefslogtreecommitdiff
path: root/src/components/chat_message/chat_message.style.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2024-02-19 15:11:59 +0200
committerHenry Jameson <me@hjkos.com>2024-02-19 15:11:59 +0200
commit11fd220734ae697e8157d25fbf4cdfc250fe2df7 (patch)
tree93c476c9ed387d48456aff75c4d31eebd311f7b8 /src/components/chat_message/chat_message.style.js
parentab63ec1471964aaf8ffc3d65412b54b173fc5b9e (diff)
chat styles + related improvements
Diffstat (limited to 'src/components/chat_message/chat_message.style.js')
-rw-r--r--src/components/chat_message/chat_message.style.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/components/chat_message/chat_message.style.js b/src/components/chat_message/chat_message.style.js
new file mode 100644
index 00000000..9b57ad37
--- /dev/null
+++ b/src/components/chat_message/chat_message.style.js
@@ -0,0 +1,30 @@
+export default {
+ name: 'ChatMessage',
+ selector: '.chat-message',
+ variants: {
+ outgoing: '.outgoing'
+ },
+ validInnerComponents: [
+ 'Text',
+ 'Icon',
+ 'Border',
+ 'Button',
+ 'RichContent',
+ 'Attachment',
+ 'PollGraph'
+ ],
+ defaultRules: [
+ {
+ directives: {
+ background: '--bg, 2',
+ backgroundNoCssColor: 'yes'
+ }
+ },
+ {
+ variant: 'outgoing',
+ directives: {
+ background: '--bg, 5'
+ }
+ }
+ ]
+}