wop commited on
Commit
c714c54
·
verified ·
1 Parent(s): 03dc15a

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +61 -0
style.css CHANGED
@@ -431,6 +431,13 @@ tr.detail-row td { background: rgba(255,255,255,0.03); padding: 16px 18px; white
431
  }
432
 
433
 
 
 
 
 
 
 
 
434
  /* ---- Capability radar (replaces the old cat-table sliders) ---- */
435
  .capability-panel {
436
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
@@ -499,4 +506,58 @@ tr.detail-row td { background: rgba(255,255,255,0.03); padding: 16px 18px; white
499
  }
500
  .flag-dot {
501
  font-size: 0.72rem; cursor: help; opacity: 0.75;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
502
  }
 
431
  }
432
 
433
 
434
+ /* ============================================================
435
+ ADDITIONS ONLY — append this block to the end of style.css.
436
+ No existing rules are modified. Uses existing design tokens
437
+ (--ink, --muted, --line, --green, --accent, --card-bg, etc.)
438
+ so it matches the current look exactly.
439
+ ============================================================ */
440
+
441
  /* ---- Capability radar (replaces the old cat-table sliders) ---- */
442
  .capability-panel {
443
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
 
506
  }
507
  .flag-dot {
508
  font-size: 0.72rem; cursor: help; opacity: 0.75;
509
+ }
510
+
511
+ /* ---- Mobile fixes ----
512
+ The base stylesheet only ever wired up #model-cards for the <640px
513
+ breakpoint; #t2i-cards didn't exist yet, so on mobile the T2I table
514
+ (display:none below 640px) had no replacement and the whole section
515
+ effectively vanished. This makes #t2i-cards behave the same way
516
+ #model-cards already does, and makes both card lists tappable so rows
517
+ stay openable on mobile instead of only working with mouse hover/click
518
+ on the desktop table. */
519
+ @media (max-width: 640px) {
520
+ #t2i-cards { display: block; }
521
+ }
522
+ #t2i-cards { display: none; }
523
+
524
+ .m-card, .t2i-m-card {
525
+ cursor: pointer;
526
+ position: relative;
527
+ }
528
+ .m-card:active, .t2i-m-card:active {
529
+ background: rgba(255,255,255,0.04);
530
+ }
531
+ .m-card .m-card-top, .t2i-m-card .m-card-top {
532
+ display: flex; align-items: center; justify-content: space-between; gap: 8px;
533
+ }
534
+ .m-card .expand-hint, .t2i-m-card .expand-hint {
535
+ color: var(--muted-2); font-size: 0.7rem; transition: transform var(--t);
536
+ flex-shrink: 0;
537
+ }
538
+ .m-card.open .expand-hint, .t2i-m-card.open .expand-hint {
539
+ transform: rotate(90deg); color: var(--accent);
540
+ }
541
+ .m-card-detail, .t2i-m-card-detail {
542
+ margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line);
543
+ }
544
+
545
+ .t2i-m-card {
546
+ padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); transition: background var(--t);
547
+ }
548
+ .t2i-m-card:last-child { border-bottom: 0; }
549
+ .t2i-m-card-top a { color: var(--ink); font-weight: 600; font-size: 0.96rem; letter-spacing: -0.01em; }
550
+ .t2i-m-card-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 6px 0 10px; align-items: center; }
551
+ .t2i-m-card-meta .params, .t2i-m-card-meta .res, .t2i-m-card-meta .date {
552
+ color: var(--muted-2); font-size: 0.76rem; font-variant-numeric: tabular-nums;
553
+ }
554
+ .t2i-m-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 7px; }
555
+ .t2i-m-score { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px; }
556
+ .t2i-m-score .k { font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); font-weight: 500; margin-bottom: 2px; }
557
+ .t2i-m-score .v { font-size: 0.92rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
558
+ .t2i-m-score .v.best { color: var(--green); }
559
+
560
+ /* Composite-score column */
561
+ td.score.composite, .m-score.composite .v, .t2i-m-score.composite .v {
562
+ color: var(--accent-2);
563
  }