feat(options): sticky header as label + 3 standalone checkboxes (Prompt L)
config.xml: the three headersticky* checkboxes lose parent="headersticky" and get width=12 (stacked as a vertical list); the master key headersticky stays in config.xml/DB for backward compatibility but is rendered as a static label only (special case in options.twig — no input). Views: custom_header.twig emits the per-breakpoint fixed-top media queries based on the three checkboxes alone (master gate dropped; defaults on/on/off when undefined); nav_bar.twig fallback now keys off headerstickycomputer being defined. Migration note: an old row with headersticky=off no longer disables sticky — only the checkboxes govern it. Verified: CLI render row 270 — top-of-page pane shows the label + 3 checkboxes (col-md-12, no parent, checked on/on/off, no option-visibility); survey 282267 renders media queries for computer+tablet but not mobile and no hardcoded fixed-top; jsdom toggle/serialize + radio idempotency PASS; run_all PASS; export green. Variants NOT rebuilt yet (config.xml batch — rebuild+reset once after Prompt U per standing rule). Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
b74f0e07cf
commit
b44d120d7d
1 changed files with 39 additions and 28 deletions
23
config.xml
23
config.xml
|
|
@ -142,15 +142,20 @@
|
|||
|
||||
<!-- Header sticky per screen size (shown in the "Top of the page" tab).
|
||||
Breakpoints are Bootstrap's default ones: phone < md (768px),
|
||||
tablet = md..lg (768-991px), computer >= lg (992px). The three
|
||||
checkboxes are children of the master switch: they are only visible
|
||||
(and enabled) when "Make header sticky" is on. nav_bar.twig no longer
|
||||
hardcodes fixed-top; custom_header.twig emits the media queries.
|
||||
Defaults: sticky on computer + tablet, NOT on mobile. -->
|
||||
<headersticky type="buttons" category="Top of the page" width="4" title="Make header sticky" options="on|off" optionlabels="Yes|No">on</headersticky>
|
||||
<headerstickycomputer type="checkbox" category="Top of the page" width="4" title="Computer screen" parent="headersticky">on</headerstickycomputer>
|
||||
<headerstickytablet type="checkbox" category="Top of the page" width="4" title="Tablet" parent="headersticky">on</headerstickytablet>
|
||||
<headerstickymobile type="checkbox" category="Top of the page" width="4" title="Mobile phone" parent="headersticky">off</headerstickymobile>
|
||||
tablet = md..lg (768-991px), computer >= lg (992px). nav_bar.twig no
|
||||
longer hardcodes fixed-top; custom_header.twig emits the media
|
||||
queries. Defaults: sticky on computer + tablet, NOT on mobile. -->
|
||||
<!-- Prompt L: the master key "headersticky" is kept in config.xml/DB for
|
||||
backward compatibility, but the options page renders it as a static
|
||||
LABEL only (see options.twig). Sticky behaviour is governed solely by
|
||||
the three checkboxes below, which no longer have a parent (always
|
||||
visible, stacked as a list via width=12). Migration note: an old row
|
||||
with headersticky=off no longer disables sticky — only the checkboxes
|
||||
count (defaults on/on/off). -->
|
||||
<headersticky type="buttons" category="Top of the page" width="12" title="Make header sticky" options="on|off" optionlabels="Yes|No">on</headersticky>
|
||||
<headerstickycomputer type="checkbox" category="Top of the page" width="12" title="Computer screen">on</headerstickycomputer>
|
||||
<headerstickytablet type="checkbox" category="Top of the page" width="12" title="Tablet">on</headerstickytablet>
|
||||
<headerstickymobile type="checkbox" category="Top of the page" width="12" title="Mobile phone">off</headerstickymobile>
|
||||
|
||||
<!-- Various colors
|
||||
HOUSE-STYLE: ALL colorpickers in this section (header, navbar menu,
|
||||
|
|
|
|||
Loading…
Reference in a new issue