Skip to content

Commit

Permalink
bring headerlink logic back
Browse files Browse the repository at this point in the history
  • Loading branch information
msbt committed Jul 18, 2024
1 parent cdffe7a commit ad3b6a0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/crate/theme/rtd/crate/static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -1821,4 +1821,22 @@ ul.search li {
.contents:not(.this-will-duplicate-information-and-it-is-still-useful-here) {
background: transparent;
color: #000;
}

/* hide/show headerlinks */
a.headerlink {
visibility: hidden;
}

h1:hover > a.headerlink,
h2:hover > a.headerlink,
h3:hover > a.headerlink,
h4:hover > a.headerlink,
h5:hover > a.headerlink,
h6:hover > a.headerlink,
dt:hover > a.headerlink,
caption:hover > a.headerlink,
p.caption:hover > a.headerlink,
div.code-block-caption:hover > a.headerlink {
visibility: visible;
}

0 comments on commit ad3b6a0

Please sign in to comment.