This commit is contained in:
lchen committed 2026-11-23 17:22:07 +08:00
1 parent 5cb14ffd44
commit 05ce7035dd
15 files changed
+946 -460

No files matched your search

+100
View File
@@ -124,4 +124,104 @@
.ui-notify-message {
flex: 1 1 auto;
}
}
.drag-box {
position: relative;
.drag-hover {
cursor: move;
touch-action: none;
}
.resizer {
position: absolute;
touch-action: none;
&[data-dir="n"],
&[data-dir="s"] {
width: 100%;
height: 7px;
left: 0;
cursor: ns-resize;
}
&[data-dir="w"],
&[data-dir="e"] {
width: 7px;
height: 100%;
top: 0;
cursor: ew-resize;
}
&[data-dir="nw"],
&[data-dir="se"],
&[data-dir="ne"],
&[data-dir="sw"] {
width: 8px;
height: 8px;
}
&[data-dir="nw"],
&[data-dir="se"] {
cursor: nwse-resize;
}
&[data-dir="ne"],
&[data-dir="sw"] {
cursor: nesw-resize;
}
&[data-dir="w"],
&[data-dir="nw"],
&[data-dir="sw"] {
left: -4px;
}
&[data-dir="e"],
&[data-dir="ne"],
&[data-dir="se"] {
right: -4px;
}
&[data-dir="n"],
&[data-dir="nw"],
&[data-dir="ne"] {
top: -4px;
}
&[data-dir="s"],
&[data-dir="sw"],
&[data-dir="se"] {
bottom: -4px;
}
}
}
.snap-line {
position: absolute;
pointer-events: none;
z-index: 9999;
display: none;
&.line-x {
top: 0;
bottom: 0;
left: 0;
width: 1px;
border-left: 1px dashed var(--red-color);
}
&.line-y {
left: 0;
right: 0;
top: 0;
height: 1px;
border-top: 1px dashed var(--red-color);
}
}
html.is-interacting,
html.is-interacting * {
user-select: none !important;
}