Skip to content

Commit 8eeda41

Browse files
authored
Merge pull request #169 from hugovk/nav-no-underline
2 parents 6a9d7a2 + bd00c3d commit 8eeda41

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

python_docs_theme/static/pydoctheme.css

+29
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,31 @@ a[href] {
3333
text-decoration: underline 1px;
3434
text-underline-offset: 0.25em;
3535
}
36+
/* No underline for navigation */
37+
a.headerlink,
38+
div.genindex-jumpbox a,
39+
div.modindex-jumpbox a,
40+
div#search-results a,
41+
div.sphinxsidebar a,
42+
div.toctree-wrapper a,
43+
div[role=navigation] a,
44+
table.contentstable a,
45+
table.indextable a {
46+
text-decoration: none;
47+
}
48+
49+
/* Except when hovered */
50+
div.genindex-jumpbox a:hover,
51+
div.modindex-jumpbox a:hover,
52+
div#search-results a:hover,
53+
div.sphinxsidebar a:hover,
54+
div.toctree-wrapper a:hover,
55+
div[role=navigation] a:hover,
56+
table.contentstable a:hover,
57+
table.indextable a:hover {
58+
text-decoration: underline;
59+
text-underline-offset: auto;
60+
}
3661

3762
body {
3863
margin-left: 1em;
@@ -284,6 +309,10 @@ div.footer {
284309
margin-right: 10px;
285310
}
286311

312+
div.footer a {
313+
text-underline-offset: auto;
314+
}
315+
287316
div.footer a:hover {
288317
color: #0095c4;
289318
}

0 commit comments

Comments
 (0)