diff options
author | Kristóf Marussy <kristof@marussy.com> | 2024-03-20 01:36:26 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2024-03-20 01:43:11 +0100 |
commit | ede6ff463dab838a29a65d120c0796a6778cc337 (patch) | |
tree | b9cb5465c15cafd22c831dbbda09ec3c36a4f59c | |
parent | Simplify license links (diff) | |
download | blog-ede6ff463dab838a29a65d120c0796a6778cc337.tar.gz blog-ede6ff463dab838a29a65d120c0796a6778cc337.tar.zst blog-ede6ff463dab838a29a65d120c0796a6778cc337.zip |
Underline links for increased accessibility
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | src/css/custom.css | 19 |
2 files changed, 20 insertions, 0 deletions
@@ -3,6 +3,7 @@ | |||
3 | 3 | ||
4 | SPDX-License-Identifier: CC-BY-4.0 | 4 | SPDX-License-Identifier: CC-BY-4.0 |
5 | --> | 5 | --> |
6 | |||
6 | # Personal website of Kristóf Marussy | 7 | # Personal website of Kristóf Marussy |
7 | 8 | ||
8 | ## Compilation | 9 | ## Compilation |
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 { | |||
97 | letter-spacing: var(--marussy-heading-tracking-looser); | 97 | letter-spacing: var(--marussy-heading-tracking-looser); |
98 | } | 98 | } |
99 | 99 | ||
100 | a { | ||
101 | text-decoration: underline; | ||
102 | text-decoration-skip: auto; | ||
103 | text-underline-offset: 0.125em; | ||
104 | text-decoration-thickness: calc(max(1px, 0.0625em)); | ||
105 | } | ||
106 | |||
107 | .navbar a, | ||
108 | .table-of-contents a, | ||
109 | a:hover, | ||
110 | a:focus, | ||
111 | .button { | ||
112 | text-decoration: none; | ||
113 | } | ||
114 | |||
115 | .table-of-contents a:hover { | ||
116 | text-decoration: underline; | ||
117 | } | ||
118 | |||
100 | .hash-link { | 119 | .hash-link { |
101 | font-weight: 500; | 120 | font-weight: 500; |
102 | --casl: 0; | 121 | --casl: 0; |