less pips for faders & set custome color on root widget's root element to allow css overriding
This commit is contained in:
parent
19f474ac69
commit
010fab2248
3 changed files with 8 additions and 8 deletions
File diff suppressed because one or more lines are too long
|
|
@ -145,13 +145,13 @@ module.exports.widgets = function(data,parent) {
|
|||
</div>
|
||||
`)
|
||||
|
||||
if (widgetData.color && widgetData.color!='auto') widgetContainer[0].style.setProperty('--color-accent',widgetData.color)
|
||||
|
||||
if (widgetData.label===false) widgetContainer.addClass('nolabel')
|
||||
|
||||
// create widget
|
||||
var widgetInner = createWidget[widgetData.type](widgetData,widgetContainer)
|
||||
|
||||
if (widgetData.color && widgetData.color!='auto') widgetInner[0].style.setProperty('--color-accent',widgetData.color)
|
||||
|
||||
widgetContainer[0].appendChild(widgetInner[0])
|
||||
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@
|
|||
z-index: 0;
|
||||
width: 38rem;
|
||||
margin-left: -19rem;
|
||||
background: repeating-linear-gradient(to bottom, var(--color-pips) 0, var(--color-pips) 1px, transparent 1px, transparent 3px);
|
||||
background: repeating-linear-gradient(to bottom, transparent 0, transparent 2px, var(--color-pips) 2px, var(--color-pips) 3px, transparent 3px, transparent 5px);
|
||||
|
||||
.pip {
|
||||
height:1px;
|
||||
|
|
@ -161,10 +161,10 @@
|
|||
&:before {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:-2px;
|
||||
top:-4px;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:-2px;
|
||||
bottom:-4px;
|
||||
background: var(--color-fg);
|
||||
z-index: -1;
|
||||
}
|
||||
|
|
@ -251,7 +251,7 @@
|
|||
height:4rem;
|
||||
width:100%;
|
||||
margin:0;
|
||||
background: repeating-linear-gradient(to right, var(--color-pips) 0, var(--color-pips) 1px, transparent 1px, transparent 3px);
|
||||
background: repeating-linear-gradient(to right, transparent 0, transparent 2px, var(--color-pips) 2px, var(--color-pips) 3px, transparent 3px, transparent 5px);
|
||||
}
|
||||
.pip {
|
||||
width:1px;
|
||||
|
|
@ -260,8 +260,8 @@
|
|||
&:before {
|
||||
top:0;
|
||||
bottom:0;
|
||||
left:-2px;
|
||||
right:-2px;
|
||||
left:-4px;
|
||||
right:-4px;
|
||||
}
|
||||
span {
|
||||
top:15rem;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue