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

[fix] Show good border in list when there are hidden eleemnt

parent ecc61636
......@@ -16,10 +16,10 @@
<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>5.1.1</version>
<version>5.1.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>2019-06-21 00:07:46</last_update>
<last_update>2019-10-03 09:50:38</last_update>
<extends>vanilla</extends>
</metadata>
......
......@@ -6384,7 +6384,9 @@ For iPads specifically : add this : (min-device-width: 768px) and (max-device-wi
margin: 0;
}
.radio-list li.radio-item:last-child label,
.checkbox-list li.checkbox-item:last-child label {
.checkbox-list li.checkbox-item:last-child label,
.radio-list li.radio-item.last-child label,
.checkbox-list li.checkbox-item.last-child label {
border-bottom-width: 1px;
}
.radio-list li.radio-text-item,
......@@ -6395,7 +6397,9 @@ For iPads specifically : add this : (min-device-width: 768px) and (max-device-wi
margin: 0;
}
.radio-list li.radio-text-item:last-child,
.checkbox-list li.checkbox-text-item:last-child {
.checkbox-list li.checkbox-text-item:last-child,
.radio-list li.radio-text-item.last-child,
.checkbox-list li.checkbox-text-item.last-child {
border-bottom-width: 1px;
}
ul.form-inline li.radio-item label {
......@@ -6403,17 +6407,23 @@ ul.form-inline li.radio-item label {
}
/* Round border on list */
.radio-list li:first-child label,
.checkbox-list ul li:first-child label {
.checkbox-list ul li:first-child label,
.radio-list li.first-child label,
.checkbox-list ul li.first-child label {
border-top-left-radius: 0.3rem;
border-top-right-radius: 0.3rem;
}
.radio-list ul li:last-child label,
.checkbox-list ul li:last-child label {
.checkbox-list ul li:last-child label,
.radio-list ul li.last-child label,
.checkbox-list ul li.last-child label {
border-bottom-left-radius: 0.3rem;
border-bottom-right-radius: 0.3rem;
}
.radio-list li.radio-text-item:last-child,
.checkbox-list li.checkbox-text-item:last-child {
.checkbox-list li.checkbox-text-item:last-child,
.radio-list li.radio-text-item.last-child,
.checkbox-list li.checkbox-text-item.last-child {
border-bottom-left-radius: 0.3rem;
border-bottom-right-radius: 0.3rem;
}
......
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -73,6 +73,28 @@ var ThemeScripts = function(){
});
};
var fixLastItemClass = function fixLastItemClass(){
$("[id^='question']").on('relevance:on',"li[id^='javatbd']",function(event,data) {
if(event.target != this) return; // not needed now, but after (2016-11-07)
data = $.extend({style:'hidden'}, data);
if(data.style=='hidden'){
$(this).parent("ul").children("li").removeClass("last-child").removeClass("first-child");
$(this).parent("ul").children("li:not('.ls-hidden')").last().addClass("last-child");
$(this).parent("ul").children("li:not('.ls-hidden')").first().addClass("first-child");
}
});
$("[id^='question']").on('relevance:off',"li[id^='javatbd']",function(event,data) {
if(event.target != this) return; // not needed now, but after (2016-11-07)
data = $.extend({style:'hidden'}, data);
$(this).addClass("ls-irrelevant ls-"+data.style);
if(data.style=='hidden'){
$(this).parent("ul").children("li").removeClass("last-child").removeClass("first-child");
$(this).parent("ul").children("li:not('.ls-hidden')").last().addClass("last-child");
$(this).parent("ul").children("li:not('.ls-hidden')").first().addClass("first-child");
}
});
}
var initTopMenuLanguageChanger = function(selectorItem, selectorGlobalForm){
// $(selectorContainer).height($('#main-row').height());
$(selectorItem).on('click', function(){
......@@ -96,6 +118,7 @@ var ThemeScripts = function(){
//focusFirst();
/* Some function are launched in endpage.pstpl */
hideEmptyPart();
fixLastItemClass();
// If list of nav-bar action is empty: remove it (else .navbar-toggle is shown on small screen) //
if(!$('#navbar li').length){
$('#navbar').remove();
......@@ -181,6 +204,7 @@ var ThemeScripts = function(){
sliderSuffixClone : sliderSuffixClone,
hideQuestionWithRelevanceSubQuestion : window.templateCore.hideQuestionWithRelevanceSubQuestion,
hideEmptyPart : hideEmptyPart,
fixLastItemClass : fixLastItemClass,
initTopMenuLanguageChanger: initTopMenuLanguageChanger,
log: logObject
};
......
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