lvwerra HF Staff commited on
Commit
c20e9bf
·
verified ·
1 Parent(s): 0377380

intro-row: cap subtitle at 720px; push stats to the right edge with space-between

Browse files
Files changed (1) hide show
  1. static/index.html +6 -3
static/index.html CHANGED
@@ -55,16 +55,19 @@
55
  color: var(--muted);
56
  }
57
 
58
- /* Subtitle on the left, 2x2 stats on the right. */
 
 
59
  .intro-row {
60
  display: grid;
61
- grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
 
62
  gap: 28px;
63
  align-items: start;
64
  margin-top: 10px;
65
  }
66
  @media (max-width: 980px) {
67
- .intro-row { grid-template-columns: 1fr; }
68
  }
69
  .subtitle a {
70
  color: var(--accent);
 
55
  color: var(--muted);
56
  }
57
 
58
+ /* Subtitle on the left (capped at a readable width), 2x2 stats anchored
59
+ to the right edge. On wide screens this leaves a gutter of whitespace
60
+ between the two; on narrow screens the row collapses below 980px. */
61
  .intro-row {
62
  display: grid;
63
+ grid-template-columns: minmax(0, 720px) auto;
64
+ justify-content: space-between;
65
  gap: 28px;
66
  align-items: start;
67
  margin-top: 10px;
68
  }
69
  @media (max-width: 980px) {
70
+ .intro-row { grid-template-columns: 1fr; justify-content: stretch; }
71
  }
72
  .subtitle a {
73
  color: var(--accent);