浏览代码

:lipstick: bq style

Van 5 年之前
父节点
当前提交
c27faa949b
共有 2 个文件被更改,包括 7 次插入3 次删除
  1. 1 1
      package.json
  2. 6 2
      src/assets/scss/_reset.scss

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "vditor",
-  "version": "2.1.6",
+  "version": "2.1.7",
   "description": "♏ 一款浏览器端的 Markdown 编辑器。",
   "author": "Vanessa <[email protected]> (http://vanessa.b3log.org)",
   "homepage": "https://hacpai.com/tag/vditor",

+ 6 - 2
src/assets/scss/_reset.scss

@@ -128,8 +128,12 @@
       border-left: 0.25em solid #ddd;
       margin: 0 0 16px 0;
 
-      p {
-        margin: 0;
+      & > :first-child {
+        margin-top: 0
+      }
+
+      & > :last-child {
+        margin-bottom: 0
       }
     }