stacked faders are now horizontal

This commit is contained in:
jean-emmanuel 2015-04-12 00:24:46 +02:00 • committed by Jean-Emmanuel
parent 85fe3139b4
commit 0c5b77e848
4 changed files with 337 additions and 254 deletions

View file

@ -96,10 +96,10 @@
.noUi-target {
border-radius: 4px;
border: 1px solid #D3D3D3;
box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;
}
.noUi-target.noUi-connect {
box-shadow: inset 0 0 3px rgba(51,51,51,0.45), 0 3px 6px -5px #BBB;
}
/* Handles and cursors;
@ -336,6 +336,16 @@
width:500px;
left:-250px;
}
.noUi-horizontal .noUi-handle:after {
content:"";
position:absolute;
height:500px;
left:-5000px;
width:10000px;
top:-250px;
background:none;
display:block!important;
}
.noUi-pips {
font-size:11px;
font-family:sans;

View file

@ -97,7 +97,6 @@ function parsewidgets(widgets,parent) {
<div class="title" '+color+'>'+title+'</div>\
<div class="stack-wrapper">\
</div>\
<input disabled></input>\
</div>\
');
@ -203,12 +202,15 @@ function parsewidgets(widgets,parent) {
}
var pips = pips();
var orientation = parent.hasClass('stack-wrapper')?'horizontal':'vertical',
direction = parent.hasClass('stack-wrapper')?'ltr':'rtl',
density = parent.hasClass('stack-wrapper')?'2':'1';
$widget.fader
.noUiSlider({
orientation:'vertical',
direction: "rtl",
behaviour: "none-drag",
orientation:orientation,
direction: direction,
behaviour: "drag",
connect: "lower",
//animate:false,
start: 0,
@ -216,7 +218,7 @@ function parsewidgets(widgets,parent) {
})
.noUiSlider_pips({
mode: 'values',
density: 1,
density: density,
filter:function(v,t){return v==0?1:2;},
values: pips,
format: wNumb({})

View file

@ -253,20 +253,45 @@ a.on, a:active {
/* STACK (contains any widgets) */
.stack {
width:auto;
width:350px;
height:auto;
padding-bottom:0;
}
.stack-wrapper {
height:100%;
}
.stack-wrapper .widget:last-child {
.stack-wrapper .widget {
border-right:0;
}
.stack-wrapper .widget:first-child {
border-left:0;
}
.stack .widget {
height:80px;
width:100%;
display:block;
padding:0;}
.stack .fader {
height:18px;
width:100%;
}
.stack .fader-wrapper , .stack .button-wrapper {
padding:15px 20px;
float:right;
width:70%;
}
.stack .widget .title {
width:30%;
height:50%
}
.stack .widget input {
width:30%;
height:50%;
left:0;
right:auto;
border-top:0;
}
/* STRIP (vertical fader) */

File diff suppressed because it is too large Load diff