-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Expand file tree
/
Copy pathcaret.scss
More file actions
86 lines (76 loc) · 1.67 KB
/
caret.scss
File metadata and controls
86 lines (76 loc) · 1.67 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
#caret {
height: 1.2em;
background: var(--caret-color);
animation: caretFlashSmooth 1s infinite;
position: absolute;
border-radius: var(--roundness);
// transition: 0.05s;
transform-origin: top left;
}
#paceCaret {
height: 1.2em;
background: var(--sub-color);
opacity: 0.5;
position: absolute;
border-radius: var(--roundness);
// transition: 0.25s;
transform-origin: top left;
}
#caret,
#paceCaret {
&.debug {
outline: 1px solid white;
&.hidden {
opacity: 0.5 !important;
display: block !important;
}
}
&.off {
width: 0;
}
&.default {
width: 0.1em;
}
&.carrot {
background-color: transparent;
background-image: url("/images/caret/carrot.png");
background-size: contain;
background-position: center;
background-repeat: no-repeat;
width: 0.25em;
}
&.banana {
background-color: transparent;
background-image: url("/images/caret/banana.png");
background-size: contain;
background-position: center;
background-repeat: no-repeat;
width: 1em;
}
&.monkey {
background-color: transparent;
background-image: url("/images/caret/monkey.png");
background-size: contain;
background-position: center;
background-repeat: no-repeat;
width: 1em;
}
&.block {
width: 0.5em;
border-radius: 0;
z-index: -1;
border-radius: 0.05em;
}
&.outline {
@extend #caret, .block;
animation-name: none;
background: transparent;
border: 0.05em solid var(--caret-color);
border-radius: 0.05em;
outline-style: none !important; // override tailwind class of the same name
}
&.underline {
height: 0.1em;
width: 0.5em;
}
}