summaryrefslogtreecommitdiff
path: root/ui/styles/sidebar.css
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2025-04-21 22:20:30 -0400
committerOwen Jacobson <owen@grimoire.ca>2025-04-21 22:24:23 -0400
commit0daf2f31e698dc0f42a5a0d1dd8fbaae0e6a7653 (patch)
treedf52d15ed9f1d6c75591702808ac5df7d03e7f8f /ui/styles/sidebar.css
parent1ef57107b1c355ef896327f0714344277df7ae18 (diff)
Force the text colour for links in the channel list to something with decent contrast.
We were ending up with colours picked by a more specific rule (`a, a:hover, a:visited, a:active`, from `app.css`), which was suppressing the colours we wanted. This is not a particularly elegant solution, but it is _an_ solution. Code organized this way to avoid giving `a` elements a background colour.
Diffstat (limited to 'ui/styles/sidebar.css')
-rw-r--r--ui/styles/sidebar.css8
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/styles/sidebar.css b/ui/styles/sidebar.css
index c6aab6a..9a499f2 100644
--- a/ui/styles/sidebar.css
+++ b/ui/styles/sidebar.css
@@ -24,11 +24,19 @@
color: var(--colour-navbar-active-text);
}
+.list-nav li.active a {
+ color: var(--colour-navbar-active-text);
+}
+
.list-nav li:hover {
background-color: var(--colour-navbar-hover-bg);
color: var(--colour-navbar-hover-text);
}
+.list-nav li:hover a {
+ color: var(--colour-navbar-hover-text);
+}
+
/* create channel form */
.create-channel {
padding-left: 0.5rem;