ソースを参照

: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 {
     &.list {
       padding: 0;
       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 {
     &.li {
       padding: 0;
       padding: 0;
-      margin: 0;
       display: flex;
       display: flex;
       flex-direction: column;
       flex-direction: column;
 
 
@@ -98,6 +97,19 @@
         border-left-color: var(--b3-scroll-color);
         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"] {
       &[fold="1"] {
         &:before {
         &:before {
           content: none;
           content: none;
@@ -155,24 +167,6 @@
           border-radius: var(--b3-border-radius);
           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 {
     &.sb {