Commit e593a88e authored by Chenu Denis's avatar Chenu Denis
Browse files

[feature] More variation (mono colored via @brand-primary)

parent 2cff4b0d
......@@ -16,7 +16,7 @@
<supportUrl>https://extensions.sondages.pro/themes-and-templates/skelvanilla-a11y-and-usuability/</supportUrl>
<copyright>Copyright (C) 2018-2019 Denis Chenu / Sondages Pro</copyright>
<license>GNU General Public License version 3 or later</license>
<version>7.0.0</version>
<version>7.1.0</version>
<apiVersion>3</apiVersion>
<description><![CDATA[<strong>LimeSurvey Bootstrap Vanilla Survey Theme with Accessibility and Options</strong><br>Base on vanilla theme, usage of more aria, fix some role and aria from core.<br>Allow usage of a lot of variations, list of variation can be updated. Some decoration option using boostrap class.]]></description>
<last_update>2019-10-25 14:31:50</last_update>
......@@ -205,6 +205,55 @@
"button": "1",
"awesome": "1",
"button_awesome": "1"
},
"fruity-apple_blossom": {
"name": "(Fruity) Apple Blossom",
"base": "1",
"button": "1",
"awesome": "1",
"button_awesome": "1"
},
"fruity-black_pearl": {
"name": "(Fruity) Black Pearl",
"base": "1",
"button": "1",
"awesome": "1",
"button_awesome": "1"
},
"fruity-free_magenta": {
"name": "(Fruity) Free magenta",
"base": "1",
"button": "1",
"awesome": "1",
"button_awesome": "1"
},
"fruity-purple_tentacle": {
"name": "(Fruity) Purple Tentacle",
"base": "1",
"button": "1",
"awesome": "1",
"button_awesome": "1"
},
"fruity-sea_green": {
"name": "(Fruity) Sea Green",
"base": "1",
"button": "1",
"awesome": "1",
"button_awesome": "1"
},
"fruity-skyline_blue": {
"name": "(Fruity) Skyline Blue",
"base": "1",
"button": "1",
"awesome": "1",
"button_awesome": "1"
},
"fruity-sunset_orange": {
"name": "(Fruity) Sunset Orange",
"base": "1",
"button": "1",
"awesome": "1",
"button_awesome": "1"
}
}</availablevariations>
</options>
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -185,6 +185,7 @@ var ThemeOptions = function(){
cssFrameworkCss = 'inherit';
}
if(optionObject.theme != "inherit" && optionObject.theme != "off") {
cssFrameworkCss = {};
cssFrameworkCss.replace = [["bootstrap.css",optionObject.theme]];
}
if(optionObject.theme == "off") {
......@@ -265,6 +266,9 @@ var ThemeOptions = function(){
//Create a copy of the inherent optionObject
var newOptionObject = $.extend(true, {}, optionObject);
newOptionObject.generalInherit = null;
if( $("#inherited-available-variation").length ) { // Force inherit for available variation (can be updated only in globval or gsid)
newOptionObject.availablevariations = "inherit";
}
//now write the newly created object to the correspondent field as a json string
$('#TemplateConfiguration_options').val(JSON.stringify(newOptionObject));
// CSS part
......
......@@ -47,7 +47,10 @@
</div>
{% endif %}
{# If this is a surveyspecific settings page, offer the possibility to do a full inheritance of the parent template #}
{# CSS variation : #}
{# CSS variation : fixed for parent, can be updated in child #}
{% if templateConfiguration.sid is empty %}
{% set sAvailableVariations = templateConfiguration.availablevariations %}
{% endif %}
{% if templateConfiguration.availablevariations is null %}
{% if oParentOptions.availablevariations is null %}
{% set sAvailableVariations = '{"contrast":{"name":"Contrast","base":"true","button":"true","awesome":"true","button_awesome":"true"},"bootstrap":{"name":"Bootstrap","base":"true","button":"true","awesome":"true","button_awesome":"true"},"cerulean":{"name":"Cerulean","base":"true","button":"true","awesome":"true","button_awesome":"true"},"cosmo":{"name":"Cosmo","base":"true","button":"true","awesome":"true","button_awesome":"true"},"cyborg":{"name":"Cyborg","base":"true","button":"true","awesome":"true","button_awesome":"true"},"darkly":{"name":"Darkly","base":"true","button":"true","awesome":"true","button_awesome":"true"},"flatly":{"name":"Flatly","base":"true","button":"true","awesome":"true","button_awesome":"true"},"journal":{"name":"Journal","base":"true","button":"true","awesome":"true","button_awesome":"true"},"lumen":{"name":"Lumen","base":"true","button":"true","awesome":"true","button_awesome":"true"},"paper":{"name":"Paper","base":"true","button":"true","awesome":"true","button_awesome":"true"},"readable":{"name":"Readable","base":"true","button":"true","awesome":"true","button_awesome":"true"},"sandstone":{"name":"Sandstone","base":"true","button":"true","awesome":"true","button_awesome":"true"},"simplex":{"name":"Simplex","base":"true","button":"true","awesome":"true","button_awesome":"true"},"slate":{"name":"Slate","base":"true","button":"true","awesome":"true","button_awesome":"true"},"spacelab":{"name":"Spacelab","base":"true","button":"true","awesome":"true","button_awesome":"true"},"superhero":{"name":"Superhero","base":"true","button":"true","awesome":"true","button_awesome":"true"},"united":{"name":"United","base":"true","button":"true","awesome":"true","button_awesome":"true"},"yeti":{"name":"Yeti","base":"true","button":"true","awesome":"true","button_awesome":"true"}}' %}
......@@ -434,7 +437,10 @@
{% endif %}
{% endfor %}
</select>
<p class="help-block">Except contrast, all this variations come from <a href="https://bootswatch.com/3/">bootswatch</a>, Copyright (c) 2013 Thomas Park.</p>
<p class="help-block">All variations done with <a href="https://gitlab.com/SondagesPro/SurveyThemes/less-skelvanilla">less-skelvanilla</a>.<br>Contrast use contrasted color and use the default browser font and font size. Fruity are updated contrats using same color than Fruity LimeSurvey theme, Copyright (c) 2018-2019 LimeSurvey team.<br>Other variations come from <a href="https://bootswatch.com/3/">bootswatch</a>, Copyright (c) 2013 Thomas Park.</p>
{% if templateConfiguration.sid is not empty %}
<div class='hidden' id='inherited-available-variation'></div>
{% endif %}
</div>
</div>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment