From 2a1e36dc539fcd8a8bba32b270077c44598072bf Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Thu, 8 May 2025 11:13:08 -0700 Subject: [PATCH] Make linked rules are clicked, highlight the color The current grey color has a low contrast with the background. This changes it so that when selected it uses the foreground color so that it is clearer which rule is currently linked to. --- theme/reference.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/theme/reference.css b/theme/reference.css index f3305c152..727c80004 100644 --- a/theme/reference.css +++ b/theme/reference.css @@ -389,6 +389,11 @@ main > .rule { padding-right: 5px; } +/* Make it bolder/easier to read when selected. */ +.rule:target .rule-link { + color: var(--fg) !important; +} + /* Dodge ยป from headings */ /* Note: Some rules have a .tests-popup in the way, so that's why this selects either with or without. */