forked from imkrishnasarathi/PleasantWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.html
137 lines (127 loc) · 3.44 KB
/
options.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
135
136
137
<!DOCTYPE html>
<html>
<head>
<title>Extension Options</title>
<style>
@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
:root {
--form-control-disabled: #959495;
}
body {
font-family: 'Roboto', sans-serif;
background-color: #f0f0f0;
padding: 20px;
}
h1 {
font-size: 2.5rem;
font-weight: bold;
text-align: center;
color: #0078d4;
text-transform: uppercase;
margin-bottom: 20px;
letter-spacing: 3px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}
.form-control {
font-family: Roboto, sans-serif;
font-size: 1.3rem;
font-weight: bold;
line-height: 1.1;
display: grid;
grid-template-columns: 1em auto;
gap: 0.5em;
margin: 10px 0;
}
input[type="checkbox"] {
appearance: none;
background-color: #fff;
margin: 0;
font: inherit;
color: currentColor;
width: 1.15em;
height: 1.15em;
border: 0.15em solid currentColor;
border-radius: 0.15em;
transform: translateY(-0.075em);
display: grid;
place-content: center;
}
input[type="checkbox"]::before {
content: "";
width: 0.65em;
height: 0.65em;
transform: scale(0);
transition: 120ms transform ease-in-out;
box-shadow: inset 1em 1em var(--form-control-color);
background-color: green;
transform-origin: bottom;
clip-path: polygon(
14% 44%,
0 65%,
50% 100%,
100% 16%,
80% 0%,
43% 62%
);
}
input[type="checkbox"]:checked::before {
transform: scale(1);
}
input[type="checkbox"]:disabled {
--form-control-color: var(--form-control-disabled);
color: var(--form-control-disabled);
cursor: not-allowed;
}
.form-control + .form-control {
margin-top: 1em;
}
</style>
</head>
<body>
<div class="content">
<h1>Extension Options</h1>
<h2>What do you want to be notified of?</h2>
<div id="checkboxes">
<label class="form-control">
<input type="checkbox" id="TOXICITY" />
Toxicity
</label>
<label class="form-control">
<input type="checkbox" id="SEVERE_TOXICITY" />
Severe Toxicity
</label>
<label class="form-control">
<input type="checkbox" id="IDENTITY_ATTACK" />
Identity Attack
</label>
<label class="form-control">
<input type="checkbox" id="SEXUALLY_EXPLICIT" />
Sexually Explicit
</label>
<label class="form-control">
<input type="checkbox" id="THREAT" />
Threat
</label>
<label class="form-control">
<input type="checkbox" id="PROFANITY" />
Profanity
</label>
<label class="form-control">
<input type="checkbox" id="FLIRTATION" />
Flirtation
</label>
</div>
</div>
<script src="options.js"></script>
</body>
</html>