Skip to content

Commit

Permalink
Merge pull request #169 from hugovk/nav-no-underline
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Feb 4, 2024
2 parents 6a9d7a2 + bd00c3d commit 8eeda41
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions python_docs_theme/static/pydoctheme.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,31 @@ a[href] {
text-decoration: underline 1px;
text-underline-offset: 0.25em;
}
/* No underline for navigation */
a.headerlink,
div.genindex-jumpbox a,
div.modindex-jumpbox a,
div#search-results a,
div.sphinxsidebar a,
div.toctree-wrapper a,
div[role=navigation] a,
table.contentstable a,
table.indextable a {
text-decoration: none;
}

/* Except when hovered */
div.genindex-jumpbox a:hover,
div.modindex-jumpbox a:hover,
div#search-results a:hover,
div.sphinxsidebar a:hover,
div.toctree-wrapper a:hover,
div[role=navigation] a:hover,
table.contentstable a:hover,
table.indextable a:hover {
text-decoration: underline;
text-underline-offset: auto;
}

body {
margin-left: 1em;
Expand Down Expand Up @@ -284,6 +309,10 @@ div.footer {
margin-right: 10px;
}

div.footer a {
text-underline-offset: auto;
}

div.footer a:hover {
color: #0095c4;
}
Expand Down

0 comments on commit 8eeda41

Please sign in to comment.