use flexbox everywhere to make input removal possible
This commit is contained in:
parent
99ca307ae8
commit
94b9c99319
14 changed files with 104 additions and 131 deletions
|
|
@ -56,6 +56,7 @@ This will create a headless app available through http on port 8080. Multiple cl
|
|||
- [Editor reference](resources/docs/editor-reference.md)
|
||||
- [Session reference](resources/docs/session-reference.md)
|
||||
- [Widgets reference](resources/docs/widgets-reference.md)
|
||||
- [Theming](resources/docs/theming.md)
|
||||
|
||||
### License & credits
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -42,8 +42,10 @@ module.exports.create = function(widgetData,container) {
|
|||
<div class="handle"></div>
|
||||
<div class="round"></div>
|
||||
</div>
|
||||
<div class="pip min"></div>
|
||||
<div class="pip max"></div>
|
||||
<div class="pips">
|
||||
<div class="pip min"></div>
|
||||
<div class="pip max"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input"></div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -4,17 +4,21 @@
|
|||
height:auto;
|
||||
overflow: hidden;
|
||||
position:relative;
|
||||
padding:35rem 0 0;
|
||||
vertical-align:top;
|
||||
box-shadow: -0.5rem -0.5rem 0 0.5rem var(--color-bg);
|
||||
box-shadow: -0.5rem -0.5rem 0 0.5rem;
|
||||
color:var(--color-bg);
|
||||
border-right:1rem solid var(--color-bg);
|
||||
border-bottom:1rem solid var(--color-bg);
|
||||
background:var(--color-fg);
|
||||
background-clip:padding-box;
|
||||
-webkit-tap-highlight-color:transparent;
|
||||
min-height:30rem;
|
||||
min-width:30rem;
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
|
||||
> * {
|
||||
color:var(--color-text)
|
||||
}
|
||||
|
||||
&.absolute-position {
|
||||
position: absolute;
|
||||
|
|
@ -22,7 +26,6 @@
|
|||
}
|
||||
|
||||
&.nolabel {
|
||||
padding-top:0;
|
||||
> .label {
|
||||
display:none;
|
||||
}
|
||||
|
|
@ -30,14 +33,12 @@
|
|||
|
||||
.label {
|
||||
padding:10rem 10rem;
|
||||
position:absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
text-overflow:ellipsis;
|
||||
overflow:hidden;
|
||||
text-align:center;
|
||||
height:35rem;
|
||||
max-height:35rem;
|
||||
width: 100%;
|
||||
background: var(--color-faded);
|
||||
border-bottom:1rem solid var(--color-bg);
|
||||
&.accent {
|
||||
|
|
|
|||
|
|
@ -3,48 +3,43 @@
|
|||
min-height: 200rem;
|
||||
height:100%;
|
||||
|
||||
&.nolabel .fader-wrapper-outer {
|
||||
top:0;
|
||||
.input {
|
||||
margin-top:-5rem;
|
||||
}
|
||||
|
||||
.fader-wrapper-outer {
|
||||
padding-bottom:30rem;
|
||||
position: absolute;
|
||||
top:30rem;
|
||||
bottom:0;
|
||||
left:0;
|
||||
right:0;
|
||||
.input {
|
||||
position:absolute;
|
||||
bottom:0;
|
||||
}
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex:1;
|
||||
}
|
||||
|
||||
.fader-wrapper {
|
||||
padding:20rem 20rem 10rem;
|
||||
padding:20rem;
|
||||
flex:1;
|
||||
overflow:hidden;
|
||||
height:100%;
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
cursor: -webkit-grab;
|
||||
&:active {
|
||||
cursor: -webkit-grabbing;
|
||||
}
|
||||
.fader {
|
||||
height:100%;
|
||||
width:4rem;
|
||||
position: relative;
|
||||
margin:0 auto;
|
||||
pointer-events: none;
|
||||
flex:1;
|
||||
&:before {
|
||||
content:"";
|
||||
width:100%;
|
||||
height:100%;
|
||||
background:var(--color-track);
|
||||
z-index: 1;
|
||||
position: relative;
|
||||
display:block;
|
||||
box-shadow: 0 0 0 15rem;
|
||||
color: var(--color-fg);
|
||||
position: absolute;
|
||||
}
|
||||
.handle {
|
||||
position: absolute;
|
||||
|
|
@ -106,10 +101,7 @@
|
|||
-webkit-mask:linear-gradient(to right,#000 1rem, rgba(0,0,0,0) 1rem, rgba(0,0,0,0) 27rem, #000 27rem);
|
||||
opacity:0.75;
|
||||
.meter {
|
||||
left:0;
|
||||
right:0;
|
||||
top:0;
|
||||
bottom:0;
|
||||
margin:0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -160,10 +152,14 @@
|
|||
.fader-wrapper-outer {
|
||||
position: relative;
|
||||
top:auto;
|
||||
padding-bottom: 30rem;
|
||||
height: 100%;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
|
||||
.fader-wrapper {
|
||||
padding:20rem 20rem 35rem;
|
||||
display: block;
|
||||
flex:0;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.fader {
|
||||
width:100%;
|
||||
|
|
|
|||
|
|
@ -2,36 +2,28 @@
|
|||
|
||||
.knob-container {
|
||||
width: 100rem;
|
||||
display: inline-flex!important;
|
||||
align-items: center;
|
||||
min-height: 135rem;
|
||||
flex-shrink: 0;
|
||||
&.nolabel .knob-wrapper-outer{
|
||||
top:0;
|
||||
padding-bottom:30rem;
|
||||
|
||||
.input {
|
||||
margin-top:-5rem;
|
||||
}
|
||||
|
||||
.knob-wrapper-outer {
|
||||
width: 100%;
|
||||
top: 30rem;
|
||||
bottom: 0;
|
||||
padding:10rem 0 50rem;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex:1;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
|
||||
.input {
|
||||
bottom:0;
|
||||
position: absolute;
|
||||
left:0;
|
||||
}
|
||||
|
||||
|
||||
.knob-wrapper {
|
||||
margin:0 auto;
|
||||
margin:15rem auto 5rem;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
|
|
@ -175,23 +167,20 @@
|
|||
opacity: .2;
|
||||
}
|
||||
}
|
||||
.pips {
|
||||
width:100%;
|
||||
}
|
||||
.pip {
|
||||
position:absolute;
|
||||
font-size:11rem;
|
||||
color:var(--color-text);
|
||||
pointer-events: none;
|
||||
top:50%;
|
||||
margin-top:30%;
|
||||
display:inline-block;
|
||||
&.min {
|
||||
left:0;
|
||||
right:50%;
|
||||
width:50%;
|
||||
text-align:center;
|
||||
}
|
||||
&.max {
|
||||
left:50%;
|
||||
width:50%;
|
||||
right:0;
|
||||
text-align:center;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,13 +9,8 @@
|
|||
}
|
||||
}
|
||||
.matrix {
|
||||
|
||||
flex:1;
|
||||
overflow: auto;
|
||||
position: absolute;
|
||||
top:35rem;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
background: var(--color-bg);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
|
@ -25,24 +20,23 @@
|
|||
min-height: 0;
|
||||
min-width: 0;
|
||||
margin:0!important;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.multifader-container {
|
||||
.matrix {
|
||||
padding:0!important
|
||||
}
|
||||
.widget {
|
||||
border: 0!important;
|
||||
// box-shadow: none!important;
|
||||
.label {
|
||||
background:none;
|
||||
border:0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.multifader-container {
|
||||
.matrix {
|
||||
padding:0!important;
|
||||
align-items:stretch;
|
||||
}
|
||||
.widget {
|
||||
height: auto;
|
||||
}
|
||||
.fader-wrapper {
|
||||
padding:10rem 0!important;
|
||||
padding:10rem 0 20rem!important;
|
||||
.fader {
|
||||
left:0!important;
|
||||
.pips {
|
||||
|
|
|
|||
|
|
@ -3,23 +3,16 @@
|
|||
width:200rem;
|
||||
height:250rem;
|
||||
flex-shrink: 0;
|
||||
&.nolabel .xy-wrapper {
|
||||
top:0;
|
||||
}
|
||||
display: flex;
|
||||
}
|
||||
.xy-wrapper {
|
||||
position: absolute;
|
||||
top:35rem;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
padding-bottom: 60rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.value {
|
||||
width:100%;
|
||||
position: absolute;
|
||||
bottom:0;
|
||||
border-top: 1rem solid var(--color-bg);
|
||||
}
|
||||
.input, input {
|
||||
|
|
@ -81,7 +74,6 @@
|
|||
|
||||
|
||||
.rgb-wrapper {
|
||||
padding-bottom: 90rem;
|
||||
.input, input {
|
||||
width:33.33%;
|
||||
}
|
||||
|
|
@ -138,13 +130,11 @@
|
|||
}
|
||||
.hue {
|
||||
width:auto;
|
||||
height:29rem;
|
||||
min-height:30rem;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
bottom:61rem;
|
||||
left:0;
|
||||
right:0;
|
||||
cursor: -webkit-grab;
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
.bg {
|
||||
position: absolute;
|
||||
top:0;
|
||||
|
|
|
|||
|
|
@ -6,6 +6,14 @@
|
|||
min-width: 200rem;
|
||||
min-height: 200rem;
|
||||
|
||||
&.label {
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
width:auto;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb, ::-webkit-scrollbar-track-piece {
|
||||
border-top: 1rem solid var(--color-bg);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,19 +42,16 @@
|
|||
min-height: 200rem;
|
||||
min-width: 200rem;
|
||||
.plot {
|
||||
position: absolute;
|
||||
top: 35rem;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
// padding:2rem;
|
||||
}
|
||||
&.nolabel .plot {
|
||||
top:0;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex:1;
|
||||
position: relative;
|
||||
}
|
||||
canvas {
|
||||
position: absolute;
|
||||
top:0;left:0;
|
||||
width:100%;
|
||||
height:100%;
|
||||
height: 100%;
|
||||
opacity: 0;
|
||||
transition: opacity .2s;
|
||||
&.visible {
|
||||
|
|
@ -65,27 +62,19 @@
|
|||
|
||||
|
||||
.meter-container {
|
||||
&.nolabel .meter {
|
||||
top:1rem;
|
||||
}
|
||||
|
||||
.meter {
|
||||
position: absolute;
|
||||
top:35rem;
|
||||
left:1rem;
|
||||
right:1rem;
|
||||
bottom:1rem;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex:1;
|
||||
margin: 0 1rem 1rem;
|
||||
|
||||
background: var(--color-bg);
|
||||
|
||||
.level {
|
||||
position: absolute;
|
||||
bottom:0!important;
|
||||
top:auto!important;
|
||||
width:100%;
|
||||
height:100%;
|
||||
flex:1;
|
||||
transform-origin: bottom;
|
||||
max-height:100%;
|
||||
max-width:100%;
|
||||
background:var(--color-accent);
|
||||
&.horizontal {
|
||||
transform-origin: left;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
|
||||
|
||||
.push-container {
|
||||
width:100rem;
|
||||
min-height: 65rem;
|
||||
|
|
@ -15,6 +13,8 @@
|
|||
right:0;
|
||||
bottom:0;
|
||||
height:auto;
|
||||
max-height: initial;
|
||||
border:0;
|
||||
background: none!important;
|
||||
text-align: center;
|
||||
pointer-events:none;
|
||||
|
|
|
|||
|
|
@ -1,28 +1,22 @@
|
|||
|
||||
|
||||
.strip-container {
|
||||
padding-top: 35rem;
|
||||
width:100rem;
|
||||
height:100%;
|
||||
overflow: visible;
|
||||
background: none;
|
||||
&.nolabel {
|
||||
padding: 0!important;
|
||||
}
|
||||
|
||||
.strip {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
> .widget {
|
||||
display: block;
|
||||
width:auto;
|
||||
margin:0;
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
&.vertical {
|
||||
padding-top: 35rem;
|
||||
border-bottom:0;
|
||||
.strip > .widget {
|
||||
max-width: 100%;
|
||||
|
|
@ -33,19 +27,21 @@
|
|||
}
|
||||
}
|
||||
&.horizontal {
|
||||
padding-top:0;
|
||||
padding-left: 35rem;
|
||||
width:100%;
|
||||
height:auto;
|
||||
display: block;
|
||||
height:200rem;
|
||||
display: flex;
|
||||
border-right:0;
|
||||
flex-direction: row;
|
||||
|
||||
.strip {
|
||||
flex-direction: row;
|
||||
flex:1;
|
||||
> .widget {
|
||||
flex-shrink: initial;
|
||||
width: 100%;
|
||||
min-height: 100%;
|
||||
max-height: 100%;
|
||||
height:100%;
|
||||
border-bottom:0;
|
||||
&:last-child {
|
||||
border-right:0;
|
||||
|
|
@ -55,10 +51,9 @@
|
|||
> .label {
|
||||
width:35rem;
|
||||
height:100%;
|
||||
left:0;
|
||||
top:0;
|
||||
border-bottom:0;
|
||||
border-right:1rem solid var(--color-bg);
|
||||
max-height: initial;
|
||||
span {
|
||||
transform: rotate(180deg);
|
||||
display: block;
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
display: flex;
|
||||
flex-direction:column;
|
||||
align-items: stretch;
|
||||
flex:1;
|
||||
&.horizontal {
|
||||
flex-direction:row;
|
||||
.value {
|
||||
|
|
@ -23,6 +24,8 @@
|
|||
flex-direction: column;
|
||||
border-top:0;
|
||||
border-right:1rem solid var(--color-bg);
|
||||
flex:1;
|
||||
height:auto;
|
||||
&:last-child {
|
||||
border-right:0;
|
||||
}
|
||||
|
|
@ -50,6 +53,9 @@
|
|||
word-break: break-all;
|
||||
overflow: hidden;
|
||||
border-bottom:2rem solid var(--color-faded);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
|
||||
&:first-child {
|
||||
border-top:0;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@
|
|||
right:0;
|
||||
bottom:0;
|
||||
height:auto;
|
||||
max-height: initial;
|
||||
border:0;
|
||||
background: none!important;
|
||||
text-align: center;
|
||||
pointer-events:none;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue