Skip to content

Commit f7beb81

Browse files
authored
Update popup.html
1 parent 7abdeb5 commit f7beb81

File tree

1 file changed

+92
-3
lines changed

1 file changed

+92
-3
lines changed

Diff for: popup.html

+92-3
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,109 @@
11
<!DOCTYPE html>
22
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
</head>
36
<body>
47

58
<div class="container">
6-
<h3>Statistics</h3>
9+
<div class="tools">
10+
<div style="width:50%;float:left;height:60%">
11+
<label class="cont">Notifications
12+
<input id="notification" type="checkbox">
13+
<span class="checkmark"></span>
14+
</label>
15+
</div>
16+
<div style="width:50%;float:right;height:60%">
17+
<a style="margin-top:20%;font-size: 15px;display: block;cursor: pointer;" id="donate">More...</a>
18+
</div>
19+
<a href="#stats" class="link">Statistics</a>
20+
</div>
721
<table id="stats">
822
<tr>
923
<th>Site</th>
1024
<th>Times blocked</th>
1125
</tr>
1226

1327
</table>
14-
<a id="donate">Donate?</a>
1528
</div>
1629

1730
<style>
31+
.cont {
32+
display: block;
33+
position: relative;
34+
padding-left: 15px;
35+
cursor: pointer;
36+
left:10px;
37+
font-size: 15px;
38+
margin-top:20%;
39+
-webkit-user-select: none;
40+
-moz-user-select: none;
41+
-ms-user-select: none;
42+
user-select: none;
43+
}
44+
45+
/* Hide the browser's default checkbox */
46+
.container input {
47+
position: absolute;
48+
opacity: 0;
49+
cursor: pointer;
50+
}
51+
52+
/* Create a custom checkbox */
53+
.checkmark {
54+
position: absolute;
55+
top: 0;
56+
left: 0;
57+
height: 25px;
58+
width: 25px;
59+
background-color: #eee;
60+
}
61+
62+
/* On mouse-over, add a grey background color */
63+
.container:hover input ~ .checkmark {
64+
background-color: #ccc;
65+
}
66+
67+
/* When the checkbox is checked, add a blue background */
68+
.container input:checked ~ .checkmark {
69+
background-color: #2196F3;
70+
}
71+
72+
/* Create the checkmark/indicator (hidden when not checked) */
73+
.checkmark:after {
74+
content: "";
75+
position: absolute;
76+
display: none;
77+
}
78+
79+
/* Show the checkmark when checked */
80+
.container input:checked ~ .checkmark:after {
81+
display: block;
82+
}
83+
84+
/* Style the checkmark/indicator */
85+
.container .checkmark:after {
86+
left: 9px;
87+
top: 5px;
88+
width: 5px;
89+
height: 10px;
90+
border: solid white;
91+
border-width: 0 3px 3px 0;
92+
-webkit-transform: rotate(45deg);
93+
-ms-transform: rotate(45deg);
94+
transform: rotate(45deg);
95+
}
96+
.link{
97+
bottom:0;
98+
99+
color:black;
100+
font-size: 1.2rem;
101+
102+
}
103+
.tools{
104+
height:40%;
105+
width:100%;
106+
}
18107
a{
19108
text-decoration: none;
20109
}
@@ -68,4 +157,4 @@ <h3>Statistics</h3>
68157
</style>
69158
<script src="popup.js"></script>
70159
</body>
71-
</html>
160+
</html>

0 commit comments

Comments
 (0)