-
Notifications
You must be signed in to change notification settings - Fork 1
/
popup.html
134 lines (117 loc) · 3.34 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
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bump Off! Settings</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
padding: 20px;
text-align: center;
background-color: #f4f7f6;
width: 300px;
box-sizing: border-box;
}
h1 {
font-size: 24px;
color: #333;
margin-bottom: 20px;
font-weight: bold;
}
.switch {
position: relative;
display: inline-block;
width: 50px;
height: 28px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .4s;
border-radius: 28px;
}
.slider:before {
position: absolute;
content: "";
height: 20px;
width: 20px;
left: 4px;
bottom: 4px;
background-color: white;
transition: .4s;
border-radius: 50%;
}
input:checked + .slider {
background-color: #D71212;
}
input:checked + .slider:before {
transform: translateX(22px);
}
.checkbox-label {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 14px;
background-color: white;
padding: 10px 15px;
margin: 8px 0;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.checkbox-label span {
width: 200px;
}
.checkbox-label input {
margin-left: 10px;
width: 20px;
height: 20px;
}
input[type="checkbox"] {
accent-color: #D71212;
}
.container {
max-width: 280px;
margin: 0 auto;
padding: 0;
}
#toggleContainer {
display: flex;
justify-content: center;
margin-bottom: 20px;
}
</style>
</head>
<body>
<div class="container">
<h1>Bump Off!</h1>
<div id="toggleContainer">
<label class="label" for="toggleExtension">
<label class="switch">
<input type="checkbox" id="toggleExtension" checked>
<span class="slider"></span>
</label>
</label>
</div>
<div class="checkbox-label">
<span>Show bump comments with replies</span>
<input type="checkbox" id="toggleReplies" checked>
</div>
<div class="checkbox-label">
<span>Remove replies when bump comment is removed</span>
<input type="checkbox" id="toggleRemoveReplies" disabled>
</div>
</div>
<script src="popup.js"></script>
</body>
</html>