forked from MohammedMMC/HighSeas-Doubloons-Extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
58 lines (58 loc) · 1.53 KB
/
popup.html
File metadata and controls
58 lines (58 loc) · 1.53 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
<html>
<style>
body {
height: 24px;
width: 55px;
background-color: #000000;
}
/* Container for the toggle */
.toggle-switch {
position: relative;
display: inline-block;
width: 50px;
height: 24px;
}
/* Hide default checkbox */
.toggle-switch input {
opacity: 0;
width: 0;
height: 0;
}
/* The track */
.slider {
position: absolute;
cursor: pointer;
background-color: #5bc0de;
border-radius: 24px;
width: 100%;
height: 100%;
transition: background-color 0.3s;
}
/* The circular slider */
.slider::before {
content: "";
position: absolute;
height: 20px;
width: 20px;
left: 4px;
bottom: 2px;
background-color: #ffffff;
border-radius: 50%;
transition: transform 0.3s;
}
/* Toggled state */
.toggle-switch input:checked+.slider {
background-color: #a633d6;
}
.toggle-switch input:checked+.slider::before {
transform: translateX(26px);
}
</style>
<body>
<label class="toggle-switch">
<input type="checkbox" id="onOff" name="onOff">
<span class="slider"></span>
</label>
<script async src="stor.js"></script>
</body>
</html>