-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.css
102 lines (89 loc) · 1.84 KB
/
popup.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
body {
width: 300px;
vertical-align: baseline;
}
.text-center {
text-align: center;
}
.w-full {
width: 100%;
}
/* checkbox */
.toggle {
align-items: center;
border-radius: 100px;
display: flex;
font-weight: 700;
margin-bottom: 16px;
}
.label {
margin-left: 12px;
}
.toggle :last-of-type {
margin: 0;
}
.toggle__input {
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width: 1px;
}
.toggle__input :not([disabled]):active + .toggle-track,
.toggle__input :not([disabled]):focus + .toggle-track {
border: 1px solid transparent;
box-shadow: 0px 0px 0px 2px #121943;
}
.toggle__input :disabled + .toggle-track {
cursor: not-allowed;
opacity: 0.7;
}
.toggle-track {
background: #e5efe9;
border: 1px solid #5a72b5;
border-radius: 100px;
cursor: pointer;
display: flex;
height: 30px;
margin-right: 12px;
position: relative;
width: 60px;
transition: background 0.3s ease-in-out;
}
.toggle-indicator {
align-items: center;
background: #121943;
border-radius: 30px;
display: flex;
height: 30px;
justify-content: center;
outline: solid 2px transparent;
position: absolute;
transition: 0.3s;
width: 30px;
}
.checkMark {
fill: #fff;
height: 20px;
width: 20px;
opacity: 0;
transition: opacity 0.3s ease-in-out;
}
.toggle__input:checked + .toggle-track .toggle-indicator {
background: #121943;
transform: translateX(30px);
}
.toggle__input:checked + .toggle-track {
background: #7388ff;
}
.toggle__input:checked + .toggle-track .toggle-indicator .checkMark {
opacity: 1;
transition: opacity 0.3s ease-in-out;
}
@media screen and (-ms-high-contrast: active) {
.toggle-track {
border-radius: 0;
}
}