forked from magicoflolis/Userscript-Plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.less
More file actions
85 lines (81 loc) · 1.48 KB
/
Copy pathoptions.less
File metadata and controls
85 lines (81 loc) · 1.48 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
form {
font-size: 1.25em;
}
section {
&:not(:first-child) {
border-top: 1px solid #b6b6b6;
}
&.checkbox>label,
&.checkboxlist>label,
&.select {
display: flex;
justify-content: space-between;
padding: .825em;
}
&.checkbox>label,
&.checkboxlist>label {
cursor: pointer;
}
&.checkboxlist {
padding-left: .825em;
padding-bottom: .5em;
}
&.checkboxlist>label {
padding-top: .5em;
padding-bottom: .5em;
}
&.checkboxlist p {
margin-bottom: .5em;
}
}
.switch {
position: relative;
width: 38px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
&>input {
display: none;
&:checked+label {
background-color: #5A6F93;
margin-left: 0;
&:before {
right: 0px;
background-color: #8AB4F8;
}
}
}
&>label {
display: block;
overflow: hidden;
cursor: pointer;
height: 16px;
padding: 0;
line-height: 16px;
border: 0px solid #FFFFFF;
border-radius: 20px;
background-color: #9AA0A6;
&:before {
content: "";
display: block;
width: 20px;
height: 20px;
margin: -2px;
background: #DADCE0;
position: absolute;
top: 0;
right: 20px;
border-radius: 20px;
}
}
}
@media (prefers-color-scheme: dark) {
:root {
background-color: #202023;
color: #e8eaed;
}
section:not(:first-child) {
border-top: 1px solid #4c4c4e;
}
}