-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
77 lines (77 loc) · 2.48 KB
/
popup.html
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
<!DOCTYPE html>
<html>
<head>
<style>
body {
width: 210px;
}
.toggle-input {
display: none;
}
.toggle-label {
position: relative;
display: inline-block;
min-width: 112px;
cursor: pointer;
font-weight: 500;
text-align: left;
margin: 16px;
padding: 16px 0 16px 5px;
}
.toggle-label:before, .toggle-label:after {
content: "";
position: absolute;
margin: 0;
outline: 0;
top: 50%;
transform: translate(0, -50%);
/*transition: all 0.3s ease;*/
}
.toggle-label:before {
right: -45px;
width: 34px;
height: 14px;
background-color: #9E9E9E;
border-radius: 8px;
}
.toggle-label:after {
right: -30px;
width: 20px;
height: 20px;
background-color: #FAFAFA;
border-radius: 50%;
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.14), 0 2px 2px 0 rgba(0, 0, 0, 0.098), 0 1px 5px 0 rgba(0, 0, 0, 0.084);
}
.toggle-label .toggle--on {
display: none;
}
.toggle-label .toggle--off {
display: inline-block;
}
.toggle-input:checked + .toggle-label:before {
background-color: #A5D6A7;
}
.toggle-input:checked + .toggle-label:after {
background-color: #4CAF50;
transform: translate(80%, -50%);
}
.toggle-input:checked + .toggle-label .toggle--on {
display: inline-block;
}
.toggle-input:checked + .toggle-label .toggle--off {
display: none;
}
.toggle-label {
transition: color 300ms;
}
.disabled {
color: grey;
}
</style>
</head>
<body>
<input type="checkbox" name="toggle-input" id="toggle-input" class="toggle-input">
<label for="toggle-input" id="toggle-label" class="toggle-label">Watch delivery times</label>
</body>
<script src="scripts/popup.js"></script>
</html>