Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
382 lines (371 loc) · 15.7 KB
/
Copy pathstyles.css
File metadata and controls
382 lines (371 loc) · 15.7 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
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
:root {
--bg: #f5f5f4;
--bg2: #ffffff;
--fg: #1c1c1e;
--fg2: #6e6e73;
--line: rgba(0, 0, 0, 0.08);
--accent: #e8562a;
--cellhover: rgba(0, 0, 0, 0.05);
--icon-color: var(--fg);
--cell: 60px;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #1e1e20;
--bg2: #29292c;
--fg: #f2f2f3;
--fg2: #98989e;
--line: rgba(255, 255, 255, 0.09);
--cellhover: rgba(255, 255, 255, 0.07);
}
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
font: 13px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
background: var(--bg);
color: var(--fg);
display: grid;
grid-template: "head head" 54px "main panel" 1fr "foot foot" 48px / 1fr auto;
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
.ghost { color: var(--fg2); padding: 4px 8px; border-radius: 6px; }
.ghost:hover { background: var(--cellhover); color: var(--fg); }
.hidden { display: none !important; }
/* ---------- Title bar ---------- */
#titlebar {
grid-area: head;
-webkit-app-region: drag;
display: flex;
align-items: center;
gap: 12px;
padding: 0 16px 0 84px;
border-bottom: 1px solid var(--line);
background: var(--bg);
}
.brand {
-webkit-app-region: no-drag;
font-weight: 700; font-size: 15px; letter-spacing: -0.2px;
padding: 4px 8px; border-radius: 7px;
}
.brand:hover { background: var(--cellhover); }
.brand span { color: var(--accent); }
#helpbtn {
-webkit-app-region: no-drag;
width: 26px; height: 26px; border-radius: 50%;
border: 1px solid var(--line); font-weight: 700;
display: flex; align-items: center; justify-content: center; padding: 0;
}
.searchwrap {
-webkit-app-region: no-drag;
flex: 1;
max-width: 520px;
display: flex;
align-items: center;
gap: 8px;
background: var(--bg2);
border: 1px solid var(--line);
border-radius: 10px;
padding: 7px 12px;
}
.searchglyph { width: 15px; height: 15px; color: var(--fg2); flex: none; }
#search { flex: 1; border: none; outline: none; background: none; color: var(--fg); font-size: 14px; }
#clearsearch { display: none; font-size: 11px; padding: 2px 6px; }
.searchwrap.hasquery #clearsearch { display: block; }
.scope { -webkit-app-region: no-drag; color: var(--fg2); font-size: 12px; white-space: nowrap; }
/* ---------- Main ---------- */
#main { grid-area: main; overflow-y: auto; position: relative; }
.center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 80px 20px; color: var(--fg2); }
.spinner {
width: 26px; height: 26px; border-radius: 50%;
border: 3px solid var(--line); border-top-color: var(--accent);
animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.retry {
padding: 7px 20px; border-radius: 9px; font-weight: 600;
background: var(--accent); color: #fff;
}
/* Set browser (home) */
#home { padding: 18px 22px 30px; }
.cat h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--fg2); margin: 22px 0 10px; }
.cat:first-child h2 { margin-top: 4px; }
.setcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.setcard {
text-align: left;
background: var(--bg2);
border: 1px solid var(--line);
border-radius: 12px;
padding: 12px 14px;
transition: border-color 0.12s, transform 0.12s;
}
.setcard:hover { border-color: var(--accent); transform: translateY(-1px); }
.setcard .sname { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setcard .scount { color: var(--fg2); font-size: 11.5px; margin-top: 2px; }
.setcard .slic { color: var(--fg2); font-size: 10.5px; margin-top: 3px; opacity: 0.85; }
/* My Icons: a single dropdown button — zero layout noise however many collections exist. */
.myrow { position: relative; display: inline-block; margin: 0 8px 6px 0; }
.myrowitem.manage { border-top: 1px solid var(--line); border-radius: 0 0 7px 7px; margin-top: 4px; padding-top: 9px; color: var(--fg2); }
.myrowitem.manage:hover { color: var(--accent); }
.mybtn {
padding: 8px 16px; border-radius: 18px;
background: var(--bg2); border: 1px solid var(--line);
font-size: 13px; font-weight: 600;
transition: border-color 0.12s;
}
.mybtn:hover { border-color: var(--accent); }
.mymenu {
position: absolute; top: calc(100% + 6px); left: 0; z-index: 8;
min-width: 250px; max-height: 320px; overflow-y: auto;
display: flex; flex-direction: column; gap: 3px; padding: 7px;
background: var(--bg2); border: 1px solid var(--line); border-radius: 12px;
box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}
.sortseg { display: flex; gap: 4px; padding-bottom: 7px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.sortseg button {
flex: 1; font-size: 11px; font-weight: 600; padding: 4px 0;
border-radius: 6px; color: var(--fg2); background: var(--bg); border: 1px solid var(--line);
}
.sortseg button.sel { background: var(--accent); border-color: var(--accent); color: #fff; }
.myrowitem {
display: flex; justify-content: space-between; align-items: center; gap: 10px;
padding: 7px 10px; border-radius: 7px;
font-size: 12.5px; font-weight: 600; text-align: left;
}
.myrowitem:hover { background: var(--cellhover); color: var(--accent); }
.myrowitem .n { color: var(--fg2); font-weight: 500; }
/* Results grid */
#resultbar { display: flex; align-items: center; gap: 10px; padding: 12px 22px 2px; flex-wrap: wrap; }
#resultcount { color: var(--fg2); font-size: 12px; }
#setinfo { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; color: var(--fg2); flex-wrap: wrap; }
#setinfo .sname { font-size: 15px; font-weight: 700; color: var(--fg); }
#setinfo a { color: var(--accent); text-decoration: none; font-weight: 600; }
#setinfo a:hover { text-decoration: underline; }
#grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(var(--cell), 1fr));
gap: 6px;
padding: 12px 22px 30px;
}
.cell {
aspect-ratio: 1;
display: flex;
align-items: center;
justify-content: center;
border-radius: 10px;
color: var(--icon-color);
transition: background 0.1s;
position: relative;
}
.cell:hover { background: var(--cellhover); }
.cell.sel { outline: 2px solid var(--accent); background: var(--cellhover); }
/* Light icon colors get a dark backing so they stay visible on the light theme. */
body.lightink .cell { background: #4a4a4f; }
body.lightink .cell:hover { background: #5a5a60; }
body.lightink .cell.sel { background: #5a5a60; }
.cell svg { width: 62%; height: 62%; pointer-events: none; }
#sentinel { height: 10px; }
/* ---------- Selection panel ---------- */
#panel {
grid-area: panel;
width: 250px;
background: var(--bg2);
border-left: 1px solid var(--line);
padding: 16px;
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
overflow-y: auto;
}
#closepanel { align-self: flex-end; }
#preview {
width: 148px; height: 148px;
display: flex; align-items: center; justify-content: center;
color: var(--icon-color);
background:
conic-gradient(var(--line) 90deg, transparent 90deg 180deg, var(--line) 180deg 270deg, transparent 270deg)
0 0 / 16px 16px;
border: 1px solid var(--line);
border-radius: 14px;
cursor: grab;
}
#preview svg { width: 70%; height: 70%; pointer-events: none; }
#iconname { font-weight: 600; font-size: 13px; text-align: center; word-break: break-all; margin-top: 4px; }
#iconset {
color: var(--accent); font-size: 12px; font-weight: 600;
cursor: pointer; border-radius: 6px; padding: 2px 8px;
}
#iconset:hover { text-decoration: underline; background: var(--cellhover); }
#iconlicense { color: var(--fg2); font-size: 11px; text-align: center; margin-top: 2px; }
.actions .subtle { border-style: dashed; font-weight: 500; color: var(--fg2); }
.actions { display: flex; flex-direction: column; gap: 7px; width: 100%; margin-top: 10px; }
.actions button {
width: 100%; padding: 8px 0; border-radius: 9px;
border: 1px solid var(--line); background: var(--bg);
font-weight: 600; font-size: 12.5px;
}
.actions button:hover { border-color: var(--accent); color: var(--accent); }
.actions .primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.actions .primary:hover { filter: brightness(1.08); color: #fff; }
.hint { color: var(--fg2); font-size: 11.5px; text-align: center; margin-top: 8px; }
.favrow { display: flex; gap: 6px; width: 100%; margin-top: 8px; position: relative; }
.favrow button {
flex: 1; padding: 6px 0; border-radius: 8px; font-size: 12px; font-weight: 600;
border: 1px solid var(--line); background: var(--bg);
}
.favrow button:hover { border-color: var(--accent); color: var(--accent); }
.favrow button.faved { color: var(--accent); border-color: var(--accent); }
/* Overlay dropdown: floats above the panel content instead of pushing it down. */
#collmenu {
position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 6;
display: flex; flex-direction: column; gap: 4px; padding: 6px;
background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
max-height: 210px; overflow-y: auto;
}
#collmenu button { text-align: left; padding: 5px 10px; border-radius: 6px; font-size: 12px; }
#collmenu button:hover { background: var(--cellhover); color: var(--accent); }
#collmenu .newrow { display: flex; gap: 5px; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; }
#collmenu .newrow input {
flex: 1; font: inherit; font-size: 12px; padding: 4px 8px;
border: 1px solid var(--line); border-radius: 6px; background: var(--bg2); color: var(--fg); outline: none;
}
#collmenu .newrow button { background: var(--accent); color: #fff; padding: 4px 10px; border-radius: 6px; }
#setinfo .exportall {
background: var(--accent); color: #fff; font-weight: 600; font-size: 12px;
padding: 4px 12px; border-radius: 7px; margin-left: 6px;
}
.actions { position: relative; }
#codemenu {
position: absolute; top: 42px; left: 0; right: 0; z-index: 6;
display: flex; flex-direction: column; gap: 4px; padding: 6px;
background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}
#codemenu button { text-align: left; padding: 5px 10px; border-radius: 6px; font-size: 12px; }
#codemenu button:hover { background: var(--cellhover); color: var(--accent); }
#stylebox { width: 100%; margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.stylerow { display: flex; align-items: center; gap: 8px; }
.stylerow > span { color: var(--fg2); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; min-width: 52px; }
.stylerow input[type="range"] { flex: 1; accent-color: var(--accent); }
.stylerow .seg { flex: 1; }
.stylerow .seg button { flex: 1; }
.seg.mini button { padding: 4px 0; font-size: 11px; height: 24px; }
.renameinput {
font: inherit; font-size: 14px; font-weight: 700;
padding: 2px 8px; border: 1px solid var(--accent); border-radius: 6px;
background: var(--bg2); color: var(--fg); outline: none;
}
/* ---------- Bottom controls ---------- */
#controls {
grid-area: foot;
display: flex;
align-items: center;
gap: 22px;
padding: 0 18px;
border-top: 1px solid var(--line);
background: var(--bg);
overflow-x: auto;
}
.group { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.group.grow { flex: 1; justify-content: flex-end; }
.lbl { color: var(--fg2); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.swatch {
width: 20px; height: 20px; border-radius: 50%;
border: 2px solid var(--line);
}
.swatch.auto { background: linear-gradient(135deg, #000 50%, #fff 50%); }
.swatch.sel { outline: 2px solid var(--accent); outline-offset: 1px; }
/* All color pickers share one look: a rounded-square swatch. */
input[type="color"] {
-webkit-appearance: none;
appearance: none;
width: 22px; height: 22px;
border: 1px solid var(--line);
border-radius: 6px;
padding: 0;
background: none;
cursor: pointer;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 4px; }
#custcolor.sel { outline: 2px solid var(--accent); outline-offset: 1px; }
.seg { display: flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { padding: 4px 14px; font-size: 12px; font-weight: 600; color: var(--fg2); }
.seg button.sel { background: var(--accent); color: #fff; }
#pngsize {
font: inherit; color: var(--fg); background: var(--bg2);
border: 1px solid var(--line); border-radius: 7px; padding: 3px 6px; outline: none;
}
#zoom { accent-color: var(--accent); width: 130px; }
/* ---------- Toast ---------- */
#toast {
position: fixed;
bottom: 62px; left: 50%; transform: translateX(-50%);
background: var(--fg); color: var(--bg);
padding: 8px 18px; border-radius: 20px;
font-size: 12.5px; font-weight: 600;
box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
z-index: 10;
animation: pop 0.15s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateX(-50%) translateY(6px); } }
/* ---------- Manage Collections overlay ---------- */
#manageoverlay {
position: fixed; inset: 0; z-index: 20;
background: rgba(0, 0, 0, 0.45);
display: flex; align-items: center; justify-content: center;
padding: 30px;
}
#managecard {
background: var(--bg2); color: var(--fg);
width: 400px; max-height: 100%; overflow-y: auto;
border-radius: 16px; padding: 22px 24px;
box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}
#managecard h1 { font-size: 17px; margin-bottom: 4px; }
#managecard .lead { color: var(--fg2); font-size: 12px; margin-bottom: 12px; }
#managelist { display: flex; flex-direction: column; gap: 2px; max-height: 300px; overflow-y: auto; }
.managerow {
display: flex; align-items: center; gap: 10px;
padding: 7px 8px; border-radius: 8px; font-size: 13px; font-weight: 600;
cursor: pointer;
}
.managerow:hover { background: var(--cellhover); }
.managerow input { accent-color: var(--accent); width: 15px; height: 15px; }
.managerow .n { margin-left: auto; color: var(--fg2); font-weight: 500; font-size: 12px; }
.managefoot { display: flex; gap: 8px; margin-top: 14px; }
.managefoot button {
flex: 1; padding: 8px 0; border-radius: 9px; font-weight: 600; font-size: 12.5px;
border: 1px solid var(--line); background: var(--bg);
}
.managefoot button:hover { border-color: var(--accent); color: var(--accent); }
.managefoot .danger { background: #d4372c; border-color: #d4372c; color: #fff; }
.managefoot .danger:hover { filter: brightness(1.1); color: #fff; border-color: #d4372c; }
/* ---------- Help overlay ---------- */
#helpoverlay {
position: fixed; inset: 0; z-index: 20;
background: rgba(0, 0, 0, 0.45);
display: flex; align-items: center; justify-content: center;
padding: 30px;
}
#helpcard {
background: var(--bg2); color: var(--fg);
max-width: 560px; max-height: 100%; overflow-y: auto;
border-radius: 16px; padding: 26px 30px;
box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
font-size: 13px; line-height: 1.55;
}
#closehelp { float: right; margin: -8px -14px 0 0; }
#helpcard h1 { font-size: 20px; margin-bottom: 6px; }
#helpcard h1 em { color: var(--accent); font-style: normal; }
#helpcard h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent); margin: 18px 0 6px; }
#helpcard p { margin: 6px 0; }
#helpcard .lead { color: var(--fg2); }
#helpcard ul { margin: 6px 0 6px 18px; }
#helpcard li { margin: 4px 0; }
#helpcard .credits { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--fg2); font-size: 12px; }
#helpcard .credits.caio { margin-top: 6px; padding-top: 0; border-top: none; }
#helpcard .credits a { color: var(--accent); font-weight: 600; text-decoration: none; }
#helpcard .credits a:hover { text-decoration: underline; }