-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
226 lines (202 loc) · 4.86 KB
/
popup.html
File metadata and controls
226 lines (202 loc) · 4.86 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
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
width: 240px;
padding: 18px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
font-size: 13px;
color: #1a1a1a;
background: #fafafa;
}
/* Header */
.header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 18px;
}
.logo {
display: flex;
align-items: center;
gap: 7px;
}
.logo-icon {
width: 22px;
height: 22px;
background: #1a1a1a;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: 900;
color: #fff;
letter-spacing: -1px;
flex-shrink: 0;
}
h2 {
font-size: 14px;
font-weight: 700;
letter-spacing: 0.2px;
color: #1a1a1a;
}
/* Power button */
.power-btn {
display: flex;
align-items: center;
gap: 5px;
padding: 5px 11px 5px 8px;
border: 1.5px solid #ddd;
border-radius: 20px;
background: #fff;
color: #999;
font-size: 11px;
font-weight: 700;
cursor: pointer;
transition: all 0.2s;
letter-spacing: 0.3px;
}
.power-btn .dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: #ccc;
transition: background 0.2s;
flex-shrink: 0;
}
.power-btn.active {
background: #1a1a1a;
border-color: #1a1a1a;
color: #fff;
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.power-btn.active .dot { background: #69f0ae; }
/* Card */
.card {
background: #fff;
border: 1px solid #ebebeb;
border-radius: 10px;
overflow: hidden;
}
.row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 11px 14px;
}
.row + .row {
border-top: 1px solid #f0f0f0;
}
.row-label {
font-size: 12px;
font-weight: 500;
color: #444;
}
.row-right {
display: flex;
align-items: center;
gap: 5px;
}
/* Number input */
.num-input {
width: 58px;
padding: 4px 7px;
border: 1.5px solid #e8e8e8;
border-radius: 6px;
font-size: 12px;
font-weight: 500;
color: #1a1a1a;
text-align: right;
outline: none;
background: #fafafa;
transition: border-color 0.15s;
}
.num-input:focus {
border-color: #1a1a1a;
background: #fff;
}
.unit {
font-size: 11px;
color: #aaa;
min-width: 16px;
}
/* Checkbox toggle */
.toggle-check {
position: relative;
width: 32px;
height: 18px;
flex-shrink: 0;
}
.toggle-check input { display: none; }
.toggle-track {
position: absolute;
inset: 0;
background: #e0e0e0;
border-radius: 18px;
cursor: pointer;
transition: background 0.2s;
}
.toggle-track::before {
content: '';
position: absolute;
width: 13px;
height: 13px;
left: 2.5px;
top: 2.5px;
background: #fff;
border-radius: 50%;
transition: transform 0.2s;
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-check input:checked + .toggle-track { background: #1a1a1a; }
.toggle-check input:checked + .toggle-track::before { transform: translateX(14px); }
</style>
</head>
<body>
<div class="header">
<div class="logo">
<div class="logo-icon">R</div>
<h2>ReadEasy</h2>
</div>
<button class="power-btn" id="masterToggle">
<span class="dot"></span>
<span class="label">OFF</span>
</button>
</div>
<div class="card">
<div class="row">
<span class="row-label">Bold First Letter</span>
<label class="toggle-check">
<input type="checkbox" id="boldCheck">
<span class="toggle-track"></span>
</label>
</div>
<div class="row">
<span class="row-label">Letter Spacing</span>
<div class="row-right">
<input class="num-input" type="number" id="spacingInput" value="0" min="-5" max="20" step="0.5">
<span class="unit">px</span>
</div>
</div>
<div class="row">
<span class="row-label">Line Height</span>
<div class="row-right">
<input class="num-input" type="number" id="lineHeightInput" value="1.5" min="0.5" max="5" step="0.1">
<span class="unit">em</span>
</div>
</div>
<div class="row">
<span class="row-label">Font Size</span>
<div class="row-right">
<input class="num-input" type="number" id="fontSizeInput" value="100" min="50" max="300" step="5">
<span class="unit">%</span>
</div>
</div>
</div>
<script src="popup.js"></script>
</body>
</html>