Summary Files Commits Branches @commit @diff @stats
path: root / src / styles.css
diff options
context:
space:
mode:
Commit01ca5176ebbb2c557e23fcb0320b8e88cb0c1b29 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-07-11 13:04:24 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-07-11 13:04:24 +0300
Filesbec3abc9fb2d874f6a2bfd6fc3c1df0e60b2354c /src/styles.css
syndamia.com-01ca5176ebbb2c557e23fcb0320b8e88cb0c1b29.tar
syndamia.com-01ca5176ebbb2c557e23fcb0320b8e88cb0c1b29.tar.gz
syndamia.com-01ca5176ebbb2c557e23fcb0320b8e88cb0c1b29.zip
Parenta3827aca5f9d0e021bc94a00e4f022982e4a3db6 (diff)
(presentation) Brought back removal of top margin of direct children to header
1 files changed, 3 insertions, 1 deletions
-rw-r--r--src/styles.css4
diff --git a/src/styles.css b/src/styles.css
index a8fd245..498af65 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -195,7 +195,9 @@ h1, h2, h3, h4, h5, h6 {
h1 { display: block; font-size: 1.7em; margin-block-end: 0.5em; }
h2 { margin-top: 2.5em; }
h3 { margin-top: 2em; }
- h1 + *, h1 ~ h1 { margin-top: 0; }
+ h1 + *, h1 ~ h1, h2 + a + *, h3 + a + *, h4 + a + *, h5 + a + *, h6 + a + * {
+ 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; }