-
Notifications
You must be signed in to change notification settings - Fork 202
/
popup.css
87 lines (77 loc) · 1.51 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
html, body {
margin: 0;
padding: 0;
}
.container {
width: 200px;
padding: 0 10px;
font-size: 12px;
line-height: 1.5;
font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", "Hiragino Sans GB W3", "Microsoft YaHei UI", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
}
.info {
margin-right: 10px;
}
.active-switch {
display: flex;
align-items: center;
position: relative;
height: 56px;
margin: 20px -10px 0 -10px;
padding: 0 20px;
background: #f9f9f9;
box-shadow: inset 0 10px 6px -6px rgba(0,0,0,.13);
}
.switch-title {
flex: 1;
font-size: 1.2em;
font-weight: bold;
text-align: left;
color: #333;
}
.btn-switch {
position: absolute;
z-index: -200000;
opacity: 0;
}
.btn-switch + label {
display: inline-block;
width: 63px;
height: 37px;
position: relative;
margin: auto;
background-color: #ddd;
border-radius: 37px;
cursor: pointer;
outline: 0;
user-select: none;
}
.btn-switch + label:before {
content: '';
display: block;
position: absolute;
top: 1px;
left: 1px;
bottom: 1px;
right: 1px;
background-color: #f1f1f1;
border-radius: 37px;
transition: background 0.4s;
}
.btn-switch + label:after {
content: '';
display: block;
position: absolute;
height: 35px;
width: 35px;
background-color: #fff;
border-radius: 100%;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
transition: margin 0.4s;
}
.btn-switch:checked + label:before {
background-color: #8ce196;
}
.btn-switch:checked + label:after {
margin-left: 28px;
}