-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.css
More file actions
302 lines (299 loc) · 5.76 KB
/
popup.css
File metadata and controls
302 lines (299 loc) · 5.76 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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
:root {
--bg: #0d0d0d;
--panel: #111111;
--text: #ededed;
--muted: #777777;
--border: #1e1e1e;
--input: transparent; /* flat inputs */
--accent: #00c47a;
--btn: var(--accent);
--btn-hover: #00b471;
--btn-secondary: transparent;
--btn-secondary-hover: rgba(255, 255, 255, 0.06);
--danger: #ef4444;
--danger-hover: #dc2626;
}
body {
width: 360px; /* compact width for single-panel tabs */
font-family: Inter, Poppins, system-ui, -apple-system, Segoe UI, Roboto,
sans-serif;
background: var(--bg);
color: var(--text);
margin: 0;
border-radius: 16px; /* rounded popup corners */
overflow: hidden; /* clip inner panels to rounded edges */
border: 1px solid var(--border); /* subtle outline to emphasize radius */
}
.header {
display: flex;
background: var(--bg);
color: var(--text);
padding: 20px 16px 4px;
align-items: center;
justify-content: center;
flex-direction: column;
}
.toprow {
display: flex;
align-items: center;
gap: 10px;
}
.title {
font-weight: 900; /* bolder but slightly smaller */
font-size: 18px;
line-height: 1.1;
text-transform: uppercase;
letter-spacing: 0.6px;
color: var(--text);
cursor: pointer;
user-select: none;
transition: color 160ms ease;
}
.title.on {
color: var(--accent);
}
.title:hover {
opacity: 0.9;
}
.subtitle {
opacity: 0.6; /* lighter emphasis */
font-size: 11px; /* slightly smaller */
margin: 2px 0 2px;
}
.container {
padding: 0 16px 0;
}
.card {
padding: 8px 0 0;
}
.tabs {
display: flex;
gap: 8px;
justify-content: center;
padding: 8px 0 12px;
flex-wrap: wrap;
}
.tab {
background: transparent;
border: 1px solid var(--border);
color: var(--muted);
padding: 6px 10px;
border-radius: 999px;
cursor: pointer;
font-weight: 600;
font-size: 12px;
}
.tab:hover {
color: var(--text);
}
.tab.active {
color: var(--text);
border-color: var(--accent);
}
.panel {
display: none;
padding-bottom: 8px;
}
.panel.active {
display: block;
}
.collapsible .section:first-child {
margin-top: 6px;
}
.collapsible {
max-height: 0;
overflow: hidden;
opacity: 0;
transform: translateY(-6px);
transition: max-height 300ms cubic-bezier(0.22, 0.61, 0.36, 1),
opacity 200ms ease, transform 300ms cubic-bezier(0.22, 0.61, 0.36, 1);
will-change: max-height, opacity, transform;
pointer-events: none;
}
.collapsible.open {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}
.section {
margin: 0;
}
h3 {
margin: 0 0 6px;
font-size: 13px;
font-weight: 600;
color: var(--text);
}
.inline {
display: grid;
grid-template-columns: 1fr auto;
gap: 8px;
align-items: center;
margin-bottom: 8px;
}
.input {
flex: 1;
padding: 10px 12px;
background: var(--input);
color: var(--text);
border: 1px solid var(--border);
border-radius: 8px;
font-size: 13px;
outline: none;
transition: border-color 0.15s ease, background-color 0.15s ease;
}
.input::placeholder {
color: var(--muted);
}
.input:focus {
border-color: var(--accent);
background: rgba(255, 255, 255, 0.02);
}
.btn {
min-width: 96px;
height: 36px;
padding: 0 14px;
border-radius: 8px;
border: none;
background: var(--btn);
color: #06281a;
cursor: pointer;
font-weight: 700;
transition: background-color 0.15s ease, border-color 0.15s ease,
opacity 0.15s ease;
}
.btn:hover {
background: var(--btn-hover);
color: #042015;
}
.btn-secondary {
background: var(--btn-secondary);
color: var(--text);
border: 1px solid var(--border);
}
.btn-secondary:hover {
background: var(--btn-secondary-hover);
}
.timer {
font-weight: 800;
font-size: 32px;
margin: 8px 0;
text-align: center;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
"Liberation Mono", "Courier New", monospace;
letter-spacing: 0.5px;
transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.timer.running {
opacity: 1;
}
.timer.paused {
opacity: 0.8;
}
.btn-row {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.list {
list-style: none;
padding: 0;
margin: 4px 0 0;
max-height: 140px;
overflow: auto;
}
.list li {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 4px;
border-bottom: 1px solid var(--border);
}
.list .site {
font-size: 13px;
color: var(--text);
}
.list .site.active {
color: var(--accent);
}
.list .remove {
background: transparent;
color: var(--muted);
border: 1px solid var(--border);
border-radius: 6px;
width: 24px;
height: 24px;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 14px;
}
.list .remove:hover {
color: #fff;
background: rgba(255, 255, 255, 0.06);
}
/* switch-row and label removed in new header layout */
.switch {
position: relative;
display: inline-block;
width: 52px;
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: #334155;
transition: 0.2s;
border-radius: 999px;
}
.slider:before {
position: absolute;
content: "";
height: 22px;
width: 22px;
left: 3px;
bottom: 3px;
background-color: white;
transition: 0.2s;
border-radius: 50%;
}
input:checked + .slider {
background-color: var(--btn);
}
input:checked + .slider:before {
transform: translateX(24px);
}
.timer-text {
font-size: 14px;
font-weight: 600;
text-align: center;
}
/* Footer with light centered settings icon */
.footer {
padding: 8px 16px 12px;
text-align: center;
color: var(--muted);
}
.footer .icon {
background: transparent;
border: none;
color: var(--muted);
cursor: pointer;
font-size: 12px; /* grey text size for Settings */
opacity: 0.6;
}
.footer .icon:hover {
color: var(--text);
opacity: 1;
}