fix header applying anchor css only on anchor
All checks were successful
ci/woodpecker/push/publish Pipeline was successful

This commit is contained in:
Mylloon 2023-05-03 02:32:37 +02:00
parent 03602b660f
commit 8b0c37ffc8
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -104,33 +104,23 @@ p {
} }
/* Anchors */ /* Anchors */
h1:hover > a::before, h1:hover > a.anchor::before,
h2:hover > a::before, h2:hover > a.anchor::before,
h3:hover > a::before, h3:hover > a.anchor::before,
h4:hover > a::before, h4:hover > a.anchor::before,
h5:hover > a::before, h5:hover > a.anchor::before,
h6:hover > a::before { h6:hover > a.anchor::before {
visibility: visible; visibility: visible;
color: var(--font-color); color: var(--font-color);
} }
h1 > a::before, a.anchor::before {
h2 > a::before,
h3 > a::before,
h4 > a::before,
h5 > a::before,
h6 > a::before {
content: "#"; content: "#";
visibility: hidden; visibility: hidden;
padding-right: 0.1em; padding-right: 0.1em;
} }
h1 > a, a.anchor {
h2 > a,
h3 > a,
h4 > a,
h5 > a,
h6 > a {
text-decoration: none; text-decoration: none;
} }