fix(options): keep navbarfontcolorcustom in column 2, full-width swatch chips
The new navbarfontcolorcustom picker fell into the generic 'rest' slot of the Top-of-the-page layout, which opened a NEW col-md-4 — so the picker landed in column 3 next to the sticky checkboxes and left the divs unbalanced. Map the key to slot h2 so it stays in column 2 under the navbarfontcolor dropdown, rendered col-12 (full column width); column 3 is the sticky block again and the pane markup is balanced (89/89 divs). The swatch chips under the dropdown were tiny inline squares — make the chips row full column width with taller flex chips showing the hex value (options.js chip.text). OPTIONS_JS_TOKEN bumped to 20261126.2 (options.js changed). Layout pinned by jsdom assertions (picker in the same col-md-4 as the dropdown, wrapper col-12); suite 6/6, export 0. Variants intentionally not rebuilt (owner: deferred). Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
f2ebf24270
commit
dc27d63de5
3 changed files with 18 additions and 8 deletions
|
|
@ -233,21 +233,29 @@ div.qvideo .question-valid-container {
|
||||||
opacity: 0.55;
|
opacity: 0.55;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Full column width: the chips row sits in its own block under the dropdown
|
||||||
|
(sel.after(chips) in options.js) and stretches to the column's full width. */
|
||||||
.color-mode-chips {
|
.color-mode-chips {
|
||||||
display: inline-flex;
|
display: flex;
|
||||||
gap: 0.25rem;
|
width: 100%;
|
||||||
margin-left: 0.5rem;
|
gap: 0.35rem;
|
||||||
vertical-align: middle;
|
margin-top: 0.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.color-chip {
|
.color-chip {
|
||||||
width: 1.1rem;
|
flex: 1 1 0;
|
||||||
height: 1.1rem;
|
height: 1.6rem;
|
||||||
padding: 0;
|
padding: 0 0.2rem;
|
||||||
border: 1px solid rgba(0, 0, 0, 0.35);
|
border: 1px solid rgba(0, 0, 0, 0.35);
|
||||||
border-radius: 0.25rem;
|
border-radius: 0.25rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
color: #fff;
|
||||||
|
text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
|
||||||
|
font-size: 0.65rem;
|
||||||
|
line-height: 1;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.color-chip.active {
|
.color-chip.active {
|
||||||
|
|
|
||||||
|
|
@ -793,6 +793,7 @@ var ThemeOptions = function () {
|
||||||
var mode = String(chip.data('mode'));
|
var mode = String(chip.data('mode'));
|
||||||
var c = currentColor(presets[mode]);
|
var c = currentColor(presets[mode]);
|
||||||
chip.css('background', c || 'transparent');
|
chip.css('background', c || 'transparent');
|
||||||
|
chip.text(c || '');
|
||||||
chip.attr('title', mode + (c ? ' [' + c + ']' : ''));
|
chip.attr('title', mode + (c ? ' [' + c + ']' : ''));
|
||||||
chip.attr('aria-label', chip.attr('title'));
|
chip.attr('aria-label', chip.attr('title'));
|
||||||
chip.toggleClass('active', String(sel.val()) === mode);
|
chip.toggleClass('active', String(sel.val()) === mode);
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@
|
||||||
heuristically cached copy (the file has only Last-Modified/ETag, no Cache-Control).
|
heuristically cached copy (the file has only Last-Modified/ETag, no Cache-Control).
|
||||||
Re-register it with a version token: bump OPTIONS_JS_TOKEN below whenever
|
Re-register it with a version token: bump OPTIONS_JS_TOKEN below whenever
|
||||||
options/options.js changes, so every browser fetches the new file once. #}
|
options/options.js changes, so every browser fetches the new file once. #}
|
||||||
{% set OPTIONS_JS_TOKEN = '20261126.1' %}
|
{% set OPTIONS_JS_TOKEN = '20261126.2' %}
|
||||||
{{ unregisterScriptFile(optionsPath ~ '/options.js') }}
|
{{ unregisterScriptFile(optionsPath ~ '/options.js') }}
|
||||||
{{ registerScriptFile(optionsPath ~ '/options.js?v=' ~ OPTIONS_JS_TOKEN, 'POS_END') }}
|
{{ registerScriptFile(optionsPath ~ '/options.js?v=' ~ OPTIONS_JS_TOKEN, 'POS_END') }}
|
||||||
|
|
||||||
|
|
@ -285,6 +285,7 @@
|
||||||
{% elseif key == 'headerbackgroundcolor' %}{% set fSlot = 'h1' %}
|
{% elseif key == 'headerbackgroundcolor' %}{% set fSlot = 'h1' %}
|
||||||
{% elseif key == 'headerfont' %}{% set fSlot = 'hf' %}
|
{% elseif key == 'headerfont' %}{% set fSlot = 'hf' %}
|
||||||
{% elseif key == 'navbarfontcolor' %}{% set fSlot = 'h2' %}
|
{% elseif key == 'navbarfontcolor' %}{% set fSlot = 'h2' %}
|
||||||
|
{% elseif key == 'navbarfontcolorcustom' %}{% set fSlot = 'h2' %}
|
||||||
{% elseif key in aTopStickyKeys %}{% set fSlot = 'h3' %}
|
{% elseif key in aTopStickyKeys %}{% set fSlot = 'h3' %}
|
||||||
{% elseif key == 'progressbarposition' %}{% set fSlot = 'ppos' %}
|
{% elseif key == 'progressbarposition' %}{% set fSlot = 'ppos' %}
|
||||||
{% elseif key == 'progressbarfont' %}{% set fSlot = 'pfont' %}
|
{% elseif key == 'progressbarfont' %}{% set fSlot = 'pfont' %}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue