From b28b50b2bc9166fe06d9ee7352af9263e2ceb21e Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 30 Sep 2022 10:46:40 +0300 Subject: [hooks/headeranchors] Added an awk script for generating the anchors for all headers --- src/styles.css | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/styles.css') diff --git a/src/styles.css b/src/styles.css index 7a1c084..f712377 100644 --- a/src/styles.css +++ b/src/styles.css @@ -168,22 +168,18 @@ h2, h3, h4, h5, h6 { line-height: 1.25em; } -h2 + p, h3 + p, h4 + p, h5 + p, h6 + p { +h2 + a, h3 + a, h4 + a, h5 + a, h6 + a { display: inline; -} - -h1 + p a, h2 + p a, h3 + p a, h4 + p a, h5 + p a, h6 + p a { border: none !important; } - /* This selects the link images, next to headings */ -h2 + p img, h3 + p img, h4 + p img, h5 + p img, h6 + p img { +h2 + a img, h3 + a img, h4 + a img, h5 + a img, h6 + a img { height: 1.3em; border: none; vertical-align: text-top; } -h2 + p img, h3 + p img, h4 + p img, h5 + p img, h6 + p img, .icon, .file-icon, .file-wrapper > summary { +h2 + a img, h3 + a img, h4 + a img, h5 + a img, h6 + a img, .icon, .file-icon, .file-wrapper > summary { /* Since link images are made for dark mode, and have white-ish foreground, * this filter makes them black (when in light mode) */ -- cgit v1.3.1-23-gd82d