forked from darkreader/darkreader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.less
More file actions
48 lines (43 loc) · 1.04 KB
/
Copy pathstyle.less
File metadata and controls
48 lines (43 loc) · 1.04 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
@import "../../theme";
.toggle {
background-color: @color-control-back;
border: @size-border solid @color-border;
box-sizing: content-box;
color: @color-control-fore;
display: inline-flex;
height: @size-control-inner;
position: relative;
-moz-user-select: none;
user-select: none;
&__btn {
align-items: center;
cursor: pointer;
display: inline-flex;
justify-content: center;
height: 100%;
overflow: hidden;
position: relative;
transition: background-color @time-slow;
white-space: nowrap;
width: 50%;
&:hover:not(&--active) {
background-color: @color-control-hover;
}
}
&::before {
background-color: @color-control-active;
content: "";
display: inline-block;
height: 100%;
left: 50%;
position: absolute;
top: 0;
transition: left @time-fast;
width: 50%;
}
&--checked {
&::before {
left: 0;
}
}
}