- commit
- aa5149a4c0cac6ce9a10ccc1db15a93889a9a581
- parent
- bf15cf5aae4b31513923c08fe5410a5e1d51f3e8
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2024-04-04 21:25
avoid break after heading not only in print
Diffstat
| M | css/base.css | 5 | +---- |
1 files changed, 1 insertions, 4 deletions
diff --git a/css/base.css b/css/base.css
@@ -44,6 +44,7 @@ html {
44 44 h1, h2, h3, h4, h5, h6 {
45 45 line-height: 1.2;
46 46 margin-block: 0 0.8rem;
-1 47 break-after: avoid;
47 48
48 49 * + & {
49 50 margin-block-start: calc(1.5 * var(--spacer));
@@ -127,8 +128,4 @@ sub, sup {
127 128 background: transparent;
128 129 color: #000; /* Black prints faster */
129 130 }
130 -1
131 -1 h1, h2, h3, h4, h5, h6 {
132 -1 break-after: avoid;
133 -1 }
134 131 }