@studyllm/resume-preview 0.0.0-stage → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,529 @@
1
+ /**
2
+ * Shared CSS - Reusable components for all pages
3
+ * Following existing design system from style.css
4
+ */
5
+
6
+ /* ===== CSS Variables ===== */
7
+ :root {
8
+ --bg-primary: #1a1a1a;
9
+ --bg-secondary: rgba(0, 0, 0, 0.9);
10
+ --bg-card: #2a2a2a;
11
+ --bg-hover: #3a3a3a;
12
+
13
+ --text-primary: white;
14
+ --text-secondary: rgba(255, 255, 255, 0.7);
15
+ --text-tertiary: rgba(255, 255, 255, 0.5);
16
+
17
+ --border-color: rgba(255, 255, 255, 0.1);
18
+ --border-color-hover: rgba(255, 255, 255, 0.2);
19
+
20
+ --accent-color: #4caf50;
21
+ --accent-hover: #45a049;
22
+ --danger-color: #f44336;
23
+
24
+ --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
25
+
26
+ --spacing-xs: 4px;
27
+ --spacing-sm: 8px;
28
+ --spacing-md: 16px;
29
+ --spacing-lg: 24px;
30
+ --spacing-xl: 32px;
31
+
32
+ --border-radius-sm: 4px;
33
+ --border-radius-md: 8px;
34
+ --border-radius-lg: 12px;
35
+
36
+ --transition-fast: 0.2s;
37
+ --transition-medium: 0.3s;
38
+ }
39
+
40
+ /* ===== Base Styles ===== */
41
+ * {
42
+ box-sizing: border-box;
43
+ }
44
+
45
+ body {
46
+ margin: 0;
47
+ padding: 0;
48
+ background: var(--bg-primary);
49
+ font-family: var(--font-family);
50
+ color: var(--text-primary);
51
+ line-height: 1.5;
52
+ }
53
+
54
+ /* ===== Navigation ===== */
55
+ .nav {
56
+ height: 48px;
57
+ padding: 0 var(--spacing-md);
58
+ background: var(--bg-secondary);
59
+ display: flex;
60
+ align-items: center;
61
+ gap: var(--spacing-md);
62
+ border-bottom: 1px solid var(--border-color);
63
+ }
64
+
65
+ .nav-link {
66
+ color: var(--text-secondary);
67
+ text-decoration: none;
68
+ padding: var(--spacing-sm) var(--spacing-md);
69
+ border-radius: var(--border-radius-sm);
70
+ transition: all var(--transition-fast);
71
+ font-size: 14px;
72
+ font-weight: 500;
73
+ }
74
+
75
+ .nav-link:hover {
76
+ color: var(--text-primary);
77
+ background: var(--bg-card);
78
+ }
79
+
80
+ .nav-link.active {
81
+ color: var(--accent-color);
82
+ background: var(--bg-card);
83
+ }
84
+
85
+ /* ===== Buttons ===== */
86
+ .btn {
87
+ background: transparent;
88
+ border: 1px solid var(--border-color);
89
+ color: var(--text-primary);
90
+ cursor: pointer;
91
+ font-size: 14px;
92
+ padding: var(--spacing-sm) var(--spacing-md);
93
+ border-radius: var(--border-radius-sm);
94
+ transition: all var(--transition-fast);
95
+ font-family: var(--font-family);
96
+ }
97
+
98
+ .btn:hover {
99
+ border-color: var(--border-color-hover);
100
+ background: var(--bg-hover);
101
+ }
102
+
103
+ .btn:active {
104
+ transform: scale(0.98);
105
+ }
106
+
107
+ .btn-primary {
108
+ background: var(--accent-color);
109
+ border-color: var(--accent-color);
110
+ color: white;
111
+ }
112
+
113
+ .btn-primary:hover {
114
+ background: var(--accent-hover);
115
+ border-color: var(--accent-hover);
116
+ }
117
+
118
+ .btn-icon {
119
+ background: transparent;
120
+ border: none;
121
+ color: var(--text-secondary);
122
+ cursor: pointer;
123
+ font-size: 18px;
124
+ padding: var(--spacing-sm);
125
+ transition: all var(--transition-fast);
126
+ }
127
+
128
+ .btn-icon:hover {
129
+ color: var(--text-primary);
130
+ transform: scale(1.1);
131
+ }
132
+
133
+ /* ===== Input Fields ===== */
134
+ .input {
135
+ background: var(--bg-card);
136
+ border: 1px solid var(--border-color);
137
+ color: var(--text-primary);
138
+ padding: var(--spacing-sm) var(--spacing-md);
139
+ border-radius: var(--border-radius-sm);
140
+ font-size: 14px;
141
+ font-family: var(--font-family);
142
+ transition: all var(--transition-fast);
143
+ width: 100%;
144
+ }
145
+
146
+ .input:focus {
147
+ outline: none;
148
+ border-color: var(--accent-color);
149
+ box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
150
+ }
151
+
152
+ .input::placeholder {
153
+ color: var(--text-tertiary);
154
+ }
155
+
156
+ /* ===== Search Bar ===== */
157
+ .search-bar {
158
+ position: relative;
159
+ width: 100%;
160
+ max-width: 600px;
161
+ }
162
+
163
+ .search-input {
164
+ padding-left: var(--spacing-xl);
165
+ }
166
+
167
+ .search-icon {
168
+ position: absolute;
169
+ left: var(--spacing-md);
170
+ top: 50%;
171
+ transform: translateY(-50%);
172
+ color: var(--text-tertiary);
173
+ pointer-events: none;
174
+ }
175
+
176
+ /* ===== Cards ===== */
177
+ .card {
178
+ background: var(--bg-card);
179
+ border: 1px solid var(--border-color);
180
+ border-radius: var(--border-radius-md);
181
+ padding: var(--spacing-md);
182
+ transition: all var(--transition-fast);
183
+ }
184
+
185
+ .card:hover {
186
+ border-color: var(--border-color-hover);
187
+ transform: translateY(-2px);
188
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
189
+ }
190
+
191
+ .card-title {
192
+ margin: 0 0 var(--spacing-sm) 0;
193
+ font-size: 16px;
194
+ font-weight: 600;
195
+ color: var(--text-primary);
196
+ }
197
+
198
+ .card-description {
199
+ margin: 0;
200
+ font-size: 14px;
201
+ color: var(--text-secondary);
202
+ }
203
+
204
+ /* ===== Grid Layouts ===== */
205
+ .grid {
206
+ display: grid;
207
+ gap: var(--spacing-lg);
208
+ }
209
+
210
+ .grid-2 {
211
+ grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
212
+ }
213
+
214
+ .grid-3 {
215
+ grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
216
+ }
217
+
218
+ .grid-4 {
219
+ grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
220
+ }
221
+
222
+ /* ===== Container ===== */
223
+ .container {
224
+ width: 100%;
225
+ max-width: 1400px;
226
+ margin: 0 auto;
227
+ padding: var(--spacing-lg);
228
+ }
229
+
230
+ /* ===== Status Indicators ===== */
231
+ /* ===== Badges ===== */
232
+ .badge {
233
+ display: inline-block;
234
+ padding: 2px var(--spacing-sm);
235
+ background: var(--bg-hover);
236
+ border: 1px solid var(--border-color);
237
+ border-radius: var(--border-radius-sm);
238
+ font-size: 12px;
239
+ color: var(--text-secondary);
240
+ }
241
+
242
+ /* ===== Empty State ===== */
243
+ .empty-state {
244
+ text-align: center;
245
+ padding: var(--spacing-xl) var(--spacing-lg);
246
+ color: var(--text-tertiary);
247
+ }
248
+
249
+ .empty-state-icon {
250
+ font-size: 48px;
251
+ margin-bottom: var(--spacing-md);
252
+ opacity: 0.5;
253
+ }
254
+
255
+ .empty-state-title {
256
+ font-size: 18px;
257
+ font-weight: 600;
258
+ margin: 0 0 var(--spacing-sm) 0;
259
+ color: var(--text-secondary);
260
+ }
261
+
262
+ .empty-state-description {
263
+ font-size: 14px;
264
+ margin: 0;
265
+ }
266
+
267
+ /* ===== Loading State ===== */
268
+ .loading {
269
+ display: flex;
270
+ align-items: center;
271
+ justify-content: center;
272
+ padding: var(--spacing-xl);
273
+ }
274
+
275
+ .loading-spinner {
276
+ width: 32px;
277
+ height: 32px;
278
+ border: 3px solid var(--border-color);
279
+ border-top-color: var(--accent-color);
280
+ border-radius: 50%;
281
+ animation: spin 0.8s linear infinite;
282
+ }
283
+
284
+ @keyframes spin {
285
+ to {
286
+ transform: rotate(360deg);
287
+ }
288
+ }
289
+
290
+ /* ===== Footer ===== */
291
+ .footer {
292
+ padding: var(--spacing-md);
293
+ text-align: center;
294
+ font-size: 12px;
295
+ color: var(--text-tertiary);
296
+ border-top: 1px solid var(--border-color);
297
+ margin-top: auto;
298
+ }
299
+
300
+ .footer p {
301
+ margin: 0;
302
+ }
303
+
304
+ /* ===== Utility Classes ===== */
305
+ .text-center {
306
+ text-align: center;
307
+ }
308
+
309
+ .text-muted {
310
+ color: var(--text-secondary);
311
+ }
312
+
313
+ .text-tertiary {
314
+ color: var(--text-tertiary);
315
+ }
316
+
317
+ .mt-sm {
318
+ margin-top: var(--spacing-sm);
319
+ }
320
+ .mt-md {
321
+ margin-top: var(--spacing-md);
322
+ }
323
+ .mt-lg {
324
+ margin-top: var(--spacing-lg);
325
+ }
326
+
327
+ .mb-sm {
328
+ margin-bottom: var(--spacing-sm);
329
+ }
330
+ .mb-md {
331
+ margin-bottom: var(--spacing-md);
332
+ }
333
+ .mb-lg {
334
+ margin-bottom: var(--spacing-lg);
335
+ }
336
+
337
+ .flex {
338
+ display: flex;
339
+ }
340
+
341
+ .flex-center {
342
+ display: flex;
343
+ align-items: center;
344
+ justify-content: center;
345
+ }
346
+
347
+ .flex-between {
348
+ display: flex;
349
+ align-items: center;
350
+ justify-content: space-between;
351
+ }
352
+
353
+ .gap-sm {
354
+ gap: var(--spacing-sm);
355
+ }
356
+ .gap-md {
357
+ gap: var(--spacing-md);
358
+ }
359
+ .gap-lg {
360
+ gap: var(--spacing-lg);
361
+ }
362
+
363
+ /* ===== Preview Shell =====
364
+ * The status bar, the zoom controls and the export menu. Shared by the
365
+ * gallery page and the resume preview page so the two do not drift apart.
366
+ */
367
+
368
+ .status-bar {
369
+ height: 32px;
370
+ padding: 8px 16px;
371
+ background: rgba(0, 0, 0, 0.9);
372
+ color: white;
373
+ font-size: 12px;
374
+ display: flex;
375
+ justify-content: space-between;
376
+ align-items: center;
377
+ border-bottom: 1px solid rgba(255, 255, 255, 0.1);
378
+ flex-shrink: 0;
379
+ }
380
+
381
+ .toolbar-buttons {
382
+ display: flex;
383
+ align-items: center;
384
+ gap: 8px;
385
+ }
386
+
387
+ .toolbar-btn {
388
+ background: transparent;
389
+ border: none;
390
+ color: rgba(255, 255, 255, 0.7);
391
+ cursor: pointer;
392
+ font-size: 16px;
393
+ padding: 4px 8px;
394
+ transition:
395
+ color 0.2s,
396
+ transform 0.2s;
397
+ }
398
+
399
+ .toolbar-btn:hover {
400
+ color: white;
401
+ transform: scale(1.1);
402
+ }
403
+
404
+ .toolbar-btn.is-loading {
405
+ opacity: 0.6;
406
+ cursor: wait;
407
+ transform: none;
408
+ }
409
+
410
+ .export-dropdown {
411
+ position: relative;
412
+ display: inline-block;
413
+ }
414
+
415
+ .export-menu {
416
+ display: none;
417
+ position: absolute;
418
+ top: 100%;
419
+ left: 50%;
420
+ transform: translateX(-50%);
421
+ margin-top: 4px;
422
+ background: rgba(30, 30, 30, 0.95);
423
+ border: 1px solid rgba(255, 255, 255, 0.15);
424
+ border-radius: 6px;
425
+ padding: 4px 0;
426
+ min-width: 140px;
427
+ z-index: 100;
428
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
429
+ }
430
+
431
+ .export-menu.visible {
432
+ display: block;
433
+ }
434
+
435
+ .export-option {
436
+ display: block;
437
+ width: 100%;
438
+ padding: 8px 16px;
439
+ background: transparent;
440
+ border: none;
441
+ color: rgba(255, 255, 255, 0.85);
442
+ font-size: 13px;
443
+ text-align: left;
444
+ cursor: pointer;
445
+ transition: background 0.15s;
446
+ }
447
+
448
+ .export-option:hover {
449
+ background: rgba(255, 255, 255, 0.1);
450
+ }
451
+
452
+ .export-option:disabled {
453
+ opacity: 0.5;
454
+ cursor: wait;
455
+ }
456
+
457
+ .zoom-level {
458
+ color: rgba(255, 255, 255, 0.5);
459
+ font-size: 11px;
460
+ min-width: 36px;
461
+ text-align: center;
462
+ user-select: none;
463
+ }
464
+
465
+ .status-indicator {
466
+ display: inline-block;
467
+ width: 8px;
468
+ height: 8px;
469
+ border-radius: 50%;
470
+ background: var(--accent-color);
471
+ margin-right: 8px;
472
+ }
473
+
474
+ .status-indicator.disconnected {
475
+ background: var(--danger-color);
476
+ }
477
+
478
+ /* ===== Language Switch =====
479
+ * Shown in the gallery header and in the preview toolbar. It inherits the
480
+ * surrounding color so it reads on both the light page and the dark toolbar.
481
+ */
482
+
483
+ .lang-switch {
484
+ display: inline-flex;
485
+ align-items: center;
486
+ gap: 2px;
487
+ }
488
+
489
+ .lang-option {
490
+ font-size: 12px;
491
+ line-height: 1;
492
+ padding: 4px 8px;
493
+ border-radius: 4px;
494
+ text-decoration: none;
495
+ color: inherit;
496
+ opacity: 0.6;
497
+ transition:
498
+ opacity 0.2s,
499
+ background-color 0.2s;
500
+ }
501
+
502
+ .lang-option:hover {
503
+ opacity: 1;
504
+ background-color: rgba(127, 127, 127, 0.15);
505
+ }
506
+
507
+ .lang-option.is-active {
508
+ opacity: 1;
509
+ font-weight: 600;
510
+ background-color: rgba(127, 127, 127, 0.22);
511
+ }
512
+
513
+ @media (max-width: 640px) {
514
+ .status-bar {
515
+ height: auto;
516
+ flex-wrap: wrap;
517
+ gap: 4px;
518
+ }
519
+
520
+ #last-update {
521
+ display: none;
522
+ }
523
+
524
+ .export-menu {
525
+ left: auto;
526
+ right: 0;
527
+ transform: none;
528
+ }
529
+ }