adding compact option to fader (wip)
This commit is contained in:
parent
8f36debf99
commit
11a1d5a5ab
4 changed files with 77 additions and 2 deletions
File diff suppressed because one or more lines are too long
|
|
@ -19,6 +19,7 @@ module.exports.options = {
|
|||
align:'center',
|
||||
horizontal:false,
|
||||
noPip:false,
|
||||
compact:false,
|
||||
color:'auto',
|
||||
css:'',
|
||||
|
||||
|
|
@ -70,6 +71,7 @@ module.exports.create = function(widgetData,container) {
|
|||
}
|
||||
|
||||
if (widgetData.noPip) wrapper.addClass('no-pip')
|
||||
if (widgetData.compact) container.addClass('compact')
|
||||
|
||||
gauge.size = 0
|
||||
fader.size = 0
|
||||
|
|
|
|||
|
|
@ -1719,6 +1719,7 @@ module.exports.options = {
|
|||
align:'center',
|
||||
horizontal:false,
|
||||
noPip:false,
|
||||
compact:false,
|
||||
color:'auto',
|
||||
css:'',
|
||||
|
||||
|
|
@ -1770,6 +1771,7 @@ module.exports.create = function(widgetData,container) {
|
|||
}
|
||||
|
||||
if (widgetData.noPip) wrapper.addClass('no-pip')
|
||||
if (widgetData.compact) container.addClass('compact')
|
||||
|
||||
gauge.size = 0
|
||||
fader.size = 0
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@
|
|||
min-height: 200rem;
|
||||
height:100%;
|
||||
|
||||
|
||||
&.align-right .fader-wrapper {
|
||||
.fader {
|
||||
margin-left:calc(50% + 15rem);
|
||||
|
|
@ -38,6 +37,53 @@
|
|||
}
|
||||
}
|
||||
|
||||
&.compact .fader-wrapper-outer {
|
||||
.input {
|
||||
position: absolute;
|
||||
top:50%;
|
||||
transform: rotate(-90deg);
|
||||
pointer-events: none;
|
||||
width: 100rem;
|
||||
margin-left: -50rem;
|
||||
left:50%;
|
||||
}
|
||||
.fader-wrapper {
|
||||
padding:1rem 0 0!important;
|
||||
background:var(--color-track);
|
||||
.fader {
|
||||
width:100%;
|
||||
margin: 0;
|
||||
&:before {
|
||||
content:none;
|
||||
}
|
||||
.gauge {
|
||||
opacity: .25;
|
||||
}
|
||||
.knob {
|
||||
&:before, &:after {
|
||||
display:none;
|
||||
}
|
||||
width:100%;
|
||||
height:1rem;
|
||||
background:var(--color-knob);
|
||||
}
|
||||
.pips {
|
||||
display: none;
|
||||
}
|
||||
.meter-container {
|
||||
-webkit-mask:none;
|
||||
width:2rem;
|
||||
left:0%;
|
||||
right:auto;
|
||||
background: none;
|
||||
.meter {
|
||||
background: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.input {
|
||||
margin-top:-5rem;
|
||||
}
|
||||
|
|
@ -201,6 +247,31 @@
|
|||
height: auto;
|
||||
width:300rem;
|
||||
flex-shrink: 0;
|
||||
|
||||
&.compact .fader-wrapper-outer {
|
||||
|
||||
.input {
|
||||
transform: none;
|
||||
top:50%;
|
||||
margin-top:-15rem;
|
||||
}
|
||||
.fader-wrapper {
|
||||
display:flex;
|
||||
flex:1;
|
||||
padding:0 1rem 0 0!important;
|
||||
}
|
||||
.fader {
|
||||
height:100%;
|
||||
top:0;
|
||||
.knob {
|
||||
width:1rem;
|
||||
height:100%;
|
||||
margin-bottom:0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.fader-wrapper-outer {
|
||||
position: relative;
|
||||
top:auto;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue