Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork66
Do not underline navigation links#169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more.
Yes, it's overridden by this: a[href] {text-decoration: underline1px;text-underline-offset:0.25em;} So "normal" body text links have underlines with extra offset; but navigational links only have underlines for hover, and they're the default offset. | ||
} | ||
body { | ||
margin-left: 1em; | ||
@@ -284,6 +309,10 @@ div.footer { | ||
margin-right: 10px; | ||
} | ||
div.footer a { | ||
text-underline-offset: auto; | ||
} | ||
div.footer a:hover { | ||
color: #0095c4; | ||
} | ||