-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
89 lines (75 loc) · 2.23 KB
/
Copy pathstyles.css
File metadata and controls
89 lines (75 loc) · 2.23 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
87
88
/* make room to the left of the message input for the badge;
only when a badge is actually shown (indicator style = badge/both) */
.vimcord-host:has(> .vimcord-badge) {
margin-left: 12px;
}
.vimcord-badge {
position: absolute;
/* anchored to the top so it doesn't move when lines are added;
offset chosen to look vertically centered on a single-line input */
top: 18px;
left: -8px;
transform: translateX(-100%);
z-index: 100;
pointer-events: none;
font-family: var(--font-code, monospace);
font-size: 11px;
font-weight: 700;
line-height: 1;
padding: 3px 5px;
border-radius: 4px;
color: var(--white-500, #fff);
background: var(--brand-500, #5865f2);
opacity: 0.85;
}
.vimcord-badge[data-vimcord-mode="NORMAL"] {
background: var(--brand-500, #5865f2);
}
.vimcord-badge[data-vimcord-mode="INSERT"] {
background: #f6d76b;
color: var(--black-500, #000);
}
.vimcord-badge[data-vimcord-mode="VISUAL"] {
background: #c4a7e7;
color: var(--black-500, #000);
}
.vimcord-badge[data-vimcord-mode="REPLACE"] {
background: #eb6f92;
color: var(--black-500, #000);
}
/* colored border indicator around the whole message box (uses outline so
it doesn't shift Discord's layout) */
.vimcord-border {
outline: 1px solid transparent;
outline-offset: -1px;
border-radius: 8px;
}
.vimcord-border[data-vimcord-mode="NORMAL"] {
outline-color: var(--brand-500, #5865f2);
}
.vimcord-border[data-vimcord-mode="INSERT"] {
outline-color: #f6d76b;
}
.vimcord-border[data-vimcord-mode="VISUAL"] {
outline-color: #c4a7e7;
}
.vimcord-border[data-vimcord-mode="REPLACE"] {
outline-color: #eb6f92;
}
/* hide the native caret in normal/visual/replace mode; the overlay/selection replaces it */
div[role="textbox"][data-slate-editor="true"][data-vimcord-mode="NORMAL"],
div[role="textbox"][data-slate-editor="true"][data-vimcord-mode="VISUAL"],
div[role="textbox"][data-slate-editor="true"][data-vimcord-mode="REPLACE"] {
caret-color: transparent;
}
.vimcord-cursor {
position: fixed;
z-index: 2000;
pointer-events: none;
background: #fff;
mix-blend-mode: difference;
border-radius: 1px;
}
.vimcord-cursor-underline {
border-radius: 0;
}