Skip to content

Make the index page responsive, add dark mode#13447

Merged
svgeesus merged 1 commit intomainfrom
responsive-index
Feb 6, 2026
Merged

Make the index page responsive, add dark mode#13447
svgeesus merged 1 commit intomainfrom
responsive-index

Conversation

@sideshowbarker
Copy link
Member

@sideshowbarker sideshowbarker commented Feb 4, 2026

The mobile UX for the index page was … not great: Android's text autosizer thing produced inconsistent font sizes, links took up too much vertical space, and there was no dark-mode support. This PR fixes all of that.

  • Fix mobile rendering: add viewport meta tag and text-size-adjust — to stop Android's text autosizer thing from boosting .spec-links font sizes willy-nilly
  • Responsive mobile layout (< 640px): switch spec headers to CSS Grid, hide shortname, add tap-to-expand accordion with a chevron indicator thing, render links as pill buttons
  • Dark mode via prefers-color-scheme: dark with GitHub-dark-inspired palette covering all components
  • Prevent line breaks between the word “Level” and its number (non-breaking space)
  • Minor polish: activity dot tooltips, focus-visible outlines on sort buttons, 16px search input to prevent iOS auto-zoom

- Add viewport meta tag and text-size-adjust to fix Android font
  boosting that caused inconsistent text sizes on mobile
- Mobile layout (< 640px): CSS Grid header keeps title, date, and
  chevron in a clean row; tap-to-expand accordion reveals links as
  pill buttons; shortname hidden to save space
- Dark mode via prefers-color-scheme with GitHub-dark-inspired palette
- Non-breaking space between "Level" and number to prevent line breaks
- Activity dot tooltips, focus-visible outlines, iOS zoom prevention
@w3cbot

This comment was marked as off-topic.

@svgeesus svgeesus merged commit e2150b7 into main Feb 6, 2026
1 check passed
@svgeesus svgeesus deleted the responsive-index branch February 6, 2026 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants