From c93eca80afbf0b9faaa334e5d6cdd611dcfb1789 Mon Sep 17 00:00:00 2001 From: Orkuncakilkaya Date: Sat, 29 Aug 2026 18:22:55 +0300 Subject: [PATCH] docs(site): mobile-first revamp of all pages Rewrite both stylesheets mobile-first (base = phone; @media min-width progressively enhances) and add a responsive nav. - Hamburger menu on small screens: links collapse into a clean, uniform dropdown list (plain rows + separators, no out-of-place boxed buttons); full inline nav with boxed CTA returns at >=720px. Auto-wired for every page. - Fix horizontal-overflow root causes: min-width:0 on grid/flex code containers, pre/sig scroll internally, long names wrap (overflow-wrap). 0 page overflow on every page type at 375px. - Stack layouts on mobile: single-column hero/features/steps/index grid, column parameter cards, 2-col color swatches; multi-column returns on wider screens. Reduced hero/section padding; fluid clamp() headings. - Hover cards gated to hover-capable devices so a tap just navigates. - Desktop layout preserved (verified at 1280px: inline nav, 2-col hero, 3-col features, no regression). Verified in-browser at 375px and 1280px across landing, API index, item (method/keyword/annotation/phase), namespace overview, and color pages. Co-Authored-By: Claude Opus 4.8 --- tools/docgen/assets/index.tmpl.html | 1 + tools/docgen/assets/item.css | 173 ++++++++------ tools/docgen/assets/ludic-highlight.tmpl.js | 22 +- tools/docgen/assets/site.css | 249 ++++++++++---------- tools/docgen/gen.py | 1 + 5 files changed, 247 insertions(+), 199 deletions(-) diff --git a/tools/docgen/assets/index.tmpl.html b/tools/docgen/assets/index.tmpl.html index a56886cb..c28f7a60 100644 --- a/tools/docgen/assets/index.tmpl.html +++ b/tools/docgen/assets/index.tmpl.html @@ -19,6 +19,7 @@