2026-06-17 10:06:07 +02:00
|
|
|
{#
|
|
|
|
|
LimeSurvey
|
|
|
|
|
Copyright (C) 2007-2017 The LimeSurvey Project Team / Louis Gac
|
|
|
|
|
All rights reserved.
|
|
|
|
|
License: GNU/GPL License v2 or later, see LICENSE.php
|
|
|
|
|
LimeSurvey is free software. This version may have been modified pursuant
|
|
|
|
|
to the GNU General Public License, and as distributed it includes or
|
|
|
|
|
is derivative of works licensed under the GNU General Public License or
|
|
|
|
|
other free or open source software licenses.
|
|
|
|
|
See COPYRIGHT.php for copyright notices and details.
|
|
|
|
|
|
|
|
|
|
(¯`·._.·(¯`·._.· Custom Header ·._.·´¯)·._.·´¯)
|
|
|
|
|
|
|
|
|
|
If you extend a template, and want to add custom headers (js, css, scripts, meta etc), you'd rather do it here.
|
|
|
|
|
#}
|
|
|
|
|
|
|
|
|
|
{# Custom logo option #}
|
|
|
|
|
{# Custom backgroud option #}
|
feat(options): roll the color-chooser scheme out to 4 more options (row 135)
The experimental color-chooser (mode dropdown + swatch chips + custom picker,
previously only navbarfontcolor) now also covers, with the owner-specified
defaults:
- headerbackgroundcolor — default "Default background color" (slot h1)
- progressbarcolor — COLUMN 1 of the progress colors row (was col 2), default Color 1
- progressbarbackgroundcolor — COLUMN 2 (was col 1), default Default background color
- progressbarfontcolor — column 3, default Default font color, with an extra tip
underneath: "Make this font color the same color as the color of the progress
bar when you do not want to see the progress in %."
Each option is a dropdown (default|defaultbackgroundcolor|color1|color2|color3|
other) whose own default carries data-default="1" + [ ] in config.xml, plus a
<key>custom colorpicker child (parent, disable-mode, data-keep-value). options.js
generalized navbarColorModeUI to colorModeUI(key) over aColorChooserKeys with
shared presets, one delegated change handler for select.selector_color_mode, and
per-key legacy hex migration (stored hex -> mode "other" + hex into the custom
child). custom_header.twig resolves the modes via a local cm() macro (import
_self, same pattern as nav_bar.twig); raw hex passes through. build.php migrates
legacy hex values in variant jsons for all 5 chooser keys. OPTIONS_JS_TOKEN ->
20261126.14. Verified: render tc=618 (all 5 selects with per-option [ ] default,
progress row col order, tip present, divs balanced, options.js?v=20261126.14),
jsdom 7/7 incl. new options_color_choosers.test.js (5 choosers, legacy migration,
chips, layout, tip) and the navbar test re-scoped to its own chips; live survey
282267 with legacy hex AND with modes (color2 -> #888888, defaultbackgroundcolor
-> #ffffff; DB row restored); export exit 0; build.php lints. Variants not
rebuilt (deferred).
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 19:14:47 +01:00
|
|
|
|
2026-11-26 20:57:07 +01:00
|
|
|
{# Row 135/149: resolve a color-chooser MODE value to the effective color — used for
|
|
|
|
|
headerbackgroundcolor, the progress bar colors and bodybackgroundcolor below
|
|
|
|
|
(navbarfontcolor keeps its own inline expression further down). Modes: default|defaultbackgroundcolor|
|
feat(options): roll the color-chooser scheme out to 4 more options (row 135)
The experimental color-chooser (mode dropdown + swatch chips + custom picker,
previously only navbarfontcolor) now also covers, with the owner-specified
defaults:
- headerbackgroundcolor — default "Default background color" (slot h1)
- progressbarcolor — COLUMN 1 of the progress colors row (was col 2), default Color 1
- progressbarbackgroundcolor — COLUMN 2 (was col 1), default Default background color
- progressbarfontcolor — column 3, default Default font color, with an extra tip
underneath: "Make this font color the same color as the color of the progress
bar when you do not want to see the progress in %."
Each option is a dropdown (default|defaultbackgroundcolor|color1|color2|color3|
other) whose own default carries data-default="1" + [ ] in config.xml, plus a
<key>custom colorpicker child (parent, disable-mode, data-keep-value). options.js
generalized navbarColorModeUI to colorModeUI(key) over aColorChooserKeys with
shared presets, one delegated change handler for select.selector_color_mode, and
per-key legacy hex migration (stored hex -> mode "other" + hex into the custom
child). custom_header.twig resolves the modes via a local cm() macro (import
_self, same pattern as nav_bar.twig); raw hex passes through. build.php migrates
legacy hex values in variant jsons for all 5 chooser keys. OPTIONS_JS_TOKEN ->
20261126.14. Verified: render tc=618 (all 5 selects with per-option [ ] default,
progress row col order, tip present, divs balanced, options.js?v=20261126.14),
jsdom 7/7 incl. new options_color_choosers.test.js (5 choosers, legacy migration,
chips, layout, tip) and the navbar test re-scoped to its own chips; live survey
282267 with legacy hex AND with modes (color2 -> #888888, defaultbackgroundcolor
-> #ffffff; DB row restored); export exit 0; build.php lints. Variants not
rebuilt (deferred).
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 19:14:47 +01:00
|
|
|
color1|color2|color3|other, or a raw hex (legacy stored value) which passes
|
|
|
|
|
through directly. #}
|
|
|
|
|
{% macro cm(mode, custom, opts) -%}
|
|
|
|
|
{%- set m = mode|default('') -%}
|
|
|
|
|
{{- m matches '/^#[0-9a-fA-F]{3,8}$/' ? m : (m == 'color1' ? opts.primarycolor|default('') : (m == 'color2' ? opts.secondarycolor|default('') : (m == 'color3' ? opts.tertiarycolor|default('') : (m == 'defaultbackgroundcolor' ? opts.defaultbackgroundcolor|default('') : (m == 'other' ? custom|default('') : opts.fontcolor|default('')))))) -}}
|
|
|
|
|
{%- endmacro %}
|
|
|
|
|
{% import _self as cmm %}
|
|
|
|
|
|
2026-06-17 10:06:07 +02:00
|
|
|
<style>
|
|
|
|
|
html, body {
|
|
|
|
|
font-size: {{ aSurveyInfo.options.fontsize }} !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{% if (aSurveyInfo.options.backgroundimage == "on" and imageSrc(aSurveyInfo.options.backgroundimagefile )) %}
|
|
|
|
|
body {
|
|
|
|
|
background-image: url({{ imageSrc(aSurveyInfo.options.backgroundimagefile ) }});
|
|
|
|
|
background-attachment: {{ aSurveyInfo.options.backgroundimagefixed }};
|
|
|
|
|
background-size: {{ aSurveyInfo.options.backgroundimagedisplay }};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
body .top-container {
|
|
|
|
|
background-color: rgba(236, 240, 241, 0.2);
|
|
|
|
|
}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
body {
|
|
|
|
|
padding-bottom: 10px;
|
|
|
|
|
/*padding-top: 60px;!* now is redefine in JS to fit any title length *!*/
|
2026-11-26 20:57:07 +01:00
|
|
|
background-color:{{ cmm.cm(aSurveyInfo.options.bodybackgroundcolor|default('defaultbackgroundcolor'), aSurveyInfo.options.bodybackgroundcolorcustom|default(''), aSurveyInfo.options) }} ;
|
2026-06-17 10:06:07 +02:00
|
|
|
color: {{ aSurveyInfo.options.fontcolor }};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.table {
|
|
|
|
|
color: {{ aSurveyInfo.options.fontcolor }};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.question-title-container {
|
|
|
|
|
font-size: {{ aSurveyInfo.options.questiontitlefontsize }};
|
|
|
|
|
font-weight: {{ aSurveyInfo.options.questiontitlefontweight }};
|
|
|
|
|
background: {{ aSurveyInfo.options.questiontitlebackgroundcolor }};
|
|
|
|
|
color: {{ aSurveyInfo.options.questiontitlefontcolor }};
|
|
|
|
|
}
|
|
|
|
|
|
2026-11-27 02:50:06 +01:00
|
|
|
{# Row 157: group title/description font OPTIONS (config.xml <el>fontoptions:
|
|
|
|
|
normal|bold|italic|bolditalic) mapped to font-weight + font-style. Until the
|
|
|
|
|
theme is reset, a legacy stored <el>fontweight ("400"/"700") is mapped onto
|
|
|
|
|
the new values; the defaults keep the old look (title bold, description normal). #}
|
|
|
|
|
{% set sGroupTitleFontOptions = aSurveyInfo.options.grouptitlefontoptions|default(aSurveyInfo.options.grouptitlefontweight|default('700') == '700' ? 'bold' : 'normal') %}
|
|
|
|
|
{% set sGroupDescFontOptions = aSurveyInfo.options.groupdescriptionfontoptions|default(aSurveyInfo.options.groupdescriptionfontweight|default('400') == '700' ? 'bold' : 'normal') %}
|
2026-06-17 10:06:07 +02:00
|
|
|
.group-title {
|
|
|
|
|
font-size: {{ aSurveyInfo.options.grouptitlefontsize }};
|
2026-11-27 02:50:06 +01:00
|
|
|
font-weight: {{ sGroupTitleFontOptions == 'bold' or sGroupTitleFontOptions == 'bolditalic' ? '700' : '400' }};
|
|
|
|
|
font-style: {{ sGroupTitleFontOptions == 'italic' or sGroupTitleFontOptions == 'bolditalic' ? 'italic' : 'normal' }};
|
2026-06-17 10:06:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.group-description {
|
|
|
|
|
font-size: {{ aSurveyInfo.options.groupdescriptionfontsize }};
|
2026-11-27 02:50:06 +01:00
|
|
|
font-weight: {{ sGroupDescFontOptions == 'bold' or sGroupDescFontOptions == 'bolditalic' ? '700' : '400' }};
|
|
|
|
|
font-style: {{ sGroupDescFontOptions == 'italic' or sGroupDescFontOptions == 'bolditalic' ? 'italic' : 'normal' }};
|
2026-06-17 10:06:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.privacy-block, .privacy .form-check {
|
|
|
|
|
background-color: {{ aSurveyInfo.options.privacybackgroundcolor }};
|
|
|
|
|
}
|
|
|
|
|
|
2026-11-24 23:23:59 +01:00
|
|
|
{% if ( aSurveyInfo.options.brandlogofile|default('off') not in ['off', '', 'inherit'] and aSurveyInfo.options.brandlogo|default('on') != 'off' ) %}
|
2026-06-17 10:06:07 +02:00
|
|
|
body .top-container {
|
|
|
|
|
margin-top: 0;
|
|
|
|
|
}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% if (aSurveyInfo.options.questionborder == "box" ) %}
|
|
|
|
|
.question-container,
|
|
|
|
|
#welcome-container,
|
|
|
|
|
.save-form,
|
|
|
|
|
#surveys-list-container,
|
|
|
|
|
.privacy {
|
|
|
|
|
border: 1px {{ aSurveyInfo.options.questionborderstyle }} {{ aSurveyInfo.options.questionbordercolor }};
|
|
|
|
|
}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% if (aSurveyInfo.options.questionborder == "top" ) %}
|
|
|
|
|
.question-container,
|
|
|
|
|
#welcome-container,
|
|
|
|
|
.save-form,
|
|
|
|
|
#surveys-list-container,
|
|
|
|
|
.privacy {
|
|
|
|
|
border-top: 1px {{ aSurveyInfo.options.questionborderstyle }} {{ aSurveyInfo.options.questionbordercolor }};
|
|
|
|
|
}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% if (aSurveyInfo.options.questionborder == "none" ) %}
|
|
|
|
|
.question-container,
|
|
|
|
|
#welcome-container,
|
|
|
|
|
.save-form,
|
|
|
|
|
#surveys-list-container,
|
|
|
|
|
.privacy {
|
|
|
|
|
border: none;
|
|
|
|
|
}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
.question-container,
|
|
|
|
|
#welcome-container,
|
|
|
|
|
.save-form,
|
|
|
|
|
#surveys-list-container,
|
|
|
|
|
.privacy {
|
|
|
|
|
border-radius: {{ aSurveyInfo.options.questionborderradiusTL }}px {{ aSurveyInfo.options.questionborderradiusTR }}px {{ aSurveyInfo.options.questionborderradiusBR }}px {{ aSurveyInfo.options.questionborderradiusBL }}px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.question-title-container{
|
|
|
|
|
border-radius: {{ aSurveyInfo.options.questionborderradiusTL }}px {{ aSurveyInfo.options.questionborderradiusTR }}px 0 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{% if (aSurveyInfo.options.questiondropdown == "on" ) %}
|
|
|
|
|
.question-container,
|
|
|
|
|
#welcome-container,
|
|
|
|
|
.privacy-block,
|
|
|
|
|
.save-form,
|
|
|
|
|
#surveys-list-container {
|
|
|
|
|
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.4);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.privacy{
|
|
|
|
|
margin-top:30px;
|
|
|
|
|
}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% if (aSurveyInfo.options.questiondropdown == "hover" ) %}
|
|
|
|
|
.question-container:hover,
|
|
|
|
|
#welcome-container:hover,
|
|
|
|
|
.save-form:hover,
|
|
|
|
|
#surveys-list-container:hover,
|
|
|
|
|
.privacy:hover {
|
|
|
|
|
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.4);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.privacy{
|
|
|
|
|
margin-top:30px;
|
|
|
|
|
}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
feat(options): roll the color-chooser scheme out to 4 more options (row 135)
The experimental color-chooser (mode dropdown + swatch chips + custom picker,
previously only navbarfontcolor) now also covers, with the owner-specified
defaults:
- headerbackgroundcolor — default "Default background color" (slot h1)
- progressbarcolor — COLUMN 1 of the progress colors row (was col 2), default Color 1
- progressbarbackgroundcolor — COLUMN 2 (was col 1), default Default background color
- progressbarfontcolor — column 3, default Default font color, with an extra tip
underneath: "Make this font color the same color as the color of the progress
bar when you do not want to see the progress in %."
Each option is a dropdown (default|defaultbackgroundcolor|color1|color2|color3|
other) whose own default carries data-default="1" + [ ] in config.xml, plus a
<key>custom colorpicker child (parent, disable-mode, data-keep-value). options.js
generalized navbarColorModeUI to colorModeUI(key) over aColorChooserKeys with
shared presets, one delegated change handler for select.selector_color_mode, and
per-key legacy hex migration (stored hex -> mode "other" + hex into the custom
child). custom_header.twig resolves the modes via a local cm() macro (import
_self, same pattern as nav_bar.twig); raw hex passes through. build.php migrates
legacy hex values in variant jsons for all 5 chooser keys. OPTIONS_JS_TOKEN ->
20261126.14. Verified: render tc=618 (all 5 selects with per-option [ ] default,
progress row col order, tip present, divs balanced, options.js?v=20261126.14),
jsdom 7/7 incl. new options_color_choosers.test.js (5 choosers, legacy migration,
chips, layout, tip) and the navbar test re-scoped to its own chips; live survey
282267 with legacy hex AND with modes (color2 -> #888888, defaultbackgroundcolor
-> #ffffff; DB row restored); export exit 0; build.php lints. Variants not
rebuilt (deferred).
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 19:14:47 +01:00
|
|
|
{# Row 135: headerbackgroundcolor is a MODE dropdown now (see navbarfontcolor
|
|
|
|
|
below) — resolve the effective color via the shared partial. Default mode
|
|
|
|
|
"defaultbackgroundcolor"; a legacy stored hex passes through. #}
|
|
|
|
|
{% set sHeaderBackgroundColor = cmm.cm(aSurveyInfo.options.headerbackgroundcolor|default('defaultbackgroundcolor'), aSurveyInfo.options.headerbackgroundcolorcustom|default(''), aSurveyInfo.options) %}
|
2026-06-17 10:06:07 +02:00
|
|
|
.navbar-light{
|
feat(options): roll the color-chooser scheme out to 4 more options (row 135)
The experimental color-chooser (mode dropdown + swatch chips + custom picker,
previously only navbarfontcolor) now also covers, with the owner-specified
defaults:
- headerbackgroundcolor — default "Default background color" (slot h1)
- progressbarcolor — COLUMN 1 of the progress colors row (was col 2), default Color 1
- progressbarbackgroundcolor — COLUMN 2 (was col 1), default Default background color
- progressbarfontcolor — column 3, default Default font color, with an extra tip
underneath: "Make this font color the same color as the color of the progress
bar when you do not want to see the progress in %."
Each option is a dropdown (default|defaultbackgroundcolor|color1|color2|color3|
other) whose own default carries data-default="1" + [ ] in config.xml, plus a
<key>custom colorpicker child (parent, disable-mode, data-keep-value). options.js
generalized navbarColorModeUI to colorModeUI(key) over aColorChooserKeys with
shared presets, one delegated change handler for select.selector_color_mode, and
per-key legacy hex migration (stored hex -> mode "other" + hex into the custom
child). custom_header.twig resolves the modes via a local cm() macro (import
_self, same pattern as nav_bar.twig); raw hex passes through. build.php migrates
legacy hex values in variant jsons for all 5 chooser keys. OPTIONS_JS_TOKEN ->
20261126.14. Verified: render tc=618 (all 5 selects with per-option [ ] default,
progress row col order, tip present, divs balanced, options.js?v=20261126.14),
jsdom 7/7 incl. new options_color_choosers.test.js (5 choosers, legacy migration,
chips, layout, tip) and the navbar test re-scoped to its own chips; live survey
282267 with legacy hex AND with modes (color2 -> #888888, defaultbackgroundcolor
-> #ffffff; DB row restored); export exit 0; build.php lints. Variants not
rebuilt (deferred).
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 19:14:47 +01:00
|
|
|
background-color: {{ sHeaderBackgroundColor }};
|
2026-06-17 10:06:07 +02:00
|
|
|
}
|
|
|
|
|
|
2026-11-24 23:03:57 +01:00
|
|
|
{# THEME ADDITION: sticky header per screen size (options
|
|
|
|
|
headersticky{computer,tablet,mobile}; Prompt L — the master key
|
|
|
|
|
"headersticky" no longer gates this). Breakpoints are Bootstrap's
|
2026-11-24 22:04:11 +01:00
|
|
|
defaults: phone < md (768px), tablet = md..lg (768-991px),
|
|
|
|
|
computer >= lg (992px). The rules are the same as Bootstrap's
|
|
|
|
|
.fixed-top, but only inside the selected range(s). Only emitted when
|
2026-11-24 23:03:57 +01:00
|
|
|
the checkbox options exist (after a theme reset); before that nav_bar.twig
|
|
|
|
|
keeps the fixed-top class (old behaviour). Defaults when a checkbox is
|
|
|
|
|
undefined: computer on, tablet on, mobile off. #}
|
|
|
|
|
{% if aSurveyInfo.options.headerstickycomputer is defined %}
|
|
|
|
|
{% if aSurveyInfo.options.headerstickycomputer|default('on') == 'on' %}
|
2026-11-24 22:04:11 +01:00
|
|
|
@media (min-width: 992px) { #survey-nav { position: fixed; top: 0; right: 0; left: 0; z-index: 1030; } }
|
2026-11-24 23:03:57 +01:00
|
|
|
{% endif %}
|
|
|
|
|
{% if aSurveyInfo.options.headerstickytablet|default('on') == 'on' %}
|
2026-11-24 22:04:11 +01:00
|
|
|
@media (min-width: 768px) and (max-width: 991.98px) { #survey-nav { position: fixed; top: 0; right: 0; left: 0; z-index: 1030; } }
|
2026-11-24 23:03:57 +01:00
|
|
|
{% endif %}
|
|
|
|
|
{% if aSurveyInfo.options.headerstickymobile|default('off') == 'on' %}
|
2026-11-24 22:04:11 +01:00
|
|
|
@media (max-width: 767.98px) { #survey-nav { position: fixed; top: 0; right: 0; left: 0; z-index: 1030; } }
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
feat(options): logo section as 3 columns (file/margin/per-device) in Top-of-page tab
Prompt M: per logo position (left=brand, center, right) the options page now
shows one column with vertical separators and an <hr> below: file dropdown
with 'No logo' (off) first, top margin as plain number 0-100, and 'Show logo
on' with computer/tablet/mobile checkboxes. New option keys per position:
<pos>logofile, <pos>logotopmargin, <pos>showon{computer,tablet,mobile};
old keys (brandlogo/centerlogo/rightlogo, *logohideonsmall, shared
logotopmargin) removed from config.xml. Views map the checkboxes to
Bootstrap display classes per breakpoint and emit per-logo padding-top;
variants/build.php migrates the old json keys to the new ones.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-24 23:14:10 +01:00
|
|
|
{# Prompt M: per-logo top margin (options <pos>logotopmargin hold a plain px
|
|
|
|
|
number 0-100; the "px" unit is added here. |replace({'px':''}) guards
|
feat(theme): default logos left/center/right + 30px top margin + 90px header bar
Row 138: default look of the mother theme:
- brandlogofile default -> ./files/logo-left.png (left)
- centerlogofile default -> ./files/logo.png (center, was "off")
- rightlogofile default -> ./files/logo-right.png (right, was "off")
so all three logos are visible by default
- brand/center/rightlogotopmargin defaults 15 -> 30 (px added in the view)
- new option headerheight (Top of the page tab, col 3 next to the sticky
checkboxes, default 90) applied in custom_header.twig as min-height on
#survey-nav (min-height so taller logos can still grow the bar; the sticky
body padding in scripts/custom.js follows the real nav height)
- sticky defaults were already computer on / tablet on / mobile off (unchanged)
Core normalizes ./files/x on theme reset to image::theme::files/x, so the
config defaults keep the ./files/ style like the existing one. The PNG files
logo-left.png / logo-right.png remain the owner's untracked files (Prompt PL).
Verified: options render tc=633 (headerheight field present, logo dropdowns
list all three files, divs balanced); live survey 282267 with the defaults
applied to the DB row: three logo imgs (logo-left/logo/logo-right),
padding-top 30px on all logo imgs, min-height 90px on #survey-nav, fixed-top
media queries only for computer+tablet (mobile non-sticky) — DB row restored
afterwards; jsdom 7/7; export exit 0. Theme reset needed for the new defaults
to land in the DB. Variants not rebuilt (deferred).
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 19:41:12 +01:00
|
|
|
against a legacy stored value that still carries the unit. Row 138
|
fix(header): exact logo-top margin (0px touches top); menu texts on their own header row
- nav_bar.twig: header split into two rows — row 1 .survey-nav-logo-row holds
all logos (left far left, center absolutely centered in the row, right
ms-auto far right) so they align; row 2 #navbar holds the menu texts
(language changer, save/clear all, question index) full-width, right-aligned
- sass/plain.sass (leading): #survey-nav align-items:flex-start, container
stretch, .survey-nav-logo-row relative/w-100, .logo-container and its img
padding-top:0, .logo-center top:0 translateX(-50%); dropped .logo-right
margin-left:0 (ms-auto now on the element)
- css/plain.css: compiled from sass with dart-sass (export guard green)
- custom_header.twig: <pos>logotopmargin now emitted as margin-top on the
.logo-*.logo-container, so the value is the EXACT distance from the top of
the header to the logo (0px = logo touches the top of the page)
- README.md: header layout + logo-top-distance sections updated
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 19:56:11 +01:00
|
|
|
default: 30 px. Emitted as margin-top on the logo container: together with
|
|
|
|
|
the padding-top:0 on .logo-container / .logo-container > img and the
|
|
|
|
|
top-aligned header in css/plain.css (sass/plain.sass), the value is the
|
|
|
|
|
EXACT distance from the top of the header to the top of the logo —
|
|
|
|
|
0 px means the logo touches the top of the page. #}
|
|
|
|
|
#survey-nav .logo-left.logo-container {
|
|
|
|
|
margin-top: {{ aSurveyInfo.options.brandlogotopmargin|default('30')|replace({'px': ''}) }}px;
|
feat(options): logo section as 3 columns (file/margin/per-device) in Top-of-page tab
Prompt M: per logo position (left=brand, center, right) the options page now
shows one column with vertical separators and an <hr> below: file dropdown
with 'No logo' (off) first, top margin as plain number 0-100, and 'Show logo
on' with computer/tablet/mobile checkboxes. New option keys per position:
<pos>logofile, <pos>logotopmargin, <pos>showon{computer,tablet,mobile};
old keys (brandlogo/centerlogo/rightlogo, *logohideonsmall, shared
logotopmargin) removed from config.xml. Views map the checkboxes to
Bootstrap display classes per breakpoint and emit per-logo padding-top;
variants/build.php migrates the old json keys to the new ones.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-24 23:14:10 +01:00
|
|
|
}
|
fix(header): exact logo-top margin (0px touches top); menu texts on their own header row
- nav_bar.twig: header split into two rows — row 1 .survey-nav-logo-row holds
all logos (left far left, center absolutely centered in the row, right
ms-auto far right) so they align; row 2 #navbar holds the menu texts
(language changer, save/clear all, question index) full-width, right-aligned
- sass/plain.sass (leading): #survey-nav align-items:flex-start, container
stretch, .survey-nav-logo-row relative/w-100, .logo-container and its img
padding-top:0, .logo-center top:0 translateX(-50%); dropped .logo-right
margin-left:0 (ms-auto now on the element)
- css/plain.css: compiled from sass with dart-sass (export guard green)
- custom_header.twig: <pos>logotopmargin now emitted as margin-top on the
.logo-*.logo-container, so the value is the EXACT distance from the top of
the header to the logo (0px = logo touches the top of the page)
- README.md: header layout + logo-top-distance sections updated
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 19:56:11 +01:00
|
|
|
#survey-nav .logo-center.logo-container {
|
|
|
|
|
margin-top: {{ aSurveyInfo.options.centerlogotopmargin|default('30')|replace({'px': ''}) }}px;
|
feat(options): logo section as 3 columns (file/margin/per-device) in Top-of-page tab
Prompt M: per logo position (left=brand, center, right) the options page now
shows one column with vertical separators and an <hr> below: file dropdown
with 'No logo' (off) first, top margin as plain number 0-100, and 'Show logo
on' with computer/tablet/mobile checkboxes. New option keys per position:
<pos>logofile, <pos>logotopmargin, <pos>showon{computer,tablet,mobile};
old keys (brandlogo/centerlogo/rightlogo, *logohideonsmall, shared
logotopmargin) removed from config.xml. Views map the checkboxes to
Bootstrap display classes per breakpoint and emit per-logo padding-top;
variants/build.php migrates the old json keys to the new ones.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-24 23:14:10 +01:00
|
|
|
}
|
fix(header): exact logo-top margin (0px touches top); menu texts on their own header row
- nav_bar.twig: header split into two rows — row 1 .survey-nav-logo-row holds
all logos (left far left, center absolutely centered in the row, right
ms-auto far right) so they align; row 2 #navbar holds the menu texts
(language changer, save/clear all, question index) full-width, right-aligned
- sass/plain.sass (leading): #survey-nav align-items:flex-start, container
stretch, .survey-nav-logo-row relative/w-100, .logo-container and its img
padding-top:0, .logo-center top:0 translateX(-50%); dropped .logo-right
margin-left:0 (ms-auto now on the element)
- css/plain.css: compiled from sass with dart-sass (export guard green)
- custom_header.twig: <pos>logotopmargin now emitted as margin-top on the
.logo-*.logo-container, so the value is the EXACT distance from the top of
the header to the logo (0px = logo touches the top of the page)
- README.md: header layout + logo-top-distance sections updated
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 19:56:11 +01:00
|
|
|
#survey-nav .logo-right.logo-container {
|
|
|
|
|
margin-top: {{ aSurveyInfo.options.rightlogotopmargin|default('30')|replace({'px': ''}) }}px;
|
feat(theme): default logos left/center/right + 30px top margin + 90px header bar
Row 138: default look of the mother theme:
- brandlogofile default -> ./files/logo-left.png (left)
- centerlogofile default -> ./files/logo.png (center, was "off")
- rightlogofile default -> ./files/logo-right.png (right, was "off")
so all three logos are visible by default
- brand/center/rightlogotopmargin defaults 15 -> 30 (px added in the view)
- new option headerheight (Top of the page tab, col 3 next to the sticky
checkboxes, default 90) applied in custom_header.twig as min-height on
#survey-nav (min-height so taller logos can still grow the bar; the sticky
body padding in scripts/custom.js follows the real nav height)
- sticky defaults were already computer on / tablet on / mobile off (unchanged)
Core normalizes ./files/x on theme reset to image::theme::files/x, so the
config defaults keep the ./files/ style like the existing one. The PNG files
logo-left.png / logo-right.png remain the owner's untracked files (Prompt PL).
Verified: options render tc=633 (headerheight field present, logo dropdowns
list all three files, divs balanced); live survey 282267 with the defaults
applied to the DB row: three logo imgs (logo-left/logo/logo-right),
padding-top 30px on all logo imgs, min-height 90px on #survey-nav, fixed-top
media queries only for computer+tablet (mobile non-sticky) — DB row restored
afterwards; jsdom 7/7; export exit 0. Theme reset needed for the new defaults
to land in the DB. Variants not rebuilt (deferred).
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 19:41:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{# Row 138: header bar height (option headerheight, plain px number; the "px"
|
|
|
|
|
unit is added here, |replace guards a legacy value with the unit). Applied
|
|
|
|
|
as min-height so taller logos can still grow the bar — the sticky body
|
|
|
|
|
padding in scripts/custom.js follows the real nav height. #}
|
|
|
|
|
#survey-nav {
|
|
|
|
|
min-height: {{ aSurveyInfo.options.headerheight|default('90')|replace({'px': ''}) }}px;
|
2026-11-16 19:51:19 +01:00
|
|
|
}
|
|
|
|
|
|
feat(options): menu item color as preset dropdown with persistent custom color (working example)
navbarfontcolor (Top of the page tab, column 2) changes from a plain
colorpicker to a dropdown: Same as default font color | Color 1 | Color 2 |
Color 3 | Other. The new navbarfontcolorcustom colorpicker stays visible but
grayed out (disabled + aria-disabled) unless 'Other' is chosen, and keeps its
value across saves (data-keep-value) so switching back to 'Other' restores the
last picked color. Dropdown option labels show the live hex of each preset and
clickable swatch chips select a preset; an effective-color swatch next to the
picker shows the color actually applied. A legacy stored hex is migrated to
mode 'other' + custom field (options.js) and accepted directly in
custom_header.twig, so nothing is lost before a theme reset. Views map
default->fontcolor, color1/2/3->primary/secondary/tertiarycolor,
other->navbarfontcolorcustom. headerbackgroundcolor/bodybackgroundcolor stay
plain colorpickers, default #ffffff. build.php maps a legacy hex
navbarfontcolor in variant jsons to other+custom for when variants are built.
Verified: jsdom suite 6/6 (new options_navbar_color_mode test: migration,
gray-out, keep-value on save, chips, swatches), live survey render for all 5
modes, export check exit 0.
NOTE (owner 2026-11-26): variant builds are intentionally DEFERRED — no
customer is waiting; the on-disk variant folders were left at their
pre-feature state and no variant theme was reset. Run
variants/build.php per variant only after the open prompts are done.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 13:51:55 +01:00
|
|
|
{# Row 115 working example: navbarfontcolor is now a MODE dropdown
|
|
|
|
|
(default|color1|color2|color3|other). Resolve the effective color:
|
|
|
|
|
default -> fontcolor, color1/2/3 -> primarycolor/secondarycolor/tertiarycolor,
|
|
|
|
|
other -> navbarfontcolorcustom. A raw hex value (legacy stored value from
|
|
|
|
|
before the dropdown existed, or a hand-set one) is used directly. #}
|
|
|
|
|
{% set sNavbarFontColorMode = aSurveyInfo.options.navbarfontcolor|default('default') %}
|
feat(options): 'Default background color' as 4th column of the colors row + 5th swatch preset
New colorpicker option defaultbackgroundcolor (category Fonts, default
#ffffff), rendered as column 1 of the second row of the 'Default fonts and
colors' tab — that colors row is now 4 columns (col-md-3 each; the top row
stays 3 x col-md-4). The experimental color chooser (navbarfontcolor dropdown
+ swatch chips) gains this color as a 5th preset: dropdown option
'defaultbackgroundcolor', 5 swatch chips with live hex labels, presets map in
options.js extended, and custom_header.twig maps the mode to the option value.
OPTIONS_JS_TOKEN -> 20261126.6. Verified: render tc=558 (colors row =
defaultbackgroundcolor|primarycolor|secondarycolor|tertiarycolor in 4 col-md-3,
top row unchanged, divs balanced, dropdown has 6 options), jsdom suite 6/6
(5 chips pinned), live survey 282267 with mode defaultbackgroundcolor ->
#aabbcc (DB row restored), export 0. Variants not rebuilt (deferred).
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 14:57:25 +01:00
|
|
|
{% set sNavbarFontColor = sNavbarFontColorMode matches '/^#[0-9a-fA-F]{3,8}$/' ? sNavbarFontColorMode : (sNavbarFontColorMode == 'color1' ? aSurveyInfo.options.primarycolor|default('') : (sNavbarFontColorMode == 'color2' ? aSurveyInfo.options.secondarycolor|default('') : (sNavbarFontColorMode == 'color3' ? aSurveyInfo.options.tertiarycolor|default('') : (sNavbarFontColorMode == 'defaultbackgroundcolor' ? aSurveyInfo.options.defaultbackgroundcolor|default('') : (sNavbarFontColorMode == 'other' ? aSurveyInfo.options.navbarfontcolorcustom|default('') : aSurveyInfo.options.fontcolor|default('')))))) %}
|
2026-11-16 19:51:19 +01:00
|
|
|
#survey-nav .navbar-nav > li > a,
|
|
|
|
|
#survey-nav .navbar-nav .nav-link {
|
feat(options): menu item color as preset dropdown with persistent custom color (working example)
navbarfontcolor (Top of the page tab, column 2) changes from a plain
colorpicker to a dropdown: Same as default font color | Color 1 | Color 2 |
Color 3 | Other. The new navbarfontcolorcustom colorpicker stays visible but
grayed out (disabled + aria-disabled) unless 'Other' is chosen, and keeps its
value across saves (data-keep-value) so switching back to 'Other' restores the
last picked color. Dropdown option labels show the live hex of each preset and
clickable swatch chips select a preset; an effective-color swatch next to the
picker shows the color actually applied. A legacy stored hex is migrated to
mode 'other' + custom field (options.js) and accepted directly in
custom_header.twig, so nothing is lost before a theme reset. Views map
default->fontcolor, color1/2/3->primary/secondary/tertiarycolor,
other->navbarfontcolorcustom. headerbackgroundcolor/bodybackgroundcolor stay
plain colorpickers, default #ffffff. build.php maps a legacy hex
navbarfontcolor in variant jsons to other+custom for when variants are built.
Verified: jsdom suite 6/6 (new options_navbar_color_mode test: migration,
gray-out, keep-value on save, chips, swatches), live survey render for all 5
modes, export check exit 0.
NOTE (owner 2026-11-26): variant builds are intentionally DEFERRED — no
customer is waiting; the on-disk variant folders were left at their
pre-feature state and no variant theme was reset. Run
variants/build.php per variant only after the open prompts are done.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 13:51:55 +01:00
|
|
|
color: {{ sNavbarFontColor }};
|
2026-11-16 19:51:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#survey-nav .navbar-nav > li > a:hover,
|
|
|
|
|
#survey-nav .navbar-nav > li > a:focus,
|
|
|
|
|
#survey-nav .navbar-nav .nav-link:hover,
|
|
|
|
|
#survey-nav .navbar-nav .nav-link:focus {
|
feat(options): menu item color as preset dropdown with persistent custom color (working example)
navbarfontcolor (Top of the page tab, column 2) changes from a plain
colorpicker to a dropdown: Same as default font color | Color 1 | Color 2 |
Color 3 | Other. The new navbarfontcolorcustom colorpicker stays visible but
grayed out (disabled + aria-disabled) unless 'Other' is chosen, and keeps its
value across saves (data-keep-value) so switching back to 'Other' restores the
last picked color. Dropdown option labels show the live hex of each preset and
clickable swatch chips select a preset; an effective-color swatch next to the
picker shows the color actually applied. A legacy stored hex is migrated to
mode 'other' + custom field (options.js) and accepted directly in
custom_header.twig, so nothing is lost before a theme reset. Views map
default->fontcolor, color1/2/3->primary/secondary/tertiarycolor,
other->navbarfontcolorcustom. headerbackgroundcolor/bodybackgroundcolor stay
plain colorpickers, default #ffffff. build.php maps a legacy hex
navbarfontcolor in variant jsons to other+custom for when variants are built.
Verified: jsdom suite 6/6 (new options_navbar_color_mode test: migration,
gray-out, keep-value on save, chips, swatches), live survey render for all 5
modes, export check exit 0.
NOTE (owner 2026-11-26): variant builds are intentionally DEFERRED — no
customer is waiting; the on-disk variant folders were left at their
pre-feature state and no variant theme was reset. Run
variants/build.php per variant only after the open prompts are done.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 13:51:55 +01:00
|
|
|
color: {{ sNavbarFontColor }};
|
2026-11-16 19:51:19 +01:00
|
|
|
opacity: 0.75;
|
2026-06-17 10:06:07 +02:00
|
|
|
}
|
|
|
|
|
|
feat(options): roll the color-chooser scheme out to 4 more options (row 135)
The experimental color-chooser (mode dropdown + swatch chips + custom picker,
previously only navbarfontcolor) now also covers, with the owner-specified
defaults:
- headerbackgroundcolor — default "Default background color" (slot h1)
- progressbarcolor — COLUMN 1 of the progress colors row (was col 2), default Color 1
- progressbarbackgroundcolor — COLUMN 2 (was col 1), default Default background color
- progressbarfontcolor — column 3, default Default font color, with an extra tip
underneath: "Make this font color the same color as the color of the progress
bar when you do not want to see the progress in %."
Each option is a dropdown (default|defaultbackgroundcolor|color1|color2|color3|
other) whose own default carries data-default="1" + [ ] in config.xml, plus a
<key>custom colorpicker child (parent, disable-mode, data-keep-value). options.js
generalized navbarColorModeUI to colorModeUI(key) over aColorChooserKeys with
shared presets, one delegated change handler for select.selector_color_mode, and
per-key legacy hex migration (stored hex -> mode "other" + hex into the custom
child). custom_header.twig resolves the modes via a local cm() macro (import
_self, same pattern as nav_bar.twig); raw hex passes through. build.php migrates
legacy hex values in variant jsons for all 5 chooser keys. OPTIONS_JS_TOKEN ->
20261126.14. Verified: render tc=618 (all 5 selects with per-option [ ] default,
progress row col order, tip present, divs balanced, options.js?v=20261126.14),
jsdom 7/7 incl. new options_color_choosers.test.js (5 choosers, legacy migration,
chips, layout, tip) and the navbar test re-scoped to its own chips; live survey
282267 with legacy hex AND with modes (color2 -> #888888, defaultbackgroundcolor
-> #ffffff; DB row restored); export exit 0; build.php lints. Variants not
rebuilt (deferred).
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 19:14:47 +01:00
|
|
|
{# Row 135: the progress bar colors are MODE dropdowns now — resolve via the
|
|
|
|
|
shared partial. Defaults: background = Default background color, bar = Color 1,
|
|
|
|
|
font = Default font color; legacy stored hex passes through. #}
|
|
|
|
|
{% set sProgressBarBackgroundColor = cmm.cm(aSurveyInfo.options.progressbarbackgroundcolor|default('defaultbackgroundcolor'), aSurveyInfo.options.progressbarbackgroundcolorcustom|default(''), aSurveyInfo.options) %}
|
|
|
|
|
{% set sProgressBarColor = cmm.cm(aSurveyInfo.options.progressbarcolor|default('color1'), aSurveyInfo.options.progressbarcolorcustom|default(''), aSurveyInfo.options) %}
|
|
|
|
|
{% set sProgressBarFontColor = cmm.cm(aSurveyInfo.options.progressbarfontcolor|default('default'), aSurveyInfo.options.progressbarfontcolorcustom|default(''), aSurveyInfo.options) %}
|
2026-06-17 10:06:07 +02:00
|
|
|
.progress {
|
feat(options): roll the color-chooser scheme out to 4 more options (row 135)
The experimental color-chooser (mode dropdown + swatch chips + custom picker,
previously only navbarfontcolor) now also covers, with the owner-specified
defaults:
- headerbackgroundcolor — default "Default background color" (slot h1)
- progressbarcolor — COLUMN 1 of the progress colors row (was col 2), default Color 1
- progressbarbackgroundcolor — COLUMN 2 (was col 1), default Default background color
- progressbarfontcolor — column 3, default Default font color, with an extra tip
underneath: "Make this font color the same color as the color of the progress
bar when you do not want to see the progress in %."
Each option is a dropdown (default|defaultbackgroundcolor|color1|color2|color3|
other) whose own default carries data-default="1" + [ ] in config.xml, plus a
<key>custom colorpicker child (parent, disable-mode, data-keep-value). options.js
generalized navbarColorModeUI to colorModeUI(key) over aColorChooserKeys with
shared presets, one delegated change handler for select.selector_color_mode, and
per-key legacy hex migration (stored hex -> mode "other" + hex into the custom
child). custom_header.twig resolves the modes via a local cm() macro (import
_self, same pattern as nav_bar.twig); raw hex passes through. build.php migrates
legacy hex values in variant jsons for all 5 chooser keys. OPTIONS_JS_TOKEN ->
20261126.14. Verified: render tc=618 (all 5 selects with per-option [ ] default,
progress row col order, tip present, divs balanced, options.js?v=20261126.14),
jsdom 7/7 incl. new options_color_choosers.test.js (5 choosers, legacy migration,
chips, layout, tip) and the navbar test re-scoped to its own chips; live survey
282267 with legacy hex AND with modes (color2 -> #888888, defaultbackgroundcolor
-> #ffffff; DB row restored); export exit 0; build.php lints. Variants not
rebuilt (deferred).
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 19:14:47 +01:00
|
|
|
background: {{ sProgressBarBackgroundColor }};
|
2026-06-17 10:06:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
label::after,
|
|
|
|
|
.radio-item label::after{
|
|
|
|
|
background-color: {{ aSurveyInfo.options.checkboxcolor }};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.progress-bar {
|
feat(options): roll the color-chooser scheme out to 4 more options (row 135)
The experimental color-chooser (mode dropdown + swatch chips + custom picker,
previously only navbarfontcolor) now also covers, with the owner-specified
defaults:
- headerbackgroundcolor — default "Default background color" (slot h1)
- progressbarcolor — COLUMN 1 of the progress colors row (was col 2), default Color 1
- progressbarbackgroundcolor — COLUMN 2 (was col 1), default Default background color
- progressbarfontcolor — column 3, default Default font color, with an extra tip
underneath: "Make this font color the same color as the color of the progress
bar when you do not want to see the progress in %."
Each option is a dropdown (default|defaultbackgroundcolor|color1|color2|color3|
other) whose own default carries data-default="1" + [ ] in config.xml, plus a
<key>custom colorpicker child (parent, disable-mode, data-keep-value). options.js
generalized navbarColorModeUI to colorModeUI(key) over aColorChooserKeys with
shared presets, one delegated change handler for select.selector_color_mode, and
per-key legacy hex migration (stored hex -> mode "other" + hex into the custom
child). custom_header.twig resolves the modes via a local cm() macro (import
_self, same pattern as nav_bar.twig); raw hex passes through. build.php migrates
legacy hex values in variant jsons for all 5 chooser keys. OPTIONS_JS_TOKEN ->
20261126.14. Verified: render tc=618 (all 5 selects with per-option [ ] default,
progress row col order, tip present, divs balanced, options.js?v=20261126.14),
jsdom 7/7 incl. new options_color_choosers.test.js (5 choosers, legacy migration,
chips, layout, tip) and the navbar test re-scoped to its own chips; live survey
282267 with legacy hex AND with modes (color2 -> #888888, defaultbackgroundcolor
-> #ffffff; DB row restored); export exit 0; build.php lints. Variants not
rebuilt (deferred).
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 19:14:47 +01:00
|
|
|
background: {{ sProgressBarColor }};
|
|
|
|
|
color: {{ sProgressBarFontColor }};
|
2026-06-17 10:06:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.question-container, #welcome-container {
|
|
|
|
|
background: {{ aSurveyInfo.options.questionbackgroundcolor }};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.question-help-container, .question-valid-container {
|
|
|
|
|
background: {{ aSurveyInfo.options.questionhelpbackgroundcolor }};
|
2026-11-25 11:35:18 +01:00
|
|
|
color: {{ aSurveyInfo.options.questionhelpfontcolor|default('') }};
|
2026-06-17 10:06:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.slider-handle {
|
|
|
|
|
background: {{ aSurveyInfo.options.sliderhandlecolor }};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn-primary {
|
|
|
|
|
background: {{ aSurveyInfo.options.primarycolor }};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.bg-primary{
|
|
|
|
|
background-color: {{ aSurveyInfo.options.questiontitlebackgroundcolor }};
|
|
|
|
|
color: {{ aSurveyInfo.options.questiontitlefontcolor }};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn-primary:hover, .btn-primary:focus {
|
|
|
|
|
background: {{ aSurveyInfo.options.primarycolor }};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn-check:active+.btn-primary,
|
|
|
|
|
.btn-check:checked+.btn-primary,
|
|
|
|
|
.btn-primary.active,
|
|
|
|
|
.btn-primary:active,
|
|
|
|
|
.show>.btn-primary.dropdown-toggle,
|
|
|
|
|
.show > .btn-primary.dropdown-toggle,
|
|
|
|
|
.btn-primary:focus {
|
|
|
|
|
background: {{ aSurveyInfo.options.primarycolor }};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{% set checkicon = '"\\' ~ aSurveyInfo.options.checkicon ~ '"' %}
|
|
|
|
|
.checkbox-item input[type="checkbox"]:checked + label::after, .checkbox-item input[type="radio"]:checked + label::after {
|
|
|
|
|
content: {{ checkicon }};
|
|
|
|
|
}
|
|
|
|
|
</style>
|