-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
86 lines (69 loc) · 1.37 KB
/
styles.css
File metadata and controls
86 lines (69 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/*
custom styles for smooth-cursor
*/
.smooth-cursor-busyo {
position: absolute;
/* width: 30px; */
width: auto;
min-width: 3px;
background-color: var(--cursor-color);
pointer-events: none;
left: calc(var(--cursor-x) * 1px);
top: calc(var(--cursor-y) * 1px);
height: calc(var(--cursor-height) * 1px);
transition: all 0.08s ease-out;
display: none;
animation: blink calc(var(--cursor-blink-speed) * 1s) infinite;
--cursor-blink-speed: 1;
--cursor-x: 0;
--cursor-y: 0;
--cursor-height: 0;
}
.theme-dark {
--cursor-color: #75a8c7;
}
.theme-light {
--cursor-color: #75a8c7;
}
.vim-text {
position: relative;
left: 0;
top: 0;
pointer-events: none;
z-index: 999;
line-height: calc(var(--cursor-height) * 1px);
font-size: var(--vim-font-size);
--vim-font-size: 16px;
}
.smooth-cursor-busyo.noTrans {
transition: none;
}
.smooth-cursor-busyo.show {
display: block;
}
.smooth-cursor-busyo.noAni {
animation: none;
}
.smooth-cursor-busyo-canvas {
position: absolute;
top: 0;
left: 0;
pointer-events: none;
z-index: 0;
}
body.caret-hide {
--caret-color: transparent !important;
}
.cm-vimCursorLayer {
display: none;
}
/* 定义 @keyframes 动画 */
@keyframes blink {
0%,
100% {
opacity: 0.05;
}
50% {
opacity: 1;
}
}