diff options
| author | Henry Jameson <me@hjkos.com> | 2024-02-19 15:11:59 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2024-02-19 15:11:59 +0200 |
| commit | 11fd220734ae697e8157d25fbf4cdfc250fe2df7 (patch) | |
| tree | 93c476c9ed387d48456aff75c4d31eebd311f7b8 /src/components/chat_message/chat_message.style.js | |
| parent | ab63ec1471964aaf8ffc3d65412b54b173fc5b9e (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.js | 30 |
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' + } + } + ] +} |
