-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
2944 lines (2521 loc) · 86 KB
/
index.html
File metadata and controls
2944 lines (2521 loc) · 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
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
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!--- code_name = WebLinksFetcher --->
<!--
WebLinksFetcher
--------------------
Copyright (C) 2025 El Moumen Yassine
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
About Numerimondes
-----------------
Numerimondes is a dynamic technology and consulting ecosystem based in Morocco,
dedicated to empowering innovation through growth thinking, brand thinking,
design thinking, and tech thinking. We craft tools and strategies that make
development intuitive, collaborative, and impactful. Our mission is to build a vibrant
community of innovators, connecting businesses, developers, and visionaries to shape
a better future through technology.
Our flagship projects, such as WebKernel and Nadim, alongside tailored solutions like
SolEcoles, provide robust, open-source tools for web development, automation, and
industry-specific applications. Numerimondes combines elegant technical solutions
with strategic consulting to drive success for businesses and communities.
Compatibility Note:
-------------------
WebKernel, the skeleton project on which this project builds, is licensed under
the Mozilla Public License (MPL). Both MPL and GPL v3 are open source licenses,
but they have different conditions. Since WebLinksFetcher is GPLv3-licensed,
any derivative work must comply with GPLv3 terms. MPL's file-level copyleft can
coexist with GPLv3, but care must be taken in how combined code is distributed.
For detailed compatibility, please consult:
- https://www.gnu.org/licenses/license-list.en.html#MPL
- https://www.mozilla.org/en-US/MPL/2.0/
-->
<!--
Mission:
Numerimondes empowers creators by providing expressive, modular tools such as
WebKernel, a scalable web framework, and Nadim, powerful automation scripts.
Our ecosystem supports collaboration, innovation, and tailored solutions,
especially for sectors like education with projects like SolEcoles.
-->
<!DOCTYPE html>
<html lang="en" class="scroll-smooth">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Numerimondes Asset Viewer</title>
<!-- OG Metadata -->
<meta property="og:title" content="Numerimondes Asset Viewer" />
<meta property="og:description" content="Explore and manage assets for Numerimondes brands, clients and projects." />
<meta property="og:image" content="https://raw.githubusercontent.com/numerimondes/.github/refs/heads/main/assets/commons/media/images/og-image-WebLinksFetcher.png" />
<meta property="og:url" content="https://numerimondes.github.io/.github/" />
<meta property="og:type" content="website" />
<!-- Twitter Card -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Numerimondes Asset Viewer" />
<meta name="twitter:description" content="Explore and manage assets for Numerimondes brands, clients and projects." />
<meta name="twitter:image" content="https://raw.githubusercontent.com/numerimondes/.github/refs/heads/main/assets/commons/media/images/og-image-WebLinksFetcher.png" />
<!-- Other Meta -->
<meta name="description" content="A modern asset viewer for Numerimondes, featuring logos, banners, team photos and more for brands, clients and projects." />
<meta name="keywords" content="Numerimondes, assets, brands, clients, projects, media" />
<meta name="author" content="El Moumen Yassine" />
<!-- Favicon -->
<link rel="icon" type="image/png" href="https://t2.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=https://numerimondes.com/&size=256" />
<!-- Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" />
<!-- Highlight.js for Syntax Highlighting -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/markdown.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/bash.min.js"></script>
<!-- Marked.js for Markdown rendering -->
<script src="https://cdn.jsdelivr.net/npm/marked@9.1.6/marked.min.js"></script>
<!-- Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
<style>
/* CSS Variables for easy color customization */
:root {
/* Primary Colors */
--primary-bg: #0d1117; /* GitHub dark background */
--secondary-bg: #161b22; /* Lighter background for cards */
--tertiary-bg: #21262d; /* Even lighter for headers */
--accent-bg: #30363d; /* Accent background */
/* Text Colors */
--primary-text: #f0f6fc; /* Primary text color */
--secondary-text: #8b949e; /* Secondary text color */
--muted-text: #6e7681; /* Muted text color */
/* Border Colors */
--border-primary: #30363d; /* Primary border color */
--border-secondary: #21262d; /* Secondary border color */
/* Accent Colors */
--accent-blue: #58a6ff; /* Blue accent */
--accent-green: #3fb950; /* Green accent */
--accent-purple: #a5a5ff; /* Purple accent */
--accent-orange: #ff9500; /* Orange accent */
--accent-red: #f85149; /* Red accent */
/* Interactive States */
--hover-bg: #262c36; /* Hover background */
--active-bg: #316dca; /* Active background */
--focus-ring: #1f6feb; /* Focus ring color */
/* Source Code Modal Specific Styles */
--page-sourcecode-modal-width: 95vw;
--page-sourcecode-modal-height: 95vh;
}
.page-sourcecode-modal .modal-content {
width: var(--page-sourcecode-modal-width);
max-width: var(--page-sourcecode-modal-width);
height: var(--page-sourcecode-modal-height);
max-height: var(--page-sourcecode-modal-height);
}
/* Base Styles */
* {
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background-color: var(--primary-bg);
color: var(--primary-text);
margin: 0;
padding: 0;
min-height: 100vh;
line-height: 1.6;
display: flex;
flex-direction: column;
}
/* Scrollbar Styling */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: var(--primary-bg);
}
::-webkit-scrollbar-thumb {
background: var(--border-primary);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--secondary-text);
}
/* Header Styles */
.header {
background-color: var(--secondary-bg);
border-bottom: 1px solid var(--border-primary);
position: sticky;
top: 0;
z-index: 40;
backdrop-filter: blur(8px);
}
.container {
max-width: 1280px;
margin: 0 auto;
padding: 0 1rem;
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
height: 4rem;
}
.logo-section {
display: flex;
align-items: center;
gap: 1rem;
}
.logo-title {
margin: 0;
font-size: 1.25rem;
font-weight: 700;
}
.logo-image {
height: 2rem;
width: auto;
padding: 0.25rem;
}
.loading-badge {
background-color: var(--accent-blue);
color: var(--primary-bg);
font-size: 0.75rem;
padding: 0.25rem 0.5rem;
border-radius: 9999px;
font-weight: 500;
}
.header-controls {
display: flex;
align-items: center;
gap: 0.75rem;
}
/* View Toggle Styles */
.view-toggle {
display: flex;
border-radius: 0.5rem;
overflow: hidden;
border: 1px solid var(--border-primary);
}
.view-toggle-btn {
padding: 0.5rem 0.75rem;
background-color: var(--secondary-bg);
color: var(--primary-text);
border: none;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 0.25rem;
font-size: 0.875rem;
}
.view-toggle-btn:hover {
background-color: var(--hover-bg);
}
.view-toggle-btn.active {
background-color: var(--accent-blue);
color: var(--primary-bg);
}
.view-toggle-btn .icon {
width: 1.25rem;
height: 1.25rem;
}
.btn-text {
display: none;
}
@media (min-width: 640px) {
.btn-text {
display: inline;
}
}
/* Grid Size Control */
.grid-size-control {
display: flex;
align-items: center;
gap: 0.5rem;
background-color: var(--secondary-bg);
border: 1px solid var(--border-primary);
border-radius: 0.5rem;
padding: 0.25rem;
}
.grid-size-btn {
padding: 0.25rem 0.5rem;
background: none;
border: none;
color: var(--secondary-text);
cursor: pointer;
border-radius: 0.25rem;
font-size: 0.75rem;
font-weight: 500;
transition: all 0.2s ease;
min-width: 2rem;
}
.grid-size-btn:hover {
background-color: var(--hover-bg);
color: var(--primary-text);
}
.grid-size-btn.active {
background-color: var(--accent-blue);
color: var(--primary-bg);
}
/* Filter Select */
.filter-select {
background-color: var(--secondary-bg);
color: var(--primary-text);
border: 1px solid var(--border-primary);
padding: 0.5rem 0.75rem;
border-radius: 0.5rem;
font-size: 0.875rem;
cursor: pointer;
transition: all 0.2s ease;
}
.filter-select:focus {
outline: none;
border-color: var(--focus-ring);
box-shadow: 0 0 0 2px rgba(31, 111, 235, 0.3);
}
.filter-select option {
background-color: var(--secondary-bg);
color: var(--primary-text);
}
/* Help Button */
.help-btn {
background-color: var(--accent-blue);
color: var(--primary-bg);
border: none;
padding: 0.5rem 0.75rem;
border-radius: 0.5rem;
font-size: 0.875rem;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 0.25rem;
font-weight: 500;
}
.help-btn:hover {
background-color: #4493f8;
}
.help-text {
display: none;
}
@media (min-width: 640px) {
.help-text {
display: inline;
}
}
/* Main Content */
.main-content {
max-width: 1280px;
margin: 0 auto;
padding: 2rem 1rem;
flex: 1 0 auto;
min-height: calc(100vh - 200px);
width: 100%;
position: relative;
}
/* Prevent content shifting */
.stats-grid,
.search-container,
.owner-filter-container {
width: 100%;
margin-left: 0;
margin-right: 0;
}
/* Stats Grid */
.stats-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
margin-bottom: 2rem;
}
@media (min-width: 768px) {
.stats-grid {
grid-template-columns: repeat(4, 1fr);
}
}
.stat-card {
background-color: var(--secondary-bg);
border-radius: 0.75rem;
padding: 1rem;
border: 1px solid var(--border-primary);
transition: transform 0.2s ease;
}
.stat-card:hover {
transform: translateY(-2px);
border-color: var(--border-secondary);
}
.stat-value {
font-size: 1.5rem;
font-weight: 700;
color: var(--accent-blue);
margin-bottom: 0.25rem;
}
.stat-value.brands {
color: var(--accent-green);
}
.stat-value.clients {
color: var(--accent-purple);
}
.stat-value.projects {
color: var(--accent-orange);
}
.stat-value.commons {
color: var(--accent-blue);
}
.stat-label {
font-size: 0.875rem;
color: var(--secondary-text);
}
/* Search Container */
.search-container {
position: relative;
margin-bottom: 1.5rem;
}
.search-input {
width: 100%;
padding: 0.75rem 1rem;
padding-right: 2.5rem;
background-color: var(--secondary-bg);
color: var(--primary-text);
border: 1px solid var(--border-primary);
border-radius: 0.5rem;
font-size: 1rem;
transition: all 0.2s ease;
}
.search-input:focus {
outline: none;
border-color: var(--focus-ring);
box-shadow: 0 0 0 2px rgba(31, 111, 235, 0.3);
}
.search-input::placeholder {
color: var(--muted-text);
}
.clear-search-btn {
position: absolute;
right: 0.75rem;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
color: var(--secondary-text);
cursor: pointer;
padding: 0.25rem;
border-radius: 0.25rem;
transition: color 0.2s ease;
}
.clear-search-btn:hover {
color: var(--primary-text);
}
.clear-search-btn .icon {
width: 1.25rem;
height: 1.25rem;
}
/* Asset Grid */
.asset-grid {
display: grid;
gap: 1.5rem;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
justify-items: start;
}
.asset-grid.grid-3 {
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.asset-grid.grid-4 {
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.asset-grid.grid-5 {
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
@media (min-width: 1024px) {
.asset-grid.grid-3 {
grid-template-columns: repeat(3, 1fr);
}
.asset-grid.grid-4 {
grid-template-columns: repeat(4, 1fr);
}
.asset-grid.grid-5 {
grid-template-columns: repeat(5, 1fr);
}
}
/* Asset Card */
.asset-card {
background-color: var(--secondary-bg);
border: 1px solid var(--border-primary);
border-radius: 0.75rem;
padding: 1.5rem;
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
cursor: pointer;
position: relative;
overflow: hidden;
transform: translateZ(0);
width: 100%;
max-width: 400px;
}
.asset-card:hover {
transform: translateY(-8px) scale(1.02);
border-color: var(--accent-blue);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(88, 166, 255, 0.3);
}
.asset-card:active {
transform: translateY(-4px) scale(1.01);
}
.asset-card-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 1rem;
}
.asset-type-badge {
padding: 0.25rem 0.5rem;
border-radius: 0.375rem;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.asset-type-badge.brands {
background-color: rgba(63, 185, 80, 0.2);
color: var(--accent-green);
}
.asset-type-badge.clients {
background-color: rgba(165, 165, 255, 0.2);
color: var(--accent-purple);
}
.asset-type-badge.projects {
background-color: rgba(255, 149, 0, 0.2);
color: var(--accent-orange);
}
.asset-type-badge.commons {
background-color: rgba(88, 166, 255, 0.2);
color: var(--accent-blue);
}
.asset-preview {
width: 100%;
height: 160px;
border-radius: 0.5rem;
margin-bottom: 1rem;
display: flex;
align-items: center;
justify-content: center;
background-color: var(--tertiary-bg);
border: 1px solid var(--border-secondary);
overflow: hidden;
position: relative;
}
.asset-preview img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
border-radius: 0.375rem;
}
.asset-placeholder {
color: var(--muted-text);
font-size: 2.5rem;
}
.asset-actions {
position: absolute;
top: 0.5rem;
right: 0.5rem;
display: flex;
gap: 0.25rem;
opacity: 0;
transition: opacity 0.2s ease;
}
.asset-card:hover .asset-actions {
opacity: 1;
}
.action-btn {
background-color: rgba(0, 0, 0, 0.7);
color: white;
border: none;
padding: 0.5rem;
border-radius: 0.25rem;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
}
.action-btn:hover {
background-color: rgba(0, 0, 0, 0.9);
transform: scale(1.1);
}
.action-btn .icon {
width: 1rem;
height: 1rem;
}
.asset-info {
margin-top: auto;
}
.asset-title {
font-size: 1rem;
font-weight: 600;
margin-bottom: 0.5rem;
color: var(--primary-text);
line-height: 1.4;
}
.asset-path {
font-size: 0.875rem;
color: var(--secondary-text);
font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
word-break: break-all;
}
/* Loading Spinner */
.loading-spinner {
display: inline-block;
width: 1.5rem;
height: 1.5rem;
border: 2px solid var(--border-primary);
border-radius: 50%;
border-top-color: var(--accent-blue);
animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Loading State */
.loading-state {
text-align: center;
padding: 4rem 2rem;
color: var(--secondary-text);
}
.loading-icon {
font-size: 3rem;
margin-bottom: 1rem;
animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.loading-title {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 0.5rem;
color: var(--primary-text);
}
.loading-description {
font-size: 1rem;
margin-bottom: 2rem;
}
.progress-bar {
width: 100%;
max-width: 320px;
height: 4px;
background-color: var(--border-primary);
border-radius: 2px;
margin: 0 auto;
overflow: hidden;
}
.progress-fill {
height: 100%;
background-color: var(--accent-blue);
width: 0%;
transition: width 0.3s ease;
border-radius: 2px;
}
/* Error State */
.error-state {
text-align: center;
padding: 4rem 2rem;
color: var(--secondary-text);
}
.error-icon {
font-size: 4rem;
margin-bottom: 1rem;
color: var(--accent-red);
}
.error-title {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 0.5rem;
color: var(--primary-text);
}
.error-description {
font-size: 1rem;
margin-bottom: 2rem;
max-width: 480px;
margin-left: auto;
margin-right: auto;
line-height: 1.6;
}
.retry-btn {
background-color: var(--accent-blue);
color: var(--primary-bg);
border: none;
padding: 0.75rem 1.5rem;
border-radius: 0.5rem;
font-size: 1rem;
cursor: pointer;
transition: all 0.2s ease;
display: inline-flex;
align-items: center;
gap: 0.5rem;
font-weight: 500;
}
.retry-btn:hover {
background-color: #4493f8;
transform: translateY(-1px);
}
.retry-btn .icon {
width: 1.25rem;
height: 1.25rem;
}
/* Empty State */
.empty-state {
text-align: center;
padding: 4rem 2rem;
color: var(--secondary-text);
}
.empty-icon {
font-size: 4rem;
margin-bottom: 1rem;
opacity: 0.5;
}
.empty-title {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 0.5rem;
color: var(--primary-text);
}
.empty-description {
font-size: 1rem;
max-width: 480px;
margin: 0 auto;
line-height: 1.6;
}
/* List View Styles */
.asset-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.asset-list-item {
background-color: var(--secondary-bg);
border: 1px solid var(--border-primary);
border-radius: 0.5rem;
padding: 1rem;
display: flex;
align-items: center;
gap: 1rem;
transition: all 0.2s ease;
cursor: pointer;
position: relative;
}
.asset-list-item:hover {
border-color: var(--accent-blue);
background-color: var(--hover-bg);
}
.asset-list-item:hover .asset-actions {
opacity: 1;
}
.asset-list-preview {
width: 64px;
height: 64px;
border-radius: 0.375rem;
background-color: var(--tertiary-bg);
border: 1px solid var(--border-secondary);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
overflow: hidden;
}
.asset-list-preview img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
.asset-list-preview .asset-placeholder {
font-size: 1.5rem;
}
.asset-list-info {
flex: 1;
min-width: 0;
}
.asset-list-title {
font-size: 1rem;
font-weight: 600;
margin-bottom: 0.25rem;
color: var(--primary-text);
}
.asset-list-path {
font-size: 0.875rem;
color: var(--secondary-text);
font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
word-break: break-all;
}
.asset-list-badge {
flex-shrink: 0;
}
/* Modal Styles */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
z-index: 50;
padding: 1rem;
overflow-y: auto;
}
.modal.show {
display: flex;
align-items: center;
justify-content: center;
}
.modal-content {
background-color: var(--secondary-bg);
border-radius: 0.75rem;
border: 1px solid var(--border-primary);
width: 100%;
max-width: 900px;
max-height: 95vh;
overflow: hidden;
animation: modalSlideIn 0.3s ease-out;
}
@keyframes modalSlideIn {
from {
opacity: 0;
transform: scale(0.9) translateY(-20px);
}
to {
opacity: 1;
transform: scale(1) translateY(0);
}
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 1.5rem;
border-bottom: 1px solid var(--border-primary);
}
.modal-title {
margin: 0;
font-size: 1.25rem;
font-weight: 600;
}
.modal-close {
background: none;
border: none;
color: var(--secondary-text);
cursor: pointer;
padding: 0.25rem;
border-radius: 0.25rem;
transition: color 0.2s ease;
}
.modal-close:hover {
color: var(--primary-text);
}
.modal-close .icon {
width: 1.5rem;
height: 1.5rem;
}
.modal-body {
padding: 1.5rem;
max-height: 75vh;
overflow: auto;
}
.modal-preview {
width: 100%;
max-height: 600px;
display: flex;
align-items: center;
justify-content: center;
background-color: var(--tertiary-bg);
border-radius: 0.5rem;
border: 1px solid var(--border-secondary);
margin-bottom: 1.5rem;
overflow: auto;
position: relative;
}
.modal-preview img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
.modal-preview .markdown-content {
padding: 1rem;
width: 100%;
max-height: 350px;
overflow-y: auto;
text-align: left;
}
.modal-preview .markdown-content pre {
background-color: var(--primary-bg);
padding: 1rem;
border-radius: 0.5rem;
overflow-x: auto;
border: 1px solid var(--border-primary);
}
.modal-preview .markdown-content code {
background-color: var(--primary-bg);