fix header applying anchor css only on anchor
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
This commit is contained in:
parent
03602b660f
commit
8b0c37ffc8
1 changed files with 8 additions and 18 deletions
|
@ -104,33 +104,23 @@ p {
|
|||
}
|
||||
|
||||
/* Anchors */
|
||||
h1:hover > a::before,
|
||||
h2:hover > a::before,
|
||||
h3:hover > a::before,
|
||||
h4:hover > a::before,
|
||||
h5:hover > a::before,
|
||||
h6:hover > a::before {
|
||||
h1:hover > a.anchor::before,
|
||||
h2:hover > a.anchor::before,
|
||||
h3:hover > a.anchor::before,
|
||||
h4:hover > a.anchor::before,
|
||||
h5:hover > a.anchor::before,
|
||||
h6:hover > a.anchor::before {
|
||||
visibility: visible;
|
||||
color: var(--font-color);
|
||||
}
|
||||
|
||||
h1 > a::before,
|
||||
h2 > a::before,
|
||||
h3 > a::before,
|
||||
h4 > a::before,
|
||||
h5 > a::before,
|
||||
h6 > a::before {
|
||||
a.anchor::before {
|
||||
content: "#";
|
||||
visibility: hidden;
|
||||
padding-right: 0.1em;
|
||||
}
|
||||
|
||||
h1 > a,
|
||||
h2 > a,
|
||||
h3 > a,
|
||||
h4 > a,
|
||||
h5 > a,
|
||||
h6 > a {
|
||||
a.anchor {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue