TwoQuarks commited on
Commit
cff31ba
Β·
verified Β·
1 Parent(s): d356f4e

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +70 -75
style.css CHANGED
@@ -16,53 +16,44 @@
16
  /* 2. DESIGN TOKENS */
17
  /* ─────────────────────────────────────────────────────────── */
18
  :root {
19
- /* Colors - Ultra Blue System */
20
  --ultra-blue: #3B82F6;
21
  --ultra-blue-bright: #60A5FA;
22
  --ultra-blue-deep: #1E40AF;
23
  --ultra-blue-glow: rgba(39, 100, 180, 0.35);
24
-
25
- /* Neutrals */
26
  --bg-base: #000000;
27
  --fg-primary: #FFFFFF;
28
  --fg-secondary: rgba(255, 255, 255, 0.65);
29
  --fg-tertiary: rgba(255, 255, 255, 0.40);
30
-
31
- /* Surfaces */
32
  --surface-glass: rgba(0, 0, 0, 0.30);
33
  --surface-card: rgba(255, 255, 255, 0.04);
34
  --surface-card-hover: rgba(255, 255, 255, 0.08);
35
  --surface-input: rgba(255, 255, 255, 0.03);
36
-
37
- /* Borders */
38
  --border-subtle: rgba(255, 255, 255, 0.08);
39
  --border-medium: rgba(255, 255, 255, 0.14);
40
  --border-accent: rgba(59, 130, 246, 0.35);
41
-
42
- /* Spacing System (8px base) */
43
- --space-xs: 0.5rem; /* 8px */
44
- --space-sm: 0.75rem; /* 12px */
45
- --space-md: 1rem; /* 16px */
46
- --space-lg: 1.5rem; /* 24px */
47
- --space-xl: 2rem; /* 32px */
48
- --space-2xl: 3rem; /* 48px */
49
-
50
- /* Radius */
51
  --radius-sm: 8px;
52
  --radius-md: 12px;
53
  --radius-lg: 16px;
54
  --radius-full: 999px;
55
-
56
- /* Typography */
57
  --font-body: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
58
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
59
-
60
- /* Transitions */
61
  --trans-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
62
  --trans-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
63
  --trans-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
64
-
65
- /* Z-index layers */
66
  --z-base: 1;
67
  --z-dropdown: 10;
68
  --z-sticky: 20;
@@ -97,7 +88,7 @@ body {
97
  }
98
 
99
  /* ─────────────────────────────────────────────────────────── */
100
- /* 4. QUANTUM PARTICLE FIELD (Ultra Blue) */
101
  /* ─────────────────────────────────────────────────────────── */
102
  #quantumField {
103
  position: fixed;
@@ -232,7 +223,7 @@ body {
232
  background: rgba(255, 255, 255, 0.02) !important;
233
  border: 1px solid var(--border-medium) !important;
234
  border-radius: var(--radius-full) !important;
235
- opacity: 0.75 !important;
236
  transition: all var(--trans-base) !important;
237
  }
238
 
@@ -286,12 +277,12 @@ body {
286
  .gradio-container .gr-button {
287
  padding: var(--space-sm) var(--space-lg) !important;
288
  font-size: 0.9375rem !important;
289
- font-weight: 500 !important;
290
  color: var(--fg-primary) !important;
291
- background: rgba(255, 255, 255, 0.02) !important;
292
  border: 1px solid var(--border-medium) !important;
293
  border-radius: var(--radius-full) !important;
294
- opacity: 0.40 !important;
295
  cursor: pointer !important;
296
  transition: all var(--trans-base) !important;
297
  }
@@ -299,24 +290,33 @@ body {
299
  .gradio-container button:hover:not(.gr-tab-nav button),
300
  .gradio-container .gr-button:hover {
301
  opacity: 1 !important;
302
- background: rgba(255, 255, 255, 0.08) !important;
303
  border-color: var(--border-accent) !important;
304
  box-shadow: 0 0 16px var(--ultra-blue-glow) !important;
305
  }
306
 
307
- .gradio-container button:active:not(.gr-tab-nav button) {
 
308
  transform: scale(0.98) !important;
309
  }
310
 
311
- /* Primary action button variant */
 
 
 
 
 
 
312
  .gradio-container button.primary,
313
  .gradio-container .gr-button-primary {
314
  background: var(--ultra-blue) !important;
315
  border-color: var(--ultra-blue-bright) !important;
316
  box-shadow: 0 4px 12px var(--ultra-blue-glow) !important;
 
317
  }
318
 
319
- .gradio-container button.primary:hover {
 
320
  background: var(--ultra-blue-bright) !important;
321
  box-shadow: 0 8px 24px var(--ultra-blue-glow) !important;
322
  }
@@ -334,6 +334,7 @@ body {
334
  overflow: hidden !important;
335
  border: 0.5px solid var(--border-subtle) !important;
336
  transition: all var(--trans-base) !important;
 
337
  }
338
 
339
  .gradio-container .gr-gallery .gr-image:hover {
@@ -342,23 +343,23 @@ body {
342
  transform: translateY(-2px) !important;
343
  }
344
 
345
- /* Image container sizing */
346
  .gradio-container .gr-image img,
347
- .gradio-container .gr-gallery img {
 
348
  width: 100% !important;
349
- height: auto !important;
350
- object-fit: inline-flex !important;
351
  display: block !important;
352
  }
353
 
354
- /* Grid layout for image outputs */
355
  .gradio-container .gr-image-container,
356
  .gradio-container [class*="image-container"] {
357
- aspect-ratio: 1 / 1;
358
- max-width: 40%;
359
- border-radius: var(--radius-md);
360
- overflow: hidden;
361
- background: var(--surface-card);
 
362
  }
363
 
364
  /* ─────────────────────────────────────────────────────────── */
@@ -366,7 +367,7 @@ body {
366
  /* ─────────────────────────────────────────────────────────── */
367
  .tq-carousel {
368
  position: relative;
369
- width: 40%;
370
  overflow: hidden;
371
  border-radius: var(--radius-lg);
372
  background: var(--surface-card);
@@ -377,42 +378,42 @@ body {
377
  display: flex;
378
  gap: var(--space-md);
379
  transition: transform var(--trans-slow);
 
380
  }
381
 
382
  .tq-carousel__item {
383
- flex: 0 0 auto;
384
- width: 20px;
385
- aspect-ratio: 1 / 1;
386
  border-radius: var(--radius-md);
387
  overflow: hidden;
388
  border: 1px solid var(--border-subtle);
389
  transition: all var(--trans-base);
 
390
  }
391
 
392
  .tq-carousel__item:hover {
393
  border-color: var(--ultra-blue);
394
  box-shadow: 0 6px 14px var(--ultra-blue-glow);
395
- transform: scale(0.5);
396
  }
397
 
398
  .tq-carousel__item img {
399
- width: 40%;
400
- height: 40%;
401
- object-fit: auto;
402
  display: block;
403
  }
404
 
405
- /* Carousel navigation */
406
  .tq-carousel__nav {
407
- position: center;
408
  top: 50%;
409
  transform: translateY(-50%);
410
- width: 20px;
411
- height: 20px;
412
  display: flex;
413
  align-items: center;
414
  justify-content: center;
415
- background: var(--surface-glass);
416
  backdrop-filter: blur(12px);
417
  border: 1px solid var(--border-medium);
418
  border-radius: 50%;
@@ -427,7 +428,7 @@ body {
427
  .tq-carousel__nav:hover {
428
  background: var(--ultra-blue-glow);
429
  border-color: var(--ultra-blue);
430
- box-shadow: 0 0 5px var(--ultra-blue-glow);
431
  }
432
 
433
  /* ─────────────────────────────────────────────────────────── */
@@ -448,7 +449,6 @@ body {
448
  line-height: 1.5 !important;
449
  }
450
 
451
- /* Code blocks */
452
  .gradio-container pre,
453
  .gradio-container code {
454
  font-family: var(--font-mono) !important;
@@ -500,23 +500,23 @@ body {
500
  --space-lg: 1rem;
501
  --space-xl: 1.5rem;
502
  }
503
-
504
  .gradio-container {
505
  padding: var(--space-md);
506
  }
507
-
508
  .tq-hero {
509
  padding: var(--space-md) var(--space-lg);
510
  }
511
-
512
  .tq-hero__brand {
513
  font-size: 1.25rem;
514
  }
515
-
516
  .tq-carousel__item {
517
- width: 220px;
518
  }
519
-
520
  .tq-pills {
521
  justify-content: center;
522
  }
@@ -524,12 +524,12 @@ body {
524
 
525
  @media (max-width: 280px) {
526
  .tq-carousel__item {
527
- width: 220px;
528
  }
529
-
530
  .tq-carousel__nav {
531
- width: 24px;
532
- height: 24px;
533
  }
534
  }
535
 
@@ -561,16 +561,13 @@ footer,
561
  display: none !important;
562
  }
563
 
564
- /* ============================================================
565
- TwoQuarks β€” Gallery as Carousel Strip (horizontal scroll)
566
- ============================================================ */
567
-
568
  #down_gallery, #strange_gallery {
569
  margin-top: 12px !important;
570
  }
571
 
572
- /* El contenedor interno de la galerΓ­a cambia segΓΊn versiΓ³n,
573
- por eso usamos selectores tolerantes */
574
  #down_gallery [class*="gallery"],
575
  #strange_gallery [class*="gallery"] {
576
  overflow-x: auto !important;
@@ -591,7 +588,6 @@ footer,
591
  gap: 12px !important;
592
  }
593
 
594
- /* Cada item = tile consistente */
595
  #down_gallery [role="listitem"],
596
  #strange_gallery [role="listitem"] {
597
  flex: 0 0 320px !important;
@@ -602,7 +598,6 @@ footer,
602
  border: 1px solid rgba(255,255,255,0.10) !important;
603
  }
604
 
605
- /* ImΓ‘genes: no deformar plots */
606
  #down_gallery img, #strange_gallery img {
607
  width: 100% !important;
608
  height: 240px !important;
 
16
  /* 2. DESIGN TOKENS */
17
  /* ─────────────────────────────────────────────────────────── */
18
  :root {
 
19
  --ultra-blue: #3B82F6;
20
  --ultra-blue-bright: #60A5FA;
21
  --ultra-blue-deep: #1E40AF;
22
  --ultra-blue-glow: rgba(39, 100, 180, 0.35);
23
+
 
24
  --bg-base: #000000;
25
  --fg-primary: #FFFFFF;
26
  --fg-secondary: rgba(255, 255, 255, 0.65);
27
  --fg-tertiary: rgba(255, 255, 255, 0.40);
28
+
 
29
  --surface-glass: rgba(0, 0, 0, 0.30);
30
  --surface-card: rgba(255, 255, 255, 0.04);
31
  --surface-card-hover: rgba(255, 255, 255, 0.08);
32
  --surface-input: rgba(255, 255, 255, 0.03);
33
+
 
34
  --border-subtle: rgba(255, 255, 255, 0.08);
35
  --border-medium: rgba(255, 255, 255, 0.14);
36
  --border-accent: rgba(59, 130, 246, 0.35);
37
+
38
+ --space-xs: 0.5rem;
39
+ --space-sm: 0.75rem;
40
+ --space-md: 1rem;
41
+ --space-lg: 1.5rem;
42
+ --space-xl: 2rem;
43
+ --space-2xl: 3rem;
44
+
 
 
45
  --radius-sm: 8px;
46
  --radius-md: 12px;
47
  --radius-lg: 16px;
48
  --radius-full: 999px;
49
+
 
50
  --font-body: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
51
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
52
+
 
53
  --trans-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
54
  --trans-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
55
  --trans-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
56
+
 
57
  --z-base: 1;
58
  --z-dropdown: 10;
59
  --z-sticky: 20;
 
88
  }
89
 
90
  /* ─────────────────────────────────────────────────────────── */
91
+ /* 4. QUANTUM PARTICLE FIELD */
92
  /* ─────────────────────────────────────────────────────────── */
93
  #quantumField {
94
  position: fixed;
 
223
  background: rgba(255, 255, 255, 0.02) !important;
224
  border: 1px solid var(--border-medium) !important;
225
  border-radius: var(--radius-full) !important;
226
+ opacity: 0.85 !important;
227
  transition: all var(--trans-base) !important;
228
  }
229
 
 
277
  .gradio-container .gr-button {
278
  padding: var(--space-sm) var(--space-lg) !important;
279
  font-size: 0.9375rem !important;
280
+ font-weight: 600 !important;
281
  color: var(--fg-primary) !important;
282
+ background: rgba(255, 255, 255, 0.03) !important;
283
  border: 1px solid var(--border-medium) !important;
284
  border-radius: var(--radius-full) !important;
285
+ opacity: 0.92 !important;
286
  cursor: pointer !important;
287
  transition: all var(--trans-base) !important;
288
  }
 
290
  .gradio-container button:hover:not(.gr-tab-nav button),
291
  .gradio-container .gr-button:hover {
292
  opacity: 1 !important;
293
+ background: rgba(255, 255, 255, 0.10) !important;
294
  border-color: var(--border-accent) !important;
295
  box-shadow: 0 0 16px var(--ultra-blue-glow) !important;
296
  }
297
 
298
+ .gradio-container button:active:not(.gr-tab-nav button),
299
+ .gradio-container .gr-button:active {
300
  transform: scale(0.98) !important;
301
  }
302
 
303
+ .gradio-container button:disabled,
304
+ .gradio-container .gr-button:disabled {
305
+ opacity: 0.35 !important;
306
+ cursor: not-allowed !important;
307
+ filter: grayscale(0.2) !important;
308
+ }
309
+
310
  .gradio-container button.primary,
311
  .gradio-container .gr-button-primary {
312
  background: var(--ultra-blue) !important;
313
  border-color: var(--ultra-blue-bright) !important;
314
  box-shadow: 0 4px 12px var(--ultra-blue-glow) !important;
315
+ opacity: 1 !important;
316
  }
317
 
318
+ .gradio-container button.primary:hover,
319
+ .gradio-container .gr-button-primary:hover {
320
  background: var(--ultra-blue-bright) !important;
321
  box-shadow: 0 8px 24px var(--ultra-blue-glow) !important;
322
  }
 
334
  overflow: hidden !important;
335
  border: 0.5px solid var(--border-subtle) !important;
336
  transition: all var(--trans-base) !important;
337
+ background: rgba(255, 255, 255, 0.03) !important;
338
  }
339
 
340
  .gradio-container .gr-gallery .gr-image:hover {
 
343
  transform: translateY(-2px) !important;
344
  }
345
 
 
346
  .gradio-container .gr-image img,
347
+ .gradio-container .gr-gallery img,
348
+ .gradio-container img {
349
  width: 100% !important;
350
+ height: 100% !important;
351
+ object-fit: contain !important;
352
  display: block !important;
353
  }
354
 
 
355
  .gradio-container .gr-image-container,
356
  .gradio-container [class*="image-container"] {
357
+ aspect-ratio: auto !important;
358
+ max-width: none !important;
359
+ width: 100% !important;
360
+ border-radius: var(--radius-md) !important;
361
+ overflow: hidden !important;
362
+ background: var(--surface-card) !important;
363
  }
364
 
365
  /* ─────────────────────────────────────────────────────────── */
 
367
  /* ─────────────────────────────────────────────────────────── */
368
  .tq-carousel {
369
  position: relative;
370
+ width: 100%;
371
  overflow: hidden;
372
  border-radius: var(--radius-lg);
373
  background: var(--surface-card);
 
378
  display: flex;
379
  gap: var(--space-md);
380
  transition: transform var(--trans-slow);
381
+ will-change: transform;
382
  }
383
 
384
  .tq-carousel__item {
385
+ flex: 0 0 280px;
386
+ aspect-ratio: 16 / 10;
 
387
  border-radius: var(--radius-md);
388
  overflow: hidden;
389
  border: 1px solid var(--border-subtle);
390
  transition: all var(--trans-base);
391
+ background: rgba(255, 255, 255, 0.03);
392
  }
393
 
394
  .tq-carousel__item:hover {
395
  border-color: var(--ultra-blue);
396
  box-shadow: 0 6px 14px var(--ultra-blue-glow);
397
+ transform: translateY(-2px) scale(1.04);
398
  }
399
 
400
  .tq-carousel__item img {
401
+ width: 100%;
402
+ height: 100%;
403
+ object-fit: cover;
404
  display: block;
405
  }
406
 
 
407
  .tq-carousel__nav {
408
+ position: absolute;
409
  top: 50%;
410
  transform: translateY(-50%);
411
+ width: 38px;
412
+ height: 38px;
413
  display: flex;
414
  align-items: center;
415
  justify-content: center;
416
+ background: rgba(0, 0, 0, 0.35);
417
  backdrop-filter: blur(12px);
418
  border: 1px solid var(--border-medium);
419
  border-radius: 50%;
 
428
  .tq-carousel__nav:hover {
429
  background: var(--ultra-blue-glow);
430
  border-color: var(--ultra-blue);
431
+ box-shadow: 0 0 10px var(--ultra-blue-glow);
432
  }
433
 
434
  /* ─────────────────────────────────────────────────────────── */
 
449
  line-height: 1.5 !important;
450
  }
451
 
 
452
  .gradio-container pre,
453
  .gradio-container code {
454
  font-family: var(--font-mono) !important;
 
500
  --space-lg: 1rem;
501
  --space-xl: 1.5rem;
502
  }
503
+
504
  .gradio-container {
505
  padding: var(--space-md);
506
  }
507
+
508
  .tq-hero {
509
  padding: var(--space-md) var(--space-lg);
510
  }
511
+
512
  .tq-hero__brand {
513
  font-size: 1.25rem;
514
  }
515
+
516
  .tq-carousel__item {
517
+ flex-basis: 240px;
518
  }
519
+
520
  .tq-pills {
521
  justify-content: center;
522
  }
 
524
 
525
  @media (max-width: 280px) {
526
  .tq-carousel__item {
527
+ flex-basis: 220px;
528
  }
529
+
530
  .tq-carousel__nav {
531
+ width: 34px;
532
+ height: 34px;
533
  }
534
  }
535
 
 
561
  display: none !important;
562
  }
563
 
564
+ /* ─────────────────────────────────────────────────────────── */
565
+ /* 20. GALLERY AS CAROUSEL STRIP */
566
+ /* ─────────────────────────────────────────────────────────── */
 
567
  #down_gallery, #strange_gallery {
568
  margin-top: 12px !important;
569
  }
570
 
 
 
571
  #down_gallery [class*="gallery"],
572
  #strange_gallery [class*="gallery"] {
573
  overflow-x: auto !important;
 
588
  gap: 12px !important;
589
  }
590
 
 
591
  #down_gallery [role="listitem"],
592
  #strange_gallery [role="listitem"] {
593
  flex: 0 0 320px !important;
 
598
  border: 1px solid rgba(255,255,255,0.10) !important;
599
  }
600
 
 
601
  #down_gallery img, #strange_gallery img {
602
  width: 100% !important;
603
  height: 240px !important;