Summary Files Commits Branches @commit @diff @stats
path: root / src / styles.css
diff options
context:
space:
mode:
Commit265bf88855da15e43a87380a7433f5f575bd230b (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-07-10 22:28:19 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-07-10 22:28:27 +0300
Filesd2125f92cb42a498857f73791257919823c1a73c /src/styles.css
syndamia.com-265bf88855da15e43a87380a7433f5f575bd230b.tar
syndamia.com-265bf88855da15e43a87380a7433f5f575bd230b.tar.gz
syndamia.com-265bf88855da15e43a87380a7433f5f575bd230b.zip
Parente64767eb771daee6b930d0b7f151f0bc7d3b6e4e (diff)
(styles) Reduced margins for header that are directly after pagenav and made h-anchor resizing simpler
1 files changed, 4 insertions, 5 deletions
-rw-r--r--src/styles.css9
diff --git a/src/styles.css b/src/styles.css
index 94c6f8b..79b0b83 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -198,8 +198,8 @@ h1, h2, h3, h4, h5, h6 {
h1 + *, h1 ~ h1 { margin-top: 0; }
.h-anchor { color: var(--fg-color); border: none; }
/* Slightly smaller than browser defaults https://stackoverflow.com/a/70720104/12036073 */
- h2 ~ .h-anchor { font-size: 1.4em; }
- h3 ~ .h-anchor { font-size: 1.1em; }
+ h2 + .h-anchor { font-size: 1.4em; }
+ h3 + .h-anchor { font-size: 1.1em; }
/* The following CSS is a modified version of sindresorhus's github-markdown-css repo: https://github.com/sindresorhus/github-markdown-css */
code, pre {
@@ -374,9 +374,8 @@ dt, dd {
font-size: 0.8em;
margin: 0 0 3rem 2rem;
}
- #pagenav > * {
- white-space: nowrap;
- }
+ #pagenav > * { white-space: nowrap; }
+ #pagenav + h2, #pagenav + h3, #pagenav + h4 { margin-top: 0; }
/* back-to-top.js */
#scrollBtn {
background-color: var(--bg-color);