Yuki Takei 1 год назад
Родитель
Сommit
0f139b5e78
1 измененных файлов с 28 добавлено и 15 удалено
  1. 28 15
      apps/app/src/styles/organisms/_wiki.scss

+ 28 - 15
apps/app/src/styles/organisms/_wiki.scss

@@ -39,20 +39,9 @@
     margin-top: 1.6em;
     margin-bottom: 0.8em;
 
-    &:first-child {
-      margin-top: 0;
-    }
-
     scroll-margin-top: var.$grw-scroll-margin-top-in-view;
   }
 
-  /* stylelint-disable no-descending-specificity */
-  .h1, .h2, .h3, .h4, .h5, .h6 {
-    @include bs.media-breakpoint-up(md) {
-      margin-left: -1em;
-    }
-  }
-
   h1, .h1 {
     padding: 0.3em 0;
     margin-top: 2em;
@@ -105,7 +94,23 @@
     // style
     @include add-left-border(2px);
   }
-  /* stylelint-enable no-descending-specificity */
+
+  h1,
+  h2,
+  h3,
+  h4,
+  h5,
+  h6,
+  .h1,
+  .h2,
+  .h3,
+  .h4,
+  .h5,
+  .h6 {
+    &:first-child {
+      margin-top: 0;
+    }
+  }
 
   p {
     margin: 15px 0;
@@ -227,9 +232,6 @@
     h6 {
       margin-top: 1.6em * $ratio;
       margin-bottom: 0.8em * $ratio;
-      &:first-child {
-        margin-top: 15px;
-      }
     }
 
     /* stylelint-disable no-descending-specificity */
@@ -251,6 +253,17 @@
     }
     /* stylelint-enable no-descending-specificity */
 
+    h1,
+    h2,
+    h3,
+    h4,
+    h5,
+    h6 {
+      &:first-child {
+        margin-top: 15px;
+      }
+    }
+
     blockquote {
       font-size: 0.9em * $ratio;
     }