Skip to content

Commit 2c20723

Browse files
committed
Do not underline navigation links
1 parent 6a9d7a2 commit 2c20723

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

python_docs_theme/static/pydoctheme.css

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

3761
body {
3862
margin-left: 1em;
@@ -284,6 +308,10 @@ div.footer {
284308
margin-right: 10px;
285309
}
286310

311+
div.footer a {
312+
text-underline-offset: auto;
313+
}
314+
287315
div.footer a:hover {
288316
color: #0095c4;
289317
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy