Skip to content

Commit f74a7a8

Browse files
committed
Clamp link underline to max 4px
Clamp link underline between 1 and 4px. For headers the underline was 6+px and was intersecting the letterforms when the header line wrapped.
1 parent 285aec9 commit f74a7a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/_static/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ div[class^=highlight-], div[class^=highlight-] * { width:
178178

179179
:link { color: rgb(220,0,0); text-decoration: none;}
180180
:link:hover {
181-
text-decoration: underline solid .3ex;
181+
text-decoration: underline solid clamp(1px, .3ex, 4px);
182182
text-underline-position: under;
183183
}
184184
:visited { color: rgb(200,0,0); text-decoration: none;}

website/www/_static/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ div[class^=highlight-], div[class^=highlight-] * { width:
178178

179179
:link { color: rgb(220,0,0); text-decoration: none;}
180180
:link:hover {
181-
text-decoration: underline solid .3ex;
181+
text-decoration: underline solid clamp(1px, .3ex, 4px);
182182
text-underline-position: under;
183183
}
184184
:visited { color: rgb(200,0,0); text-decoration: none;}

0 commit comments

Comments
 (0)