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/darkmode.css | 2 +- src/styles.css | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/darkmode.css b/src/darkmode.css index ce57502..34de71c 100644 --- a/src/darkmode.css +++ b/src/darkmode.css @@ -20,7 +20,7 @@ } /* This selects the link images, next to headings */ -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 { /* Refer to styles.css on why this is necessary */ filter: none; } 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