Liyuan Li 5 years ago
parent
commit
30462ab7c9
1 changed files with 10 additions and 4 deletions
  1. 10 4
      src/assets/scss/_wysiwyg.scss

+ 10 - 4
src/assets/scss/_wysiwyg.scss

@@ -50,11 +50,17 @@
     padding-right: 0 !important;
   }
 
-  &__block pre:first-child {
-    margin-bottom: -1em;
+  &__block {
+    pre:first-child {
+      margin-bottom: -1em;
 
-    code {
-      background-color: var(--code-background-color) !important;
+      code {
+        background-color: var(--code-background-color) !important;
+      }
+    }
+
+    pre:last-child {
+      margin-bottom: 1em;
     }
   }