From ede6ff463dab838a29a65d120c0796a6778cc337 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Wed, 20 Mar 2024 01:36:26 +0100 Subject: Underline links for increased accessibility --- src/css/custom.css | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src') diff --git a/src/css/custom.css b/src/css/custom.css index b8899be..d3c0b42 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -97,6 +97,25 @@ h3 { letter-spacing: var(--marussy-heading-tracking-looser); } +a { + text-decoration: underline; + text-decoration-skip: auto; + text-underline-offset: 0.125em; + text-decoration-thickness: calc(max(1px, 0.0625em)); +} + +.navbar a, +.table-of-contents a, +a:hover, +a:focus, +.button { + text-decoration: none; +} + +.table-of-contents a:hover { + text-decoration: underline; +} + .hash-link { font-weight: 500; --casl: 0; -- cgit v1.2.3-70-g09d2