compact fader's inner meter

This commit is contained in:
jean-emmanuel 2016-04-04 08:00:24 +02:00
parent 86f5f5f461
commit 5ef75d3794
3 changed files with 19 additions and 7 deletions

File diff suppressed because one or more lines are too long

View file

@ -1770,8 +1770,8 @@ module.exports.create = function(widgetData,container) {
container.addClass('align-'+widgetData.align)
}
if (widgetData.noPip) wrapper.addClass('no-pip')
if (widgetData.compact) container.addClass('compact')
if (widgetData.noPip) wrapper.addClass('no-pip')
gauge.size = 0
fader.size = 0
@ -1814,7 +1814,7 @@ module.exports.create = function(widgetData,container) {
rangeLabels.push(label)
}
if (!widget.noPip) {
if (!widgetData.noPip&&!widgetData.compact) {
var pipTexts = {}
for (k in rangeKeys) {
pipTexts[rangeKeys[k]]=rangeLabels[k]

View file

@ -72,10 +72,12 @@
}
.meter-container {
-webkit-mask:none!important;
width:2rem;
left:0%;
right:auto;
background: none;
width:4rem;
border-left:2rem solid var(--color-bg);
background: var(--color-track);
left:auto;
right:0;
top:-1rem;
.meter {
background: none;
}
@ -270,6 +272,16 @@
height:100%;
margin-bottom:0;
}
.meter-container {
left:0;
right:-1rem;
top:auto;
bottom:0;
border-left:0;
border-top:2rem solid var(--color-bg);
height:4rem;
width:auto;
}
}
}