Skip to content

Commit

Permalink
Merge pull request #171 from hugovk/text-underline-offset
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Feb 4, 2024
2 parents 8eeda41 + fbf2bf8 commit 69039fb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python_docs_theme/static/pydoctheme.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,16 @@ pre {
color: inherit;
}

/* Add underlines to links */
a[href] {
text-decoration: underline 1px;
}

/* Increase the underline offset for code to avoid obscuring underscores */
a[href]:has(> code) {
text-underline-offset: 0.25em;
}

/* No underline for navigation */
a.headerlink,
div.genindex-jumpbox a,
Expand Down

0 comments on commit 69039fb

Please sign in to comment.