Commit df61ff1b authored by Chenu Denis's avatar Chenu Denis

[fix] Some css and body-loaded issue

parent a102f1ba
......@@ -17,7 +17,7 @@
<version>3.2.2</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>2018-12-23 19:07:26</last_update>
<last_update>2019-01-08 14:27:13</last_update>
<extends>vanilla</extends>
</metadata>
......
......@@ -19,8 +19,8 @@
/* question-text h1,h2,h3 … remove extra margin */
h2.question-text ,h3.question-text,
.lead.question-text,
.h2.question-text,.h3.question-text,.h4.question-text,.h4.question-text{
margin-top:0;margin-bottom:0
.h2.question-text,.h3.question-text,.h4.question-text,.h4.question-text,.h5.question-text,.h6.question-text{
margin-top:0;margin-bottom:0.5em;
}
/* For footer, inspirated by layout-galla */
html, body {height: 100%;}
......
......@@ -259,6 +259,7 @@
{% if templateConfiguration.sid is not empty or templateConfiguration.gsid is not empty %}
<option value="inherit"> {{ gT('Inherit') }}</option>
{% endif %}
<option value="body-color">{{ gT("Body color") }}</option>
<option value="text-muted">{{ gT("Text muted") }}</option>
<option value="text-primary">{{ gT("Text primary") }}</option>
<option value="text-info">{{ gT("Text info") }}</option>
......@@ -277,6 +278,7 @@
{% if templateConfiguration.sid is not empty or templateConfiguration.gsid is not empty %}
<option value="inherit"> {{ gT('Inherit') }}</option>
{% endif %}
<option value="body-color">{{ gT("Body color") }}</option>
<option value="text-muted">{{ gT("Text muted") }}</option>
<option value="text-primary">{{ gT("Text primary") }}</option>
<option value="text-info">{{ gT("Text info") }}</option>
......
......@@ -86,7 +86,7 @@ var skelVanilla = {
$(document).ready(function(){
$("body").removeClass("body-loading").addClass("body-loaded");
});
$("button[type='submit']").on('click',function(){
$("button[type='submit']:not([data-confirmedby])").on('click',function(){
if (!$(this).closest('form')[0].checkValidity || $(this).closest('form')[0].checkValidity()) {
$("body").removeClass("body-loaded").addClass("body-loading");
}
......
......@@ -58,7 +58,7 @@
basicThemeScripts.initGlobal();
window.basicThemeScripts.init();
window.TemplateAccessible.init();
skelVanilla.init();
window.skelVanilla.init();
</script>
{% endblock %}
</body>
......
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