Remove top margin from first-of-type headers
authorAdam Dullage <redacted>
Sun, 3 Dec 2023 22:07:09 +0000 (22:07 +0000)
committerAdam Dullage <redacted>
Sun, 3 Dec 2023 22:07:09 +0000 (22:07 +0000)
flatnotes/src/toastui-editor-overrides.scss

index 71a839d13b29619a3f5e0c7ebfa40938c814308e..8b57fb1c5c8122aef72f16dc31b1b3700c3c2bc9 100644 (file)
@@ -28,7 +28,6 @@
 .toastui-editor-contents,
 .ProseMirror {
   h1,
-  h1:first-of-type,
   .toastui-editor-md-heading1,
   h2,
   .toastui-editor-md-heading2,
     margin: 1em 0 0.5em 0;
     padding: 0;
     border-bottom: none;
+
+    &:first-of-type {
+      margin-top: 0;
+    }
   }
 
   h1,
git clone https://git.99rst.org/PROJECT