Summary Files Commits Branches @commit @diff @stats
path: root / src / styles.css
diff options
context:
space:
mode:
Commit283c31ebf3956eefa23825f72a0a0db1fac64f92 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-11-17 15:18:32 +0200
Committer
 Syndamia <kamen@syndamia.com>
2023-11-17 15:18:32 +0200
Files5338f5d8b34ee3222513b5a9ee692fbef078aa6d /src/styles.css
syndamia.com-283c31ebf3956eefa23825f72a0a0db1fac64f92.tar
syndamia.com-283c31ebf3956eefa23825f72a0a0db1fac64f92.tar.gz
syndamia.com-283c31ebf3956eefa23825f72a0a0db1fac64f92.zip
Parent0f4d19d3cfa721b16a74bfc4ed04b457ebe4b10e (diff)
[styles.css,Heading-anchors] Added a small and big gap before headings in articles
This separated headings with the contents that follow into different "card" or sections
1 files changed, 9 insertions, 3 deletions
-rw-r--r--src/styles.css12
diff --git a/src/styles.css b/src/styles.css
index 9dc726b..747ff8f 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -217,8 +217,6 @@ h1, h2, h3, h4, h5, h6 {
border-bottom: 2px solid var(--border-color);
}
h1 { display: block; font-size: 1.7em; margin-block-end: 0.5em; }
- h2 { margin-top: 2.5em; }
- h3 { margin-top: 2em; }
h1 + *, h1 ~ h1, h2 + a + *, h3 + a + *, h4 + a + *, h5 + a + *, h6 + a + * {
margin-top: 0;
}
@@ -265,7 +263,7 @@ code, pre {
table {
border-spacing: 0;
border-collapse: collapse;
- margin: 0.6em 0;
+ margin: 1em 0;
overflow: auto;
}
table td, table th { word-break: normal !important; }
@@ -412,6 +410,14 @@ dt, dd {
}
#pagenav > * { white-space: nowrap; }
#pagenav + h2, #pagenav + h3, #pagenav + h4 { margin-top: 0; }
+
+ .gap, .gap-small {
+ background-color: var(--body-bg);
+ margin: 0 -1em;
+ }
+ .gap { height: 1.5em; }
+ .gap-small { height: 0.5em; }
+
/* back-to-top.js */
#scrollBtn {
background-color: var(--bg-color);