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 #}
|
|
|
|
|
<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 *!*/
|
|
|
|
|
background-color:{{ aSurveyInfo.options.bodybackgroundcolor }} ;
|
|
|
|
|
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 }};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.group-title {
|
|
|
|
|
font-size: {{ aSurveyInfo.options.grouptitlefontsize }};
|
|
|
|
|
font-weight: {{ aSurveyInfo.options.grouptitlefontweight }};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.group-description {
|
|
|
|
|
font-size: {{ aSurveyInfo.options.groupdescriptionfontsize }};
|
|
|
|
|
font-weight: {{ aSurveyInfo.options.groupdescriptionfontweight }};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.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 %}
|
|
|
|
|
|
|
|
|
|
.navbar-light{
|
|
|
|
|
background-color: {{ aSurveyInfo.options.headerbackgroundcolor }};
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
|
|
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;
|
2026-11-16 19:51:19 +01:00
|
|
|
}
|
|
|
|
|
|
2026-11-16 19:51:19 +01:00
|
|
|
#survey-nav .navbar-nav > li > a,
|
|
|
|
|
#survey-nav .navbar-nav .nav-link {
|
|
|
|
|
color: {{ aSurveyInfo.options.navbarfontcolor }};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#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 {
|
|
|
|
|
color: {{ aSurveyInfo.options.navbarfontcolor }};
|
|
|
|
|
opacity: 0.75;
|
2026-06-17 10:06:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.progress {
|
|
|
|
|
background: {{ aSurveyInfo.options.progressbarbackgroundcolor }};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
label::after,
|
|
|
|
|
.radio-item label::after{
|
|
|
|
|
background-color: {{ aSurveyInfo.options.checkboxcolor }};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.progress-bar {
|
|
|
|
|
background: {{ aSurveyInfo.options.progressbarcolor }};
|
|
|
|
|
color: {{ aSurveyInfo.options.progressbarfontcolor }};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.question-container, #welcome-container {
|
|
|
|
|
background: {{ aSurveyInfo.options.questionbackgroundcolor }};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.question-help-container, .question-valid-container {
|
|
|
|
|
background: {{ aSurveyInfo.options.questionhelpbackgroundcolor }};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.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>
|