From f55f772659a505ceb8751d8728c22c810afed018 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Sun, 27 Nov 2022 15:59:46 +0100 Subject: [PATCH] style: Put user colors into the smallest possible scope The only thing that cares about user colors is the user component. Putting a class value on the chat component seems to be the wrong place. This also allows us to remove various css selectors so that we don't need to be that specific. After all whatever has that class needs to be colored, we don't care where it is. --- client/components/Chat.vue | 1 - client/components/Username.vue | 6 +- client/components/Windows/SearchResults.vue | 1 - client/css/style.css | 66 ++++++++++----------- 4 files changed, 38 insertions(+), 36 deletions(-) diff --git a/client/components/Chat.vue b/client/components/Chat.vue index f1dfc51b..fe016d87 100644 --- a/client/components/Chat.vue +++ b/client/components/Chat.vue @@ -4,7 +4,6 @@ id="chat" :class="{ 'hide-motd': store.state.settings.motd, - 'colored-nicks': store.state.settings.coloredNicks, 'time-seconds': store.state.settings.showSeconds, 'time-12h': store.state.settings.use12hClock, }" diff --git a/client/components/Username.vue b/client/components/Username.vue index 371e89a5..0f0fe937 100644 --- a/client/components/Username.vue +++ b/client/components/Username.vue @@ -1,6 +1,6 @@