-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspotlight.css
108 lines (95 loc) · 1.81 KB
/
spotlight.css
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
.spotlight-mask {
background-image:
radial-gradient(
circle at center,
transparent 150px,
rgba(0, 0, 0, 0.4) 0
);
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
cursor: none;
z-index: 1000;
}
.spotlight-popup {
position: fixed;
bottom: 16px;
left: 16px;
display: flex;
flex-direction: column;
align-items: right;
gap: 2px;
}
.spotlight-popup-remove {
display: none;
font-size: 10px;
text-align: center;
cursor: pointer;
font-weight: 700;
transition: all 0.4s ease-in-out;
}
.spotlight-popup-remove:hover .spotlight-popup-remove-text {
background-color: lightpink;
border-radius: 5px;
padding: 2px 3px;
}
.spotlight-popup:hover .spotlight-popup-remove {
display: block;
}
.spotlight-popup-message {
display: flex;
justify-content: center;
}
.spotlight-popup-message-text {
font-size: 10px;
text-align: center;
padding: 1px 4px;
}
.spotlight-popup-message-text.guide {
font-size: 10px;
text-align: center;
padding: 1px 4px;
word-break: keep-all;
white-space: nowrap;
border-radius: 4px;
border: 1px solid;
}
.spotlight-popup:hover .spotlight-popup-message {
display: none;
}
.toggle-container {
display: inline-block;
cursor: pointer;
user-select: none;
}
.toggle-input {
display: none;
}
.toggle-input:checked + .toggle-switch {
background-color: lightgreen;
}
.toggle-input:checked + .toggle-switch:after {
left: calc(100% - 26px);
}
.toggle-switch {
width: 64px;
height: 30px;
padding: 2px;
border-radius: 15px;
background-color: #ccc;
box-sizing: border-box;
}
.toggle-switch::after {
content: '';
position: relative;
left: 0;
display: block;
width: 26px;
height: 26px;
box-sizing: border-box;
border-radius: 50%;
background-color: white;
transition: left 0.2s ease-out;
}