From 3e198526e66b88301882b14240f0d50b8819b520 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 18 Feb 2024 18:40:14 +0200 Subject: dynamically load .style.js files; move the files closer to related components --- src/components/notification/notification.style.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/components/notification/notification.style.js (limited to 'src/components/notification/notification.style.js') diff --git a/src/components/notification/notification.style.js b/src/components/notification/notification.style.js new file mode 100644 index 00000000..ad7aab65 --- /dev/null +++ b/src/components/notification/notification.style.js @@ -0,0 +1,23 @@ +export default { + name: 'Notification', + selector: '.Notification', + validInnerComponents: [ + 'Text', + 'Link', + 'Icon', + 'Border', + 'Button', + 'ButtonUnstyled', + 'RichContent', + 'Input', + 'Avatar', + 'Attachment' + ], + defaultRules: [ + { + directives: { + background: '--bg' + } + } + ] +} -- cgit v1.2.3-70-g09d2 From 11fd220734ae697e8157d25fbf4cdfc250fe2df7 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 19 Feb 2024 15:11:59 +0200 Subject: chat styles + related improvements --- src/components/chat/chat.style.js | 14 +++++++++ src/components/chat/chat.vue | 2 +- src/components/chat_message/chat_message.scss | 38 +++-------------------- src/components/chat_message/chat_message.style.js | 30 ++++++++++++++++++ src/components/notification/notification.style.js | 8 +---- src/components/panel.style.js | 3 +- src/components/panel_header.style.js | 3 +- src/components/rich_content/rich_content.style.js | 1 - src/components/status/post.style.js | 8 +---- src/services/theme_data/theme_data_3.service.js | 34 +++++++++----------- 10 files changed, 69 insertions(+), 72 deletions(-) create mode 100644 src/components/chat/chat.style.js create mode 100644 src/components/chat_message/chat_message.style.js (limited to 'src/components/notification/notification.style.js') diff --git a/src/components/chat/chat.style.js b/src/components/chat/chat.style.js new file mode 100644 index 00000000..fc3d66a4 --- /dev/null +++ b/src/components/chat/chat.style.js @@ -0,0 +1,14 @@ +export default { + name: 'Chat', + selector: '.chat-message-list', + lazy: true, + validInnerComponents: [ + 'Text', + 'Link', + 'Icon', + 'Avatar', + 'ChatMessage' + ], + defaultRules: [ + ] +} diff --git a/src/components/chat/chat.vue b/src/components/chat/chat.vue index fc94cc71..65f89c73 100644 --- a/src/components/chat/chat.vue +++ b/src/components/chat/chat.vue @@ -26,7 +26,7 @@