From 7d39c4abf0ea3ef2553b3431664e1342c7ffb20d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20B=C3=BChler?= Date: Tue, 6 Feb 2024 15:14:51 +0000 Subject: [PATCH] chore: enhance margin --- package.json | 6 +++--- styles/layout.css | 9 ++++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 4435b9f..84eea28 100644 --- a/package.json +++ b/package.json @@ -52,15 +52,15 @@ }, "slidev": { "colorSchema": "both", - "highlighter": "all", "defaults": { + "lineNumbers": true, + "highlighter": "prism", "fonts": { "provider": "none", "sans": "PT Sans", "mono": "Fira Code", "local": "PT Sans, 2MASS J1808, Fira Code" - }, - "hightlighter": "prism" + } } } } diff --git a/styles/layout.css b/styles/layout.css index 02145c8..3a45ad3 100644 --- a/styles/layout.css +++ b/styles/layout.css @@ -108,11 +108,14 @@ h6 { } .slidev-layout h1 + h2 { - margin-top: 0 !important; color: var(--slidev-theme-primary-alternative); font-size: 1rem; } +.slidev-layout h1 + * { + margin-top: 0.5rem !important; +} + .slidev-layout ul li::marker { content: '> '; } @@ -139,10 +142,6 @@ h6 { z-index: 1 !important; } -.slidev-layout > div > *:not(:first-child), .slidev-layout > *:not(:first-child) { - margin-top: 1em; -} - .slidev-layout.two-cols { gap: 1rem; }