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>
This commit is contained in:
parent
b44d120d7d
commit
751954c340
1 changed files with 197 additions and 35 deletions
|
|
@ -65,7 +65,7 @@
|
|||
background-color: {{ aSurveyInfo.options.privacybackgroundcolor }};
|
||||
}
|
||||
|
||||
{% if ( aSurveyInfo.options.brandlogo == "on" ) %}
|
||||
{% if ( aSurveyInfo.options.brandlogofile|default('off') not in ['off', '', 'inherit'] ) %}
|
||||
body .top-container {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
|
@ -166,8 +166,17 @@
|
|||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
#survey-nav .logo-container > img {
|
||||
padding-top: {{ aSurveyInfo.options.logotopmargin }};
|
||||
{# 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
|
||||
against a legacy stored value that still carries the unit. #}
|
||||
#survey-nav .logo-left > img {
|
||||
padding-top: {{ aSurveyInfo.options.brandlogotopmargin|default('15')|replace({'px': ''}) }}px;
|
||||
}
|
||||
#survey-nav .logo-center > img {
|
||||
padding-top: {{ aSurveyInfo.options.centerlogotopmargin|default('15')|replace({'px': ''}) }}px;
|
||||
}
|
||||
#survey-nav .logo-right > img {
|
||||
padding-top: {{ aSurveyInfo.options.rightlogotopmargin|default('15')|replace({'px': ''}) }}px;
|
||||
}
|
||||
|
||||
#survey-nav .navbar-nav > li > a,
|
||||
|
|
|
|||
Loading…
Reference in a new issue