diff --git a/static/css/blog/post.css b/static/css/blog/post.css index 76eada7..0777a97 100644 --- a/static/css/blog/post.css +++ b/static/css/blog/post.css @@ -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; }