using a mix of border and box shadow to get merging outlines and pixel perfect uis
This commit is contained in:
parent
c2eb3cef06
commit
aa027ddbf2
5 changed files with 39 additions and 29 deletions
File diff suppressed because one or more lines are too long
|
|
@ -6,22 +6,19 @@
|
|||
position:relative;
|
||||
padding:35rem 0 0;
|
||||
vertical-align:top;
|
||||
box-shadow: 0 0 0 1rem $color-bg;
|
||||
box-shadow: -0.5rem -0.5rem 0 0.5rem $color-bg;
|
||||
border-right:1rem solid $color-bg;
|
||||
border-bottom:1rem solid $color-bg;
|
||||
background:$color-fg;
|
||||
background-clip:padding-box;
|
||||
-webkit-tap-highlight-color:transparent;
|
||||
min-height:30rem;
|
||||
min-width:30rem;
|
||||
|
||||
&:not(:last-child):not(.absolute-position) {
|
||||
margin-right:1rem//$gutter;
|
||||
}
|
||||
|
||||
|
||||
&.absolute-position {
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
border:0;
|
||||
}
|
||||
|
||||
&.nolabel {
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
display: block;
|
||||
width:auto;
|
||||
margin:0;
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
&.vertical {
|
||||
|
|
@ -25,6 +26,10 @@
|
|||
border-bottom:0;
|
||||
.strip > .widget {
|
||||
max-width: 100%;
|
||||
border-right:0;
|
||||
&:last-child {
|
||||
border-bottom:0;
|
||||
}
|
||||
}
|
||||
}
|
||||
&.horizontal {
|
||||
|
|
@ -42,7 +47,10 @@
|
|||
width: 100%;
|
||||
min-height: 100%;
|
||||
max-height: 100%;
|
||||
|
||||
border-bottom:0;
|
||||
&:last-child {
|
||||
border-right:0;
|
||||
}
|
||||
}
|
||||
}
|
||||
> .label {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,8 @@
|
|||
"logScale": false,
|
||||
"precision": 2,
|
||||
"path": "/fader_1",
|
||||
"target": []
|
||||
"target": [],
|
||||
"meter": false
|
||||
},
|
||||
{
|
||||
"type": "fader",
|
||||
|
|
@ -44,7 +45,8 @@
|
|||
"logScale": false,
|
||||
"precision": 2,
|
||||
"path": "/fader_2",
|
||||
"target": []
|
||||
"target": [],
|
||||
"meter": false
|
||||
},
|
||||
{
|
||||
"type": "fader",
|
||||
|
|
@ -66,7 +68,8 @@
|
|||
"logScale": false,
|
||||
"precision": 2,
|
||||
"path": "/fader_3",
|
||||
"target": []
|
||||
"target": [],
|
||||
"meter": false
|
||||
},
|
||||
{
|
||||
"type": "fader",
|
||||
|
|
@ -88,16 +91,17 @@
|
|||
"logScale": false,
|
||||
"precision": 2,
|
||||
"path": "/fader_4",
|
||||
"target": []
|
||||
"target": [],
|
||||
"meter": false
|
||||
},
|
||||
{
|
||||
"type": "plot",
|
||||
"id": "plot_1",
|
||||
"label": "plot (faders)",
|
||||
"left": 406,
|
||||
"top": 129,
|
||||
"width": "auto",
|
||||
"height": 124,
|
||||
"left": 400,
|
||||
"top": 122,
|
||||
"width": 200,
|
||||
"height": 131,
|
||||
"css": "",
|
||||
"points": [
|
||||
[
|
||||
|
|
@ -131,8 +135,8 @@
|
|||
},
|
||||
{
|
||||
"type": "visualizer",
|
||||
"left": 406,
|
||||
"top": 7,
|
||||
"left": 400,
|
||||
"top": 0,
|
||||
"width": "auto",
|
||||
"height": 122,
|
||||
"css": "",
|
||||
|
|
@ -152,8 +156,8 @@
|
|||
"id": "rgb_1",
|
||||
"linkId": "",
|
||||
"label": "rgb_1",
|
||||
"left": 6,
|
||||
"top": 261,
|
||||
"left": 0,
|
||||
"top": 254,
|
||||
"width": "auto",
|
||||
"height": "auto",
|
||||
"css": "",
|
||||
|
|
@ -165,10 +169,10 @@
|
|||
},
|
||||
{
|
||||
"type": "plot",
|
||||
"left": 213,
|
||||
"top": 263,
|
||||
"width": 191,
|
||||
"height": 248,
|
||||
"left": 200,
|
||||
"top": 253,
|
||||
"width": 400,
|
||||
"height": 251,
|
||||
"css": "",
|
||||
"points": "rgb_1",
|
||||
"rangeX": {
|
||||
|
|
@ -216,7 +220,7 @@
|
|||
"label": "plot (multifader)",
|
||||
"left": 0,
|
||||
"top": 228,
|
||||
"width": 553,
|
||||
"width": 557,
|
||||
"height": 220,
|
||||
"points": "multifader_1",
|
||||
"rangeX": {
|
||||
|
|
@ -236,10 +240,10 @@
|
|||
"type": "multitoggle",
|
||||
"id": "multitoggle_1",
|
||||
"label": "mutlitoggle_1",
|
||||
"left": 552,
|
||||
"left": 557,
|
||||
"top": 0,
|
||||
"width": 209,
|
||||
"height": 228,
|
||||
"height": 229,
|
||||
"css": "",
|
||||
"precision": 2,
|
||||
"path": "/multifader_2",
|
||||
|
|
@ -253,7 +257,7 @@
|
|||
},
|
||||
{
|
||||
"type": "plot",
|
||||
"left": 552,
|
||||
"left": 557,
|
||||
"top": 228,
|
||||
"width": 209,
|
||||
"height": 220,
|
||||
|
|
|
|||
|
|
@ -10,7 +10,8 @@ range: {"min":0,"max":1}, // [object] defining the breakpoints of the fader
|
|||
// keys can be percentages or 'min' / 'max'
|
||||
logScale: false, // [bool] use logarithmic scale (log10)
|
||||
unit: false, // [string] value suffix
|
||||
absolute:false // [bool] set to true for absolute value on touch/click instead of relative dragging
|
||||
absolute:false, // [bool] set to true for absolute value on touch/click instead of relative dragging
|
||||
meter:false, // [bool] set to true to display a vumeter which will display values send to '/widgets_path/meter'
|
||||
```
|
||||
|
||||
## knob
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue