diff options
| Commit | b28b50b2bc9166fe06d9ee7352af9263e2ceb21e (patch) | |
|---|---|---|
| Author | 2022-09-30 10:46:40 +0300 | |
| Committer | 2022-09-30 10:46:40 +0300 | |
| Files | 1186a3faa0004554a1f032fe081eb58b822fd257 /src/styles.css | |
| syndamia.com-b28b50b2bc9166fe06d9ee7352af9263e2ceb21e.tar syndamia.com-b28b50b2bc9166fe06d9ee7352af9263e2ceb21e.tar.gz syndamia.com-b28b50b2bc9166fe06d9ee7352af9263e2ceb21e.zip | ||
| Parent | f6f4e5cd8698bb0c48dfddf976d4b8d7c0d6efa6 (diff) | |
[hooks/headeranchors] Added an awk script for generating the anchors for all headers
1 files changed, 3 insertions, 7 deletions
| -rw-r--r-- | src/styles.css | 10 |
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) */ |