Skip to content

Commit

Permalink
Display all header anchor link indicators, always (#1429)
Browse files Browse the repository at this point in the history
* display header link in code snippet on hover

* fix tabs -> spaces

* Always show header anchor links

We can’t tell links are there if they are invisible. For documentation, being able to link to a specific section is really useful – let’s just always have those header anchor link indicators visible on the site.

* Update _style.scss

---------

Co-authored-by: Damien <damien@dam.io>
  • Loading branch information
thibaudcolas and mdamien authored Nov 24, 2023
1 parent 6099d8e commit 147bfca
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions djangoproject/scss/_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2243,7 +2243,6 @@ h2+.list-link-soup {

.headerlink {
// Permalink styles for sections in docs
opacity: 0;
margin-left: 10px;
font-size: 0.8em;
position: relative;
Expand All @@ -2258,21 +2257,6 @@ h2+.list-link-soup {
}
}

h1,
h2,
h3,
h4,
h5,
h6,
dl,
dt {
&:hover {
>.headerlink {
opacity: 1;
}
}
}

//Notes, help blocks, and annotation sections
.note,
.admonition,
Expand Down

0 comments on commit 147bfca

Please sign in to comment.