Skip to content

Commit 9771130

Browse files
authored
Merge branch 'main' into text-underline-offset
2 parents 2dd4e77 + 8eeda41 commit 9771130

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

python_docs_theme/static/pydoctheme.css

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,31 @@ a[href] {
3636
a[href]:has(> code) {
3737
text-underline-offset: 0.25em;
3838
}
39+
/* No underline for navigation */
40+
a.headerlink,
41+
div.genindex-jumpbox a,
42+
div.modindex-jumpbox a,
43+
div#search-results a,
44+
div.sphinxsidebar a,
45+
div.toctree-wrapper a,
46+
div[role=navigation] a,
47+
table.contentstable a,
48+
table.indextable a {
49+
text-decoration: none;
50+
}
51+
52+
/* Except when hovered */
53+
div.genindex-jumpbox a:hover,
54+
div.modindex-jumpbox a:hover,
55+
div#search-results a:hover,
56+
div.sphinxsidebar a:hover,
57+
div.toctree-wrapper a:hover,
58+
div[role=navigation] a:hover,
59+
table.contentstable a:hover,
60+
table.indextable a:hover {
61+
text-decoration: underline;
62+
text-underline-offset: auto;
63+
}
3964

4065
body {
4166
margin-left: 1em;
@@ -287,6 +312,10 @@ div.footer {
287312
margin-right: 10px;
288313
}
289314

315+
div.footer a {
316+
text-underline-offset: auto;
317+
}
318+
290319
div.footer a:hover {
291320
color: #0095c4;
292321
}

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