Reference in New Issue
Block a user
Delete Branch "feat/mobile-retheme"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Consolidated mobile + retheme work (design: #719). Integration branch, ships dev → rc → main.
This PR = baseline drop-in for on-dev build verification. A follow-up commit will add the full Bootstrap-component mobile rewrite (nav→offcanvas, settings→drawer, wide tables→
.table-responsive).Included (4 signed commits)
theme-mokogit-{light,dark}.csstoken values to mokoonyx (dark#0e1318/#151b22/#2b323b; light accent#aec5f5+ black text on accent-filled buttons) + MokoOnyx app-chrome layer inmokogit-brand.css.successlevel +showSuccessToast+ unit test;flash-toast.tsmirrors server.flash-messagebanners into aria-live toasts (no-JS banner fallback preserved).#mokogit-fab: desktop sidebar-corner FAB → mobile collapse-into-tab → login in-card bar; refactors theme-toggle/a11y-menu to mountable controls; removes navbar toggles (keeps CSRF theme form). Fixes a11y being unreachable <768px.web_src/{css,js}/vendor/bootstrap), loaded before the Fomantic modules;mokogit-mobile.css(diffs, nav, tables, settings, 44px touch targets);index.css/index.tswiring.Verification notes
vitebuild is not possible on the exFAT dev drive (pnpm symlinks unsupported) — this merge is the build check via CI/Docker.https://claude.ai/code/session_01D5Zxu4xRRGoh9etzgShP4P
Retune theme-mokogit-{light,dark}.css token VALUES to the MokoAi mokoonyx palette (dark bg #0e1318 / card #151b22 / border #2b323b / text #e6ebf1; light accent #aec5f5 with black text on accent-filled buttons). Extend mokogit-brand.css with a MokoOnyx app-chrome layer (navbar, settings sidebars, cards, tables, buttons, dropdowns, form focus ring) — all via theme vars so light/dark follow automatically. Authored-by: Moko Consulting Claude-Session: https://claude.ai/code/session_01D5Zxu4xRRGoh9etzgShP4PNew mokogit-fab.{ts,css}: a sidebar-corner FAB hosting the light/dark+AUTO theme toggle and the a11y toolbar. On mobile (<=767.98px) it collapses into a labeled universal-access tab whose panel emerges from the tab (getBoundingClientRect), closes on tap-outside/Escape; on login it relocates into the auth card as a flush bottom bar. Refactors theme-toggle.ts/a11y-menu.ts to expose mountable controls (shared state, localStorage preserved) and removes the superseded navbar toggles (hidden CSRF theme form kept so signed-in theme POST still works). Fixes a11y being unreachable on phones (navbar-right was display:none <768px). Authored-by: Moko Consulting Claude-Session: https://claude.ai/code/session_01D5Zxu4xRRGoh9etzgShP4PVendor Bootstrap 5.3.3 (MIT) CSS + JS bundle into web_src/{css,js}/vendor/bootstrap (exFAT-safe; no node_modules symlink dependency). Load bootstrap.min.css BEFORE the fomantic replacements so Fomantic overrides Reboot on desktop while Bootstrap grid + responsive utilities power the mobile layer; import the JS bundle (incl. Popper) in index.ts. Add mokogit-mobile.css (diffs, nav, tables, settings drawer, 44px touch targets) targeting Gitea selectors. Wire index.css/index.ts: import mokogit-fab.css + mokogit-mobile.css, and replace initThemeToggle/initA11yMenu with initMokogitFab + initFlashToast. Authored-by: Moko Consulting Claude-Session: https://claude.ai/code/session_01D5Zxu4xRRGoh9etzgShP4P