Repository navigation
Commit f8cf0a6
fix: improve mobile responsiveness for leaderboard website
- Remove inline styles from HTML that were overriding CSS media queries
(explorer-body, explorer-nav, explorer-main, two-col layout, selects)
- Move inline styles to proper CSS classes (two-col, two-col-about,
two-col-main, stats-row-2col, explorer-body, explorer-nav, explorer-main)
- Fix explorer section not stacking vertically on mobile due to inline
flex-direction:row and height:540px overriding the media query
- Fix two-col layout not collapsing on tablet (the leaderboard wrapper
div was not targeted by the old .two-col > .card selector)
- Add comprehensive mobile styles at 600px breakpoint:
- Smaller header/title fonts
- Reduced container padding
- Smaller card padding
- Full-width search input and select controls
- Stacked table controls layout
- Smaller table font-size and cell padding
- Compact buttons, code blocks, and query text
- Add extra-small screen (400px) breakpoint for single-column stats
- Add smooth scroll touch support for horizontally-scrolling tables
- Bump CSS cache version to v5
Co-authored-by: Shreya Shankar <shreyashankar@berkeley.edu>1 parent 28a2af3 commit f8cf0a6
2 files changed
Lines changed: 78 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
137 | | - | |
| 135 | + | |
| 136 | + | |
138 | 137 | | |
139 | 138 | | |
140 | | - | |
141 | | - | |
| 139 | + | |
| 140 | + | |
142 | 141 | | |
143 | 142 | | |
144 | 143 | | |
145 | | - | |
146 | 144 | | |
147 | 145 | | |
148 | 146 | | |
| |||
163 | 161 | | |
164 | 162 | | |
165 | 163 | | |
166 | | - | |
167 | | - | |
| 164 | + | |
| 165 | + | |
168 | 166 | | |
169 | 167 | | |
170 | | - | |
| 168 | + | |
171 | 169 | | |
172 | 170 | | |
173 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
40 | 61 | | |
41 | 62 | | |
42 | 63 | | |
| |||
131 | 152 | | |
132 | 153 | | |
133 | 154 | | |
134 | | - | |
| 155 | + | |
135 | 156 | | |
136 | 157 | | |
137 | 158 | | |
| |||
275 | 296 | | |
276 | 297 | | |
277 | 298 | | |
| 299 | + | |
278 | 300 | | |
279 | 301 | | |
280 | 302 | | |
281 | 303 | | |
282 | 304 | | |
283 | | - | |
284 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
285 | 308 | | |
286 | 309 | | |
287 | 310 | | |
| |||
459 | 482 | | |
460 | 483 | | |
461 | 484 | | |
462 | | - | |
463 | | - | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
464 | 488 | | |
465 | 489 | | |
466 | 490 | | |
467 | 491 | | |
468 | | - | |
469 | | - | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
470 | 507 | | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
471 | 511 | | |
472 | 512 | | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
473 | 531 | | |
0 commit comments