浏览代码

:lipstick: https://github.com/siyuan-note/siyuan/issues/13201

Vanessa 8 月之前
父节点
当前提交
2d114d4c3b
共有 1 个文件被更改,包括 20 次插入26 次删除
  1. 20 26
      app/src/assets/scss/protyle/_wysiwyg.scss

+ 20 - 26
app/src/assets/scss/protyle/_wysiwyg.scss

@@ -69,21 +69,20 @@
 
     &.list {
       padding: 0;
+      display: flex;
+      flex-direction: column;
 
-      .dragover {
-        &__top:not(.av__row) {
-          box-shadow: 0 -3px 0 var(--b3-theme-primary-lighter), inset 0 1px 0 var(--b3-theme-primary-lighter) !important;
-        }
+      & > .li:first-child {
+        margin-top: 0;
+      }
 
-        &__bottom:not(.av__row) {
-          box-shadow: 0 3px 0 var(--b3-theme-primary-lighter), inset 0 -1px 0 var(--b3-theme-primary-lighter) !important;
-        }
+      & > div:nth-last-child(2) {
+        margin-bottom: 0;
       }
     }
 
     &.li {
       padding: 0;
-      margin: 0;
       display: flex;
       flex-direction: column;
 
@@ -98,6 +97,19 @@
         border-left-color: var(--b3-scroll-color);
       }
 
+      & > [data-node-id] {
+        margin-left: 34px;
+        padding-right: 0;
+      }
+
+      & > div:nth-child(2) {
+        margin-top: 0;
+      }
+
+      & > div:nth-last-child(2) {
+        margin-bottom: 0;
+      }
+
       &[fold="1"] {
         &:before {
           content: none;
@@ -155,24 +167,6 @@
           border-radius: var(--b3-border-radius);
         }
       }
-
-      & > div:nth-child(2) {
-        margin-top: 0;
-      }
-
-      & > div:nth-last-child(2) {
-        margin-bottom: 0;
-      }
-
-      & > [data-node-id] {
-        margin-left: 34px;
-        padding-right: 0;
-
-        &.code-block {
-          margin-top: 4px;
-          margin-bottom: 4px;
-        }
-      }
     }
 
     &.sb {