Skip to content

Commit c50a082

Browse files
StringKeJackLian
authored andcommitted
feat(utils): cursor 不使用 less
1 parent aab8a3a commit c50a082

File tree

3 files changed

+20
-16
lines changed

3 files changed

+20
-16
lines changed

packages/utils/src/cursor.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
html.lc-cursor-dragging,
2+
html.lc-cursor-dragging * {
3+
cursor: move !important;
4+
}
5+
6+
html.lc-cursor-x-resizing,
7+
html.lc-cursor-x-resizing * {
8+
cursor: col-resize;
9+
}
10+
11+
html.lc-cursor-y-resizing,
12+
html.lc-cursor-y-resizing * {
13+
cursor: row-resize;
14+
}
15+
16+
html.lc-cursor-copy,
17+
html.lc-cursor-copy * {
18+
cursor: copy !important;
19+
}

packages/utils/src/cursor.less

Lines changed: 0 additions & 15 deletions
This file was deleted.

packages/utils/src/cursor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import './cursor.less';
1+
import './cursor.css';
22

33
export class Cursor {
44
private states = new Set<string>();

0 commit comments

Comments
 (0)