diff options
| Commit | 01ca5176ebbb2c557e23fcb0320b8e88cb0c1b29 (patch) | |
|---|---|---|
| Author | 2023-07-11 13:04:24 +0300 | |
| Committer | 2023-07-11 13:04:24 +0300 | |
| Files | bec3abc9fb2d874f6a2bfd6fc3c1df0e60b2354c /src/styles.css | |
| syndamia.com-01ca5176ebbb2c557e23fcb0320b8e88cb0c1b29.tar syndamia.com-01ca5176ebbb2c557e23fcb0320b8e88cb0c1b29.tar.gz syndamia.com-01ca5176ebbb2c557e23fcb0320b8e88cb0c1b29.zip | ||
| Parent | a3827aca5f9d0e021bc94a00e4f022982e4a3db6 (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.css | 4 |
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; } |