From 6f85fa3f59849b79ab8f3e1cecd9b59e8351bdbc Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 15 Oct 2023 19:32:20 +0200 Subject: [PATCH] target all headings using :is() --- static/css/blog/post.css | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/static/css/blog/post.css b/static/css/blog/post.css index 57bbb46..a1e3723 100644 --- a/static/css/blog/post.css +++ b/static/css/blog/post.css @@ -71,12 +71,7 @@ main { } /* Anchors */ -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 { +:is(h1, h2, h3, h4, h5, h6):hover a.anchor::before { visibility: visible; } @@ -92,12 +87,7 @@ a.anchor { } /* Links in headers */ -h1 a, -h2 a, -h3 a, -h4 a, -h5 a, -h6 a { +:is(h1, h2, h3, h4, h5, h6) a { font-size: inherit; }