Skip to content

Commit 693c596

Browse files
committed
style: 精简样式
1 parent b4e0183 commit 693c596

File tree

1 file changed

+28
-31
lines changed

1 file changed

+28
-31
lines changed

src/BootstrapBlazor/Components/TreeView/TreeView.razor.scss

Lines changed: 28 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@
182182
background-color: transparent;
183183
display: grid;
184184
grid-template-rows: 1fr 5px;
185+
pointer-events: none;
185186

186187
.tree-drop-child-inside {
187188
grid-row: 1 / 2;
@@ -195,46 +196,42 @@
195196
.tree-drop-child-below {
196197
grid-row: 2 / 3;
197198
z-index: 2;
199+
}
198200

199-
.tree-node-placeholder {
200-
position: absolute;
201-
bottom: 0px;
202-
left: 18px;
203-
right: 0;
204-
display: flex;
205-
flex-direction: row;
206-
align-items: center;
207-
pointer-events: none;
208-
209-
.tree-node-ph-circle {
210-
width: 8px;
211-
height: 8px;
212-
border-radius: 50%;
213-
background-color: var(--bb-tree-drop-preview-color);
214-
}
201+
.tree-node-placeholder {
202+
position: absolute;
203+
bottom: 0px;
204+
left: 18px;
205+
right: 0;
206+
display: flex;
207+
flex-direction: row;
208+
align-items: center;
209+
pointer-events: none;
215210

216-
.tree-node-ph-line {
217-
flex: 1;
218-
min-width: 0px;
219-
width: 1%;
220-
height: 2px;
221-
background-color: var(--bb-tree-drop-preview-color);
222-
}
211+
.tree-node-ph-circle {
212+
width: 8px;
213+
height: 8px;
214+
border-radius: 50%;
215+
background-color: var(--bb-tree-drop-preview-color);
216+
}
217+
218+
.tree-node-ph-line {
219+
flex: 1;
220+
min-width: 0px;
221+
width: 1%;
222+
height: 2px;
223+
background-color: var(--bb-tree-drop-preview-color);
223224
}
224225
}
225226
}
226227

227228
&.dragging {
228-
.tree-node:not(.drag-item) {
229-
pointer-events: none;
229+
.tree-drop-zone {
230+
pointer-events: all;
230231
}
231-
}
232232

233-
.tree-node {
234-
235-
&.drag-item {
236-
opacity: 0.5;
237-
background-color: #d4edff;
233+
.tree-node:not(.drag-item) {
234+
pointer-events: none;
238235
}
239236
}
240237
}

0 commit comments

Comments
 (0)