TwoQuarks commited on
Commit
ecc16dd
·
verified ·
1 Parent(s): 3a7623c

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +103 -0
style.css CHANGED
@@ -408,3 +408,106 @@ footer{ display:none !important; }
408
  background: rgba(255,255,255,.14);
409
  border-radius: 999px;
410
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
408
  background: rgba(255,255,255,.14);
409
  border-radius: 999px;
410
  }
411
+ /* ============================================================
412
+ LAYOUT PATCH — center + compact cards + clean gallery
413
+ ============================================================ */
414
+
415
+ /* 1) Center everything with a max width */
416
+ #tqApp{
417
+ max-width: 980px;
418
+ margin: 0 auto;
419
+ padding-left: 18px;
420
+ padding-right: 18px;
421
+ }
422
+
423
+ /* 2) Make panels feel tighter */
424
+ .gradio-container .gr-panel,
425
+ .gradio-container .block,
426
+ .gradio-container .wrap{
427
+ padding: 12px !important;
428
+ }
429
+
430
+ /* 3) Headings spacing */
431
+ #tqApp h2{
432
+ margin-top: 6px !important;
433
+ margin-bottom: 10px !important;
434
+ }
435
+
436
+ /* 4) Make markdown paragraphs not too wide */
437
+ #tqApp .prose, #tqApp .markdown{
438
+ max-width: 860px;
439
+ }
440
+
441
+ /* 5) Center buttons + make them look like buttons */
442
+ #btn_down, #btn_strange{
443
+ margin: 10px auto 6px auto !important;
444
+ display: inline-flex !important;
445
+ }
446
+
447
+ #btn_down button, #btn_strange button{
448
+ min-width: 220px !important;
449
+ height: 44px !important;
450
+ padding: 10px 18px !important;
451
+ border-radius: 999px !important;
452
+ }
453
+
454
+ /* In case Gradio wraps button into a full-width row */
455
+ #btn_down, #btn_strange{
456
+ width: 100% !important;
457
+ display: flex !important;
458
+ justify-content: center !important;
459
+ }
460
+
461
+ /* 6) Slider: keep it centered and not mega wide */
462
+ #tqApp .gr-slider{
463
+ max-width: 860px !important;
464
+ margin: 0 auto !important;
465
+ }
466
+
467
+ /* 7) JSON status: make it compact */
468
+ #tqApp .json{
469
+ max-width: 860px !important;
470
+ margin: 0 auto !important;
471
+ }
472
+
473
+ /* 8) Gallery container centered */
474
+ #down_gallery, #strange_gallery{
475
+ max-width: 980px !important;
476
+ margin: 0 auto !important;
477
+ }
478
+
479
+ /* 9) Force a clean grid of small cards (until carousel is perfect) */
480
+ #down_gallery :is(ul, .grid, .wrap, .items),
481
+ #strange_gallery :is(ul, .grid, .wrap, .items){
482
+ display: grid !important;
483
+ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
484
+ gap: 14px !important;
485
+ align-items: start !important;
486
+ }
487
+
488
+ /* 10) Ensure thumbnails are same size and NOT circular */
489
+ #down_gallery img, #strange_gallery img{
490
+ width: 100% !important;
491
+ height: 160px !important;
492
+ object-fit: contain !important;
493
+ border-radius: 12px !important;
494
+ clip-path: none !important;
495
+ mask-image: none !important;
496
+ background: rgba(255,255,255,.02) !important;
497
+ }
498
+
499
+ /* 11) Card wrapper style */
500
+ #down_gallery :is(li, figure, .gallery-item, .thumbnail-item, .item, .card),
501
+ #strange_gallery :is(li, figure, .gallery-item, .thumbnail-item, .item, .card){
502
+ background: rgba(255,255,255,.03) !important;
503
+ border: 1px solid rgba(255,255,255,.10) !important;
504
+ border-radius: 14px !important;
505
+ padding: 10px !important;
506
+ overflow: hidden !important;
507
+ }
508
+
509
+ /* 12) Hide filenames/captions */
510
+ #down_gallery :is(figcaption, .caption, .filename),
511
+ #strange_gallery :is(figcaption, .caption, .filename){
512
+ display: none !important;
513
+ }