From 7d076e0742eddbd9db12ece2bb60b5f54c72e418 Mon Sep 17 00:00:00 2001 From: sorrel Date: Sat, 2 Mar 2024 11:36:01 -0500 Subject: [PATCH] patch link styling keep ::before colors consistent and add new ::before content for # fragment links --- static/style/styles.css | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/static/style/styles.css b/static/style/styles.css index 030f26c..c7ba32b 100644 --- a/static/style/styles.css +++ b/static/style/styles.css @@ -83,10 +83,19 @@ a:visited { text-decoration-color: var(--link-color); } -a:not(.ascii a):not(a[hx-get*="hx"])::before { - content: ". -> . "; - color: var(--foreground-color); +a:not(.ascii a):not(a[hx-get*="hx"]):not(a[href*="#"])::before { + content: ". -> ."; font-weight: 900; + display: inline-block; + padding-right: .5em; +} + +a[href*="#"] { + content: "↓"; + font-weight: 900; + font-size: larger; + display: inline-block; + padding-right: .5em; } body {