From ca2a722656791fbfb634ea95b893c85bcecc4efa Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Thu, 4 Jun 2026 09:59:09 -0400 Subject: [PATCH] docs: help icons on layout-picker buttons + book sub-surfaces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Each individual layout button now carries its own ⓘ so authors get straight-to-the-page help even before picking a mode. Same delegated click handler from the previous slice — the layout-tab's mode-switch click and the icon's docs-open click coexist because the docs handler stopPropagation's the event before the tab handler sees it. Layout-picker buttons (8): - Template tab: Case cover, Disc labels, Slide deck, Book. - Designer tab: Custom art, Slide, Pixel art, Disc design. Book sub-surfaces (4): - Pages / Cover toggle bar — opens the Book page. - Page editor top bar (book-page + book-master editing) — opens the Book page. - Chapter editor toolbar — opens the Book page. - Reader Mode header — opens the Book page. CSS: - .layoutTab .docsHelpIcon — smaller (.76rem) + reduced opacity by default; active state inverts colour to white-on-accent so the icon stays readable on a selected tab. Co-Authored-By: Claude Opus 4.7 --- src/index.html | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/src/index.html b/src/index.html index 273e7f9..d9ab76c 100644 --- a/src/index.html +++ b/src/index.html @@ -572,6 +572,12 @@ .appModeTab .docsHelpIcon:hover { color: #fff; } body:not(.dark) .appModeTab .docsHelpIcon { color: rgba(0,0,0,.4); } body:not(.dark) .appModeTab.active .docsHelpIcon { color: rgba(255,255,255,.85); } + /* Layout-picker buttons are tight + active state inverts to + white-on-accent, so the icon needs its own light/dark + contrast pairs. */ + .layoutTab .docsHelpIcon { font-size: .76rem; margin-left: 4px; opacity: .55; } + .layoutTab.active .docsHelpIcon { color: rgba(255,255,255,.85); opacity: 1; } + .layoutTab:hover .docsHelpIcon { opacity: 1; } /* Docs modal — Read-the-Docs-style two-pane layout. */ #docsModal .modalInner { @@ -3645,10 +3651,10 @@
Layout ⓘ
- - - - + + + +
@@ -3995,10 +4001,10 @@
Layout ⓘ
- - - - + + + +
@@ -4645,6 +4651,7 @@ + ⓘ Markdown autosaves to this book. Phase D1 publishes as a NIP-23 article. @@ -4670,6 +4677,7 @@
+ ⓘ 0 pages · 0 reflow
@@ -4830,6 +4838,7 @@ + ⓘ @@ -5587,6 +5596,7 @@
Book
+ ⓘ