Skip to content

Commit a7b4518

Browse files
committed
Make underline styling depend on support, use borders as fallback.
--HG-- extra : rebase_source : bac97001af1504cae6637d26e24458f611e1f045
1 parent 46de543 commit a7b4518

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

default.css

+21-6
Original file line numberDiff line numberDiff line change
@@ -306,17 +306,26 @@
306306

307307
/** General Hyperlinks ********************************************************/
308308

309-
a:link, a:visited { /* We hyperlink a lot, so make it less intrusive */
309+
/* We hyperlink a lot, so make it less intrusive */
310+
a:link, a:visited {
310311
color: inherit;
311-
text-decoration: underline;
312-
text-decoration-color: silver;
312+
text-decoration: none;
313+
border-bottom: 1px solid silver;
313314
}
314-
a:visited {
315-
text-decoration-style: dotted;
315+
@supports (text-decoration-color: silver) {
316+
a:link, a:visited {
317+
text-decoration: underline;
318+
text-decoration-color: silver;
319+
}
320+
a:visited {
321+
text-decoration-style: dotted;
322+
}
316323
}
324+
317325
a.logo:link, a.logo:visited { /* backout above styling for W3C logo */
318326
padding: 0;
319-
border-style: none;
327+
border: none;
328+
text-decoration: none;
320329
}
321330

322331
/** Self-Links ****************************************************************/
@@ -770,6 +779,12 @@
770779
ul.toc, ul.toc ul, ul.toc li { padding: 0; line-height: 1.3; }
771780
ul.toc a { text-decoration: none; border-bottom-style: none; }
772781
ul.toc a:hover, ul.toc a:focus { border-bottom-style: solid; }
782+
@supports (text-decoration-style: solid) {
783+
ul.toc a:hover, ul.toc a:focus {
784+
border-bottom-style: none;
785+
text-decoration-style: solid;
786+
}
787+
}
773788
/*
774789
ul.toc li li li, ul.toc li li li ul {margin-left: 0; display: inline}
775790
ul.toc li li li ul, ul.toc li li li ul li {margin-left: 0; display: inline}

0 commit comments

Comments
 (0)