From: Adam Dullage Date: Sun, 3 Dec 2023 22:07:09 +0000 (+0000) Subject: Remove top margin from first-of-type headers X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=f1fb6db30fb306db05ea48307336902cc6f2aee2;p=flatnotes.git Remove top margin from first-of-type headers --- diff --git a/flatnotes/src/toastui-editor-overrides.scss b/flatnotes/src/toastui-editor-overrides.scss index 71a839d..8b57fb1 100644 --- a/flatnotes/src/toastui-editor-overrides.scss +++ b/flatnotes/src/toastui-editor-overrides.scss @@ -28,7 +28,6 @@ .toastui-editor-contents, .ProseMirror { h1, - h1:first-of-type, .toastui-editor-md-heading1, h2, .toastui-editor-md-heading2, @@ -45,6 +44,10 @@ margin: 1em 0 0.5em 0; padding: 0; border-bottom: none; + + &:first-of-type { + margin-top: 0; + } } h1,