big clean, multi point touchstate, auto update check toggle, rm switchers, add state fn to scripts

This commit is contained in:
bordun 2020-03-15 19:14:08 +01:00
parent d776922b24
commit f797988c64
51 changed files with 735 additions and 3591 deletions

View file

@ -40,7 +40,7 @@ $text: white;
--alpha-scrollbar-on: 0.5;
--scrollbar-size:12rem;
// --color-text: #{mix($base, $text, 40)};
--color-text-solid: #{$text};
--color-text: #{transparentize($text, .4)};
--color-widget: var(--color-accent);

View file

@ -156,6 +156,7 @@ osc-inspector-checkbox {
@include pseudo-fill($z: -1);
i {
opacity: 1;
color: var(--color-text-solid);
}
}

View file

@ -119,7 +119,7 @@ osc-settings-checkbox, osc-settings-reset, osc-settings-file {
&.on {
--alpha-fill: 0.5;
i {
color: white;
color: var(--color-text-solid);
opacity: 1;
}
}

View file

@ -1,501 +0,0 @@
.fader-container {
// note: ios doesn't trim css variables defined as follow
// we must avoid space after ":" otherwise it breaks the canvas colors
--color-pips:var(--color-custom);
--color-gauge:var(--color-custom);
--color-knob:var(--color-custom);
--gauge-width: 2;
padding: 1rem;
width:100rem;
height:300rem;
&.horizontal {
height:130rem;
width:300rem
}
}
.panel:not(.tab) > .fader-container {
padding: 0rem;
--color-border:transparent;
> .fader.compact {
padding: 1rem;
}
> .fader.compact > .wrapper {
box-shadow: 0 0 0 1rem var(--color-light),
0 0 0 1rem var(--color-fg);
border: 1rem solid var(--color-bg);
}
}
.fader {
height:100%;
overflow: hidden;
display: flex;
flex-direction: column;
position: relative;
flex: 1;
> .input {
height: 25rem;
flex:initial!important;
flex-shrink: 0!important;
display: block;
background: transparent!important;
border: 0!important;
}
.wrapper {
overflow: hidden;
flex: 1 1 100%;
max-height: 100%;
width: 100%;
position: relative;
display: flex;
justify-content: center;
border-radius: inherit;
touch-action: none;
> * {
pointer-events: none;
}
> canvas {
width: 20rem;
image-rendering:pixelated;
position: relative;
z-index: 1;
}
.meter-container {
height: auto;
width:6rem!important;
min-width: auto;
flex-grow: 0;
--color-border:transparent;
border:0;
margin: 20rem 6rem 20rem 0;
order: -1
}
.pips {
width: 35rem;
// background-color: var(--color-light);
position: relative;
margin: 23rem 0rem 21rem -10rem;
z-index: 0;
.pip {
height:1rem;
// background: var(--color-track);
color:var(--color-fg);
position: absolute;
left:0;
&:before {
content:"";
position: absolute;
top:0;
left:-12rem;
width:5rem;
bottom:0;
background: var(--color-custom);
opacity: 0.5;
box-shadow: 0 0 0 1rem var(--color-bg),
0 0 0 2rem var(--color-light);
}
&:after {
content:"";
position: absolute;
top:0;
left:7rem;
width:5rem;
bottom:0;
background: var(--color-custom);
opacity: 0.5;
box-shadow: 0 0 0 1rem var(--color-bg),
0 0 0 2rem var(--color-light);
}
span {
position: absolute;
width:30rem;
display: block;
text-align: center;
font-size:90%;
line-height: 12rem;
left:15rem;
top:-5.5rem;
color:var(--color-text-fade);
text-transform: none;
}
}
}
}
&.align-right {
.wrapper {
flex-direction: row-reverse;
.meter-container {
margin: 20rem 0rem 20rem 6rem;
}
.pips {
margin: 23rem -10rem 21rem 0rem;
// margin: 23rem 5rem 21rem 12rem;
// background-position: top right;
.pip {
right:0;
left:auto;
// margin-bottom: 0;
span {
right:15rem;
left:auto;
}
}
}
}
}
&.horizontal {
.wrapper {
flex-direction: column;
> canvas {
width: auto;
height: 20rem;
}
.meter-container {
width: auto!important;
height:6rem;
min-height: auto;
margin: 0 20rem 6rem 20rem;
}
.pips {
width:auto;
height: 25rem;
margin: -10rem 22rem 0 22rem;
.pip {
width:1rem;
height:5rem;
&:before {
left:0;
top:-12rem;
height:5rem;
right:0;
width:1rem;
}
&:after {
left:0;
top:7rem;
height:5rem;
right:0;
width:1rem;
}
span {
top:20rem;
left:-14rem!important;
right:auto;
}
}
}
}
}
&.compact {
.wrapper {
border: 1rem solid var(--color-bg);
> canvas {
flex: 1 1 100%;
background: var(--color-track);
order:1;
}
.meter-container {
order:3;
margin: 0;
border: 0;
box-shadow: none;
padding: 0;
.fader {
border: 0;
border-left: 1rem solid var(--color-bg);
.wrapper {
border: 0;
}
}
.pips {
display: none;
}
}
> .pips {
overflow: hidden;
margin: 0;
order:2;
background: var(--color-track);
border:0;
border-left: 1rem solid var(--color-bg);
width: 3rem;
.pip {
left:0;
right: 0;
span {
display: none;
}
&:before {
content:none;
}
&:after {
left:0;
right: 0;
box-shadow: none;
opacity: 1;
}
&:not(:last-child):not(:first-child) {
margin-bottom: -1rem;
}
}
}
}
&.align-right {
.wrapper {
.meter-container {
.fader {
border: 0;
border-right: 1rem solid var(--color-bg);
}
}
.pips {
border:0;
border-right: 1rem solid var(--color-bg);
}
}
}
--input-margin:0rem;
&.has-meter {
--input-margin:-3rem;
}
&.has-pips {
--input-margin:-1rem;
}
&.has-meter.has-pips {
--input-margin:-4rem;
}
.input {
pointer-events: none;
position: absolute;
border:0;
background:transparent;
overflow: hidden;
position: absolute;
top:50%;
left:50%;
z-index: 1;
}
&.horizontal {
position:relative;
.wrapper {
.meter-container {
.fader {
border: 0;
border-top: 1rem solid var(--color-bg);
}
}
}
.input {
width: 100rem;
height: 24rem;
margin-left: -50rem;
margin-top: calc(-1 * 12rem + var(--input-margin));
}
.pips {
height: 3rem;
border:0;
border-top: 1rem solid var(--color-bg);
width: 100%;
.pip {
margin: 0;
&:last-child {
left:auto!important;
right:0;
}
&:after {
top:0;
width: 1rem;
}
}
}
}
&:not(.horizontal) {
.input {
height: 100rem;
width: 100rem;
margin-top: -50rem;
margin-left: calc(-1 * 50rem + var(--input-margin));
z-index: 3;
input {
transform: rotate(-90deg);
width: 100rem;
}
}
&.align-right {
.input {
margin-left: calc(-1 * 50rem - var(--input-margin));
}
}
.pips {
.pip:last-child {
top:0;
}
}
}
}
}
.range-container {
width:100rem;
height:300rem;
&.horizontal {
height:130rem;
width:300rem
}
padding: 1rem;
--color-pips: var(--color-custom);
--color-gauge: var(--color-custom);
--color-knob: var(--color-custom);
.range {
height:100%;
overflow: hidden;
display: flex;
position: relative;
flex-direction: column;
flex: 1;
> .input {
height: 25rem;
flex:initial!important;
flex-shrink: 0!important;
// display: block;
background: transparent!important;
border: 0!important;
}
> .wrapper {
overflow: hidden;
flex: 1 1 100%;
max-height: 100%;
width: 100%;
position: relative;
display: flex;
justify-content: center;
border-radius: inherit;
.fader {
position: absolute;
top:0;
left:0;
right:0;
bottom:0;
pointer-events: none;
.wrapper {
// border: 0;
}
&:first-child {
opacity: 0;
}
}
}
&.compact {
> canvas {
background: var(--color-track);
}
}
&.compact {
--input-margin:0rem;
&.has-meter {
--input-margin:-3rem;
}
&.has-pips {
--input-margin:-1rem;
}
&.has-meter.has-pips {
--input-margin:-4rem;
}
.input {
pointer-events: none;
position: absolute;
border:0;
background:transparent;
overflow: hidden;
position: absolute;
top:50%;
left:50%;
z-index: 1;
}
&.horizontal {
.input {
width: 100rem;
height: 24rem;
margin-left: -50rem;
margin-top: calc(-1 * 12rem + var(--input-margin));
}
}
&:not(.horizontal) {
.input {
height: 100rem;
width: 100rem;
margin-top: -50rem;
margin-left: calc(-1 * 50rem + var(--input-margin));
z-index: 3;
input {
transform: rotate(-90deg);
width: 100rem;
}
}
&.align-right {
.input {
margin-left: calc(-1 * 50rem - var(--input-margin));
}
}
}
}
}
}
.panel:not(.tab) > .range-container {
padding: 0rem;
--color-border:transparent;
.fader.compact {
padding: 1rem;
}
.fader.compact > .wrapper {
box-shadow: 0 0 0 1rem var(--color-light),
0 0 0 1rem var(--color-fg);
border: 1rem solid var(--color-bg);
}
}

View file

@ -1,238 +0,0 @@
.input-container {
width: 100rem;
height: 60rem;
padding:1rem;
.vertical {
position: relative;
input {
transform: rotate(-90deg);
vertical-align: middle;
max-width: initial!important;
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%) rotate(-90deg);
margin-top: -1px
}
}
.not-editable {
@extend .glass-effect;
}
}
.widget {
.input {
display: flex;
flex: 1 1 100%;
background:transparent;
color:var(--color-text);
overflow: hidden;
text-align:center;
padding:1rem;
border: 1rem solid var(--color-bg);
background: var(--color-track);
&.right {
text-align: right;
}
&.left {
text-align: left;
}
input {
display: block;
flex:1;
max-width: 100%;
font: inherit;
border:0;
padding:0;
background: transparent;
color:var(--color-accent);
border-radius: inherit;
-webkit-appearance:none;
appearance: none;
text-align:inherit;
line-height: 50rem;
vertical-align: top;
letter-spacing: 1rem;
-webkit-user-select: text;
user-select: text;
&:focus {
color:var(--color-text-fade);
}
&:focus::selection {
color:var(--color-custom);
background: transparent;
}
}
canvas {
flex:1;
max-width: 100%;
}
input + canvas {
display: none;
width: 0;
}
}
}
.panel:not(.tab) > .input-container {
padding: 0rem;
> .input {
box-shadow: 0 0 0 1rem var(--color-light),
0 0 0 1rem var(--color-fg);
margin:1rem;
border: 1rem solid var(--color-bg);
}
}
.keys-container {
width: 100rem;
height:60rem;
flex-shrink: 0;
padding:1rem;
--opacity: .75;
.keys {
flex: 1 1 100%;
height:35rem;
padding: 10rem;
justify-content: center;
display: flex;
align-items: center;
background: var(--color-track);
color:var(--color-custom);
border: 1rem solid var(--color-bg);
@extend .glass-effect;
i {
opacity: var(--opacity);
}
span {
font-family: monospace;
letter-spacing: 0;
margin-left: 4rem;
}
}
}
.panel:not(.tab) > .keys-container {
--color-border:transparent;
padding: 0rem;
.keys {
margin: 1rem;
box-shadow: 0 0 0 1rem var(--color-light),
0 0 0 1rem var(--color-fg);
border: 1rem solid var(--color-bg);
}
}
.script-container {
width: 100rem;
height:60rem;
flex-shrink: 0;
padding:1rem;
--opacity: .75;
.script {
flex: 1 1 100%;
height:35rem;
padding: 10rem;
justify-content: center;
display: flex;
align-items: center;
background: var(--color-track);
color:var(--color-custom);
border: 1rem solid var(--color-bg);
@extend .glass-effect;
i {
opacity: var(--opacity);
}
span {
font-family: monospace;
letter-spacing: 0;
margin-left: 4rem;
}
}
}
.panel:not(.tab) > .script-container {
--color-border:transparent;
padding: 0rem;
.script {
margin: 1rem;
box-shadow: 0 0 0 1rem var(--color-light),
0 0 0 1rem var(--color-fg);
border: 1rem solid var(--color-bg);
}
}
.gyroscope-container {
width: 100rem;
height:60rem;
flex-shrink: 0;
padding:1rem;
--opacity: .75;
.gyroscope {
flex: 1 1 100%;
height:35rem;
padding: 10rem;
justify-content: center;
display: flex;
align-items: center;
background: var(--color-track);
color:var(--color-custom);
border: 1rem solid var(--color-bg);
@extend .glass-effect;
i {
opacity: var(--opacity);
}
span {
font-family: monospace;
letter-spacing: 0;
margin-left: 4rem;
}
}
}
.panel:not(.tab) > .gyroscope-container {
--color-border:transparent;
padding: 0rem;
.gyroscope {
margin: 1rem;
box-shadow: 0 0 0 1rem var(--color-light),
0 0 0 1rem var(--color-fg);
border: 1rem solid var(--color-bg);
}
}
.file-container {
width: 100rem;
height:60rem;
padding:1rem;
&.no-label {
--color-border:var(--color-bg);
padding: 0;
.file {
border: 0;
}
}
.file {
border: 1rem solid var(--color-bg);
flex: 1 1 100%;
display: flex;
align-items: center;
justify-content: center;
padding: 0 10rem;
text-transform: none;
i {
margin: 0 5rem;
pointer-events: none;
}
span {
pointer-events: none;
text-overflow: ellipsis;
overflow: hidden;
}
}
}

View file

@ -1,116 +0,0 @@
.knob-container, .encoder-container {
--color-pips:var(--color-custom);
--color-gauge:var(--color-custom);
--color-knob:var(--color-custom);
padding: 1rem;
width: 100rem;
height: 120rem;
align-items: center;
.input {
// display: none!important;
}
}
.knob {
height:100%;
width: 100%;
overflow: hidden;
display: flex;
flex-direction: column;
position: relative;
flex: 1;
> .input {
height: 25rem;
flex:initial!important;
flex-shrink: 0!important;
display: block;
background: transparent!important;
border: 0!important;
}
&.compact {
> .input {
pointer-events: none;
position: absolute;
border:0;
background:transparent;
overflow: hidden;
position: absolute;
top:50%;
left:50%;
z-index: 1;
width: 100rem;
height: 30rem;
margin-left:-50rem;
margin-top:-15rem;
}
}
.wrapper {
overflow: hidden;
flex: 1 1 100%;
max-height: 100%;
width: 100%;
position: relative;
display: flex;
touch-action: none;
canvas {
width: 100%;
position: relative;
pointer-events: none;
image-rendering: pixelated;
}
}
}
.encoder-container {
--color-gauge: transparent;
}
.encoder {
height:100%;
width: 100%;
overflow: hidden;
display: flex;
flex-direction: column;
position: relative;
.wrapper {
overflow: hidden;
flex: 1 1 100%;
max-height: 100%;
width: 100%;
position: relative;
display: flex;
}
.input {
display: none;
}
.display-knob {
position: absolute;
top:0;
bottom:0;
left:0;
right:0;
pointer-events: none;
}
.drag-knob {
opacity: 0;
// safari fix
position: absolute;
top:0;
bottom:0;
left:0;
right:0;
}
}

View file

@ -1,29 +0,0 @@
.formula-container {
width: 100rem;
height:60rem;
padding:1rem;
.formula {
display:flex;
height:100%;
background: var(--color-track);
border:1rem solid var(--color-bg);
@extend .glass-effect;
.input {
background: transparent!important;
border: 0!important;
--color-text: var(--color-custom);
pointer-events: none;
}
}
}
.panel:not(.tab) > .formula-container {
--color-border:transparent;
padding: 0rem;
.formula {
margin: 1rem;
box-shadow: 0 0 0 1rem var(--color-light),
0 0 0 1rem var(--color-fg);
border: 1rem solid var(--color-bg);
}
}

View file

@ -1,163 +0,0 @@
/* Multiple widgets (push|toggle|fader) matrix */
.matrix-container,
.multitoggle-container,
.multipush-container,
.multifader-container {
&.editing {
overflow: hidden;
}
height:200rem;
width:200rem;
&.no-label .matrix {
top:0;
}
}
.matrix {
flex: 1 1 100%;
overflow: auto;
display: flex;
flex-wrap: wrap;
flex-direction: row;
padding:1rem 2rem 2rem 1rem;
touch-action: none;
--color-border:var(--color-bg);
--spacing:0;
> .widget {
min-height: 0;
min-width: 0;
height: auto;
width: calc( 100% / var(--columns) - var(--spacing));
margin: calc(var(--spacing) / 2);
// .label {
// background:none;
// border:0;
// }
}
&.noborders {
.widget{
border: none;
box-shadow:none;
}
}
}
.multifader-container {
.matrix {
align-items:stretch;
flex-wrap: nowrap;
&.horizontal {
flex-direction: column;
display: flex;
.fader-container {
flex-direction: row;
flex:1;
.fader {
width:100%;
}
.label {
width:30rem;
height:auto;
max-height: initial;
margin-right: -5rem;
}
}
}
> .widget {
height: auto;
flex:1;
> .fader {
height: auto;
flex: 1 1 100%;
}
}
&.compact {
> .widget {
box-shadow: 1rem 0 0 0 var(--color-bg),
0 1rem 0 0 var(--color-bg),
1rem 1rem 0 0 var(--color-bg);
.label {
box-shadow: 0 0 0 1rem var(--color-light) inset;
}
padding:0;
.wrapper {
border:0;
border-top:1rem solid var(--color-bg);
canvas{
border:none;
}
}
}
&.horizontal {
> .widget {
.wrapper {
border:0;
border-left:1rem solid var(--color-bg);
}
.label {
margin-right: 0;
}
}
}
}
}
.fader-wrapper {
padding:10rem 0 20rem!important;
.fader {
left:0!important;
}
}
}
.keyboard-container {
--color-black-key: var(--color-raised);
--color-white-key: #aaa;
height:90rem;
width:240rem;
.matrix {
position: relative;
overflow: hidden;
> .widget {
border-radius: 0!important;
&.white:first-child {
border-top-left-radius:inherit!important;
border-bottom-left-radius:inherit!important;
}
&.white:last-child {
border-top-right-radius:inherit!important;
border-bottom-right-radius:inherit!important;
}
}
.white {
--color-raised: var(--color-white-key);
.toggle:before {
box-shadow: 0 0 0 1rem var(--color-light) inset,
0 0 0 1rem var(--color-light) inset;
}
}
.black {
--color-raised: var(--color-black-key);
position: absolute;
z-index: 2;
top:1rem;
height: 65%;
.toggle:before {
border-bottom:2rem solid var(--color-bg);
box-shadow: 0 0 0 1rem var(--color-light) inset,
0 -1rem 0 0 var(--color-light) inset;
}
}
.on {
background: var(--color-custom)
}
}
}

View file

@ -1,191 +0,0 @@
// @keyframes menu-widget-fade {
// 0%{opacity: 0; transform: scale(0.9);}
// 100%{opacity: 1; transform: scale(1);}
// }
.menu-container {
@extend .modal-container;
border-radius: 0!important; // border radius breaks it somehow
z-index: initial!important;
contain: style size;
--size: 300rem;
--grid-columns: 2;
.menu {
display:none;
&.show {
display:block;
}
// animation: menu-widget-fade .1s forwards;
position: fixed;
z-index: 999999999;
background: var(--color-fg);
overflow: hidden;
box-shadow: 0 0 0 1rem var(--color-light) inset, 0 0 5rem 0 var(--color-bg) ;
.item {
z-index: 1;
overflow: hidden;
&.on:before {
content:"";
position: absolute;
top:0;
left:0;
right:0;
bottom:0;
pointer-events: none;
background: var(--color-custom);
opacity: 0.3;
}
div {
text-align: center;
pointer-events: none;
}
}
.item.active:after, &.norelease .item:hover:after {
content:"";
position: absolute;
top:0;
left:0;
right:0;
bottom:0;
pointer-events: none;
background: var(--color-light);
}
}
&.circular .menu {
border-radius: 100%;
width:var(--size);
height:var(--size);
margin-left: calc(var(--x) - var(--size) / 2);
margin-top: calc(var(--y) - var(--size) / 2);
&:after {
content:"";
position: absolute;
width: calc(var(--size) / 3);
height: calc(var(--size) / 3);
top:50%;
left: 50%;
margin-left: calc(-1 * var(--size) / 6);
margin-top: calc(-1 * var(--size) / 6);
background: var(--color-raised);
box-shadow: 0 0 2rem 0 var(--color-bg), 0 0 0 2rem var(--color-light) inset;
border-radius: 100%;
z-index: 10;
}
.item {
top: calc(-1 * var(--size) / 2);
left: calc(-1 * var(--size) / 2);
width: 100%;
height: 100%;
transform-origin: 100% 100%;
position: absolute;
box-shadow: 0 0 0 2.5rem var(--color-light) inset, 0 0 0 1.5rem var(--color-bg) inset;
&.on div:before {
content:"";
position: absolute;
width: calc(var(--size) / 3);
height: calc(var(--size) / 3);
left: calc(-1 * var(--size) / 6);
top: calc(-1 * var(--size) / 6);
border-radius: 100%;
pointer-events: none;
box-shadow: 0 0 0 4rem var(--color-custom);
}
div {
position: absolute;
bottom: 0;
right: 0;
}
span {
position: absolute;
top: calc(-1 * var(--size) / 3);
width: calc(var(--size) / 2);
margin-left: calc(-1 * var(--size) / 4);
}
}
}
&.box .menu {
width:var(--size-box-w);
height:var(--size-box-h);
margin-left: calc(var(--x) - var(--size-box-w) / 2);
margin-top: calc(var(--y) - var(--size-box-h) / 2);
background: var(--color-bg);
&.show {
display: flex;
}
flex-direction: row;
.item {
position: relative;
margin:.5rem;
background: var(--color-fg);
box-shadow: 0 0 0 1rem var(--color-light) inset;
&.on div:before {
content:"";
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
pointer-events: none;
box-shadow: 0 0 0 1rem var(--color-custom) inset;
opacity: 0.3;
}
div {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
}
}
}
&.grid .menu {
&.show {
display: grid;
grid-template-columns: repeat(var(--grid-columns), 1fr);
}
}
&.vertical .menu {
flex-direction: column;
}
}

View file

@ -1,206 +0,0 @@
.xy-container, .rgb-container, .multixy-container {
width:200rem;
height:230rem;
padding:2rem;
--background: var(--color-track);
--pips-opacity: 0.2;
--point-opacity: 0.3;
.label {
flex-shrink: 0;
z-index: 1;
}
> .pad > .wrapper:after {
content:"";
position: absolute;
pointer-events: none;
top:var(--pointSize);
left:var(--pointSize);
height:calc(100% - 2 * var(--pointSize));
width:calc(100% - 2 * var(--pointSize));
background: var(--background);
box-shadow: 0 0 0 1rem var(--color-light),
0 0 0 1rem var(--color-bg) inset;
}
.pad {
height:100%;
width: 100%;
overflow: hidden;
display: flex;
flex-direction: column;
> .input {
margin-top: 2rem;
height: 25rem;
flex:initial!important;
flex-shrink: 0!important;
background: transparent!important;
border: 0!important;
}
> .wrapper {
position: relative;
flex:1;
touch-action: none;
> canvas {
width:100%;
height:100%;
position: absolute;
pointer-events: none;
z-index: 1;
}
> .fader {
pointer-events: none;
position: absolute;
width:100%;
height:100%;
z-index: 0;
--color-knob:transparent;
--color-gauge:transparent;
box-shadow: none;
border: 0;
* {
background: transparent!important;
}
.wrapper {
border:none;
}
.input {
display: none;
}
}
}
}
}
.rgb-container {
--point-opacity: .7;
> .pad {
> .wrapper {
display: flex;
flex-direction: column;
image-rendering:pixelated;
> .pad {
--color-custom:var(--color-white);
position: absolute;
.wrapper {
border:0;
background: transparent;
}
canvas {
border:0;
left:0;
background: transparent;
}
.input {
display: none;
}
}
> canvas {
top:var(--pointSize);
left:var(--pointSize);
flex:0;
height:calc(100% - 2 * var(--pointSize));
width:calc(100% - 2 * var(--pointSize));
background-color: red;
background-clip: content-box;
background-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%), linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
border: 1rem solid var(--color-bg);
}
background: transparent;
border: none;
box-shadow: none;
}
.alpha-wrapper, .hue-wrapper {
flex-shrink: 0;
padding: calc(var(--pointSize) / 2) var(--pointSize);
.fader {
box-shadow: 0 0 0 1rem var(--color-light);
height: calc(2 * var(--pointSize));
}
}
.hue-wrapper {
--color-gauge:transparent;
--color-knob:var(--color-white);
.wrapper {
&:after {
content:"";
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(to left, #F00, #FF0080, #F0F, #8000FF, #00F, #0080FF, #0FF, #00FF80, #0F0, #80FF00, #FF0, #FF8000, #F00) repeat scroll 0% 0%;
box-shadow: 0 0 0 4rem var(--color-track);
// z-index: 1;
opacity: 0.7;
}
canvas {
background: transparent;
-webkit-background-blend-mode: color-burn;
}
}
}
}
}
.multixy-container {
> .pad {
text-align: center;
font-size: 109%;
> .wrapper {
> canvas {
top:0;
left:0;
z-index: 2;
}
> .pad {
pointer-events: none;
position: absolute;
.wrapper {
border:0;
background: transparent;
}
canvas {
border:0;
left:0;
}
.input {
display: none;
}
}
}
}
}
.canvas-container {
width:200rem;
height:230rem;
.canvas {
flex: 1;
}
canvas {
width:100%;
height: 100%;
}
}

View file

@ -1,348 +0,0 @@
.panel-container-base {
--color-border:var(--color-bg);
z-index: 1;
box-shadow: 1rem 0 0 0 var(--color-border),
0 1rem 0 0 var(--color-border),
1rem 1rem 0 0 var(--color-border);
> .label {
border-bottom:1rem solid var(--color-border);
z-index: 20;
box-shadow: 0 0 0 1rem var(--color-light) inset;
background: var(--color-fg);
}
.panel {
overflow: auto;
position: absolute;
top:29rem;
left:-1rem;
right:0;
bottom:0;
background: var(--color-fg);
--color-border: var(--color-fg);
box-shadow: 0 0 0 1rem var(--color-light) inset,
0 0 0 1rem var(--color-fg) inset,
1rem 1rem 0 1rem var(--color-light) inset;
&.tab, &.root, &.has-tabs {
background: var(--color-bg);
--color-border: var(--color-bg);
box-shadow: none;
}
&:not(.tab) {
> .widget {
box-shadow: 1rem 0 0 0 var(--color-border),
0 1rem 0 0 var(--color-border),
1rem 1rem 0 0 var(--color-border);
--default-bg: transparent;
}
}
&.has-tabs {
top:30rem;
display: flex;
flex-direction: column;
background: var(--color-bg);
> .tabs-wrapper {
background: var(--color-fg);
display: flex;
flex-direction: column;
left:-1rem;
> .widget {
background: none;
border-top:none;
// border-right:1rem solid transparent;
}
}
}
&.noscroll {
overflow: hidden;
> .widget {
max-width: 100%;
max-height: 100%;
}
}
> .tabs-wrapper {
flex: 1 1 100%;
min-height:0;
> .tab-container {
// width: 100%;
> .label {
display: none;
}
}
}
}
&.no-label {
> .panel {
top:-1rem;
}
> .panel.has-tabs {
top:0;
}
}
&.noborder {
--color-border: var(--color-fg);
> .panel {
box-shadow: none;
}
}
}
.panel-container {
@extend .panel-container-base;
width: 200rem;
height: 200rem;
background: var(--color-fg);
}
.strip-container {
@extend .panel-container-base;
width: 100rem;
height: 300rem;
background: var(--color-fg)!important;
&.horizontal {
width: 300rem;
height: 100rem;
}
> .panel {
--spacing: 0;
> .widget {
top:auto!important;
left:auto!important;
position: relative!important;
}
}
&.vertical {
> .panel {
display: flex;
flex-direction: column;
align-items: stretch;
padding: calc(var(--spacing) / 2);
> .widget {
width: auto!important;
min-width: auto!important;
max-width: 100%;
margin: calc(var(--spacing) / 2);
}
}
}
&.horizontal {
> .panel {
display: flex;
flex-direction: row;
align-items: stretch;
padding: calc(var(--spacing) / 2);
> .widget {
height: auto!important;
min-height: auto!important;
max-height: 100%;
margin: calc(var(--spacing) / 2);
}
}
}
&.stretch > .panel > .widget {
flex:1 1 100%;
}
}
.editor-enabled .strip-container {
&.horizontal > .panel > .widget > .ui-resizable-s,
&.vertical > .panel > .widget > .ui-resizable-e,
> .panel > .widget > .ui-resizable-se {
display: none!important;
}
}
.modal-container {
@extend .toggle-container;
> .label:after {
content:"\f0da";
font-family: FontAwesome;
transform: rotateZ(-45deg);
font-size: 20rem;
display: block;
width:8rem;
height:6rem;
right:2rem;
top:1rem;
line-height: 10rem;
text-align: center;
float:right;
position: absolute;
box-shadow: none;
background: none!important;
color: inherit;
opacity: 0.7;
}
> .panel {
display: none;
}
> .popup {
padding:0;
> .popup-wrapper {
max-width: 100%;
max-height: 100%;
width: var(--width, 100%);
height: var(--height, 100%);
.popup-content {
padding:0;
background: transparent;
> .panel {
background-color: var(--color-fg);
position: absolute;
width: auto;
height: auto;
top:-1rem;
left:-1rem;
right:0rem;
bottom:0rem;
}
}
.popup-title {
z-index: 1;
color: var(--color-text);
}
}
&.x-positionned {
justify-content: flex-start;
> .popup-wrapper {
left: var(--left);
}
}
&.y-positionned {
align-items:flex-start;
> .popup-wrapper {
top: var(--top);
}
}
}
&.editing .popup-wrapper:after {
content:"";
z-index: 999;
position: absolute;
top:0;
left:0;
right:0;
bottom:0;
border:1rem solid var(--color-accent);
--opa1: rgba(0,0,0, 1);
--opa2: rgba(0,0,0, 0.2);
--opa3: rgba(0,0,0, 0.8);
-webkit-mask: linear-gradient(to right, var(--opa1) 10rem, var(--opa1) 10rem, var(--opa2) 10rem, var(--opa2) calc(100% - 10rem), var(--opa1) calc(100% - 10rem), var(--opa1)),
linear-gradient(to bottom, var(--opa2) 10rem, var(--opa2) 10rem, var(--opa3) 10rem, var(--opa3) calc(100% - 10rem), var(--opa2) calc(100% - 10rem), var(--opa2)) ;
-webkit-mask-composite: xor;
pointer-events: none;
box-shadow: none!important;
opacity: 1!important;
}
&.on {
z-index: initial;
> .toggle:after {
color:var(--color-custom);
}
border-radius: 0!important; // border radius breaks it somehow
}
}
.root-container {
@extend .panel-container-base;
height: 100%;
border:none;
> .label {
display: none;
}
}
.tab-container, .root-container {
height: 100%;
flex:1;
box-shadow: none;
background: var(--color-bg)!important;
> .panel {
transform: rotateZ(0);
top:0rem;
left:-1rem;
right:0rem;
&.has-tabs {
top:1rem;
}
}
}
.tab-container {
display: none;
&.show {
display: flex;
}
}
.clone-container {
&.empty {
width: 100rem;
height: 100rem;
}
> .label {
display: none;
}
.clone {
position: absolute;
height: 100%;
width: 100%;
> .widget {
border:0!important;
box-shadow: none!important;
background: transparent!important;
position: relative!important;
left:auto!important;
bottom:auto!important;
right:auto!important;
top: auto!important;
width: 100%!important;
height: 100%!important;
min-height: initial!important;
max-height: initial!important;
min-width: initial!important;
max-width: initial!important;
padding: 0!important;
}
}
}

View file

@ -1,265 +0,0 @@
.led-container, .rgbled-container {
width:100rem;
height:100rem;
padding:1rem;
.led {
--opacity: 0;
--color-led: var(--color-custom);
display: flex;
flex-direction: row;
flex: 1 1 100%;
background: var(--color-track);
border:1rem solid var(--color-bg);
&:before {
content:"";
width:100%;
height: 100%;
background: var(--color-led);
border-radius: inherit;
opacity: var(--opacity);
box-shadow: inset 0 0 10rem var(--color-track);
}
@extend .glass-effect;
}
}
.rgbled-container .led {
--opacity: 1;
}
.plot-container, .visualizer-container, .eq-container {
height: 200rem;
width: 200rem;
padding:1rem;
.plot {
display: flex;
flex-direction: row;
flex: 1 1 100%;
background: var(--color-track);
border:1rem solid var(--color-bg);
@extend .glass-effect;
}
canvas {
flex:1;
image-rendering:pixelated;
width: 100%;
}
}
.meter-container {
@extend .fader-container;
--color-knob: transparent;
.wrapper {
pointer-events: none;
@extend .glass-effect;
}
}
.text-container {
width: 100rem;
height:60rem;
flex-shrink: 0;
padding:1rem;
.text {
flex: 1 1 100%;
height:35rem;
padding: 0 10rem;
justify-content: center;
display: flex;
align-items: center;
white-space: pre;
background: var(--color-track);
color:var(--color-custom);
border: 1rem solid var(--color-bg);
line-height: 100%;
overflow: hidden;
text-align: center;
&.right {
text-align: right;
justify-content: flex-end;
}
&.left {
text-align: left;
justify-content: flex-start;
}
&.wrap {
white-space: pre-wrap;
}
&.vertical {
transform: rotate(180deg);
text-overflow: ellipsis;
-webkit-writing-mode:vertical-rl;
writing-mode:vertical-rl;
padding: 10rem 0;
&:after {
transform: rotate(-180deg);
}
}
@extend .glass-effect;
}
}
.image-container {
width:100rem;
height:100rem;
padding:1rem;
.image {
display: flex;
flex-direction: row;
flex: 1 1 100%;
background-size:cover;
border:1rem solid var(--color-bg);
background-repeat: no-repeat;
}
&.noborder {
--color-border:transparent;
--color-light:transparent;
--color-light:transparent;
background: transparent;
padding: 0!important;
.image {
outline:transparent!important;
border:0!important;
box-shadow:none!important;
margin: 0!important;
}
}
}
.svg-container {
width:100rem;
height:100rem;
padding:1rem;
.svg {
display: flex;
flex-direction: row;
flex: 1 1 100%;
background: var(--color-track);
border:1rem solid var(--color-bg);
svg {
flex: 1 1 100%;
}
}
&.noborder {
--color-border:transparent;
--color-light:transparent;
--color-light:transparent;
background: transparent;
padding: 0!important;
.svg {
background: transparent;
outline:transparent!important;
border:0!important;
box-shadow:none!important;
margin: 0!important;
}
}
&:not(.noborder) .svg {
@extend .glass-effect;
}
}
.html-container {
width:100rem;
height:100rem;
padding:1rem;
.html {
display: flex;
flex-direction: row;
flex: 1 1 100%;
background: var(--color-track);
border:1rem solid var(--color-bg);
}
&.noborder {
--color-border:transparent;
--color-light:transparent;
--color-light:transparent;
background: transparent;
padding: 0!important;
.html {
background: transparent;
outline:transparent!important;
border:0!important;
box-shadow:none!important;
margin: 0!important;
}
}
&:not(.noborder) .html {
@extend .glass-effect;
}
}
.frame-container {
width:100rem;
height:100rem;
padding:1rem;
.frame {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
flex: 1 1 100%;
background-size:cover;
border:1rem solid var(--color-bg);
background-repeat: no-repeat;
iframe {
flex: 1 1 100%;
height: 100%;
width: 100%;
border: 0;
display: block;
}
iframe[src=""] {
pointer-events: none;
}
&.error {
iframe {
display: none;
}
}
}
&.noborder {
--color-border:transparent;
--color-light:transparent;
--color-light:transparent;
background: transparent;
padding: 0!important;
.frame {
outline:transparent!important;
border:0!important;
box-shadow:none!important;
margin: 0!important;
}
}
}
.editor-enabled .frame-container.no-label iframe {
pointer-events: none;
}
.panel:not(.tab) > .led-container,
.panel:not(.tab) > .rgbled-container,
.panel:not(.tab) > .text-container,
.panel:not(.tab) > .visualizer-container,
.panel:not(.tab) > .eq-container,
.panel:not(.tab) > .plot-container,
.panel:not(.tab) > .image-container,
.panel:not(.tab) > .frame-container,
.panel:not(.tab) > .svg-container,
.panel:not(.tab) > .html-container {
--color-border:transparent;
padding: 0rem;
.plot, .text, .led, .image, .svg, .html, .frame {
margin: 1rem;
box-shadow: 0 0 0 1rem var(--color-light),
0 0 0 1rem var(--color-fg);
border: 1rem solid var(--color-bg);
}
}
.panel:not(.tab) > .image-container {
.image {
background-clip: content-box;
}
}

View file

@ -1,25 +0,0 @@
.push-container {
@extend .toggle-container;
.toggle {
&.active {
// background-color: var(--color-fg);
&:after {
content: "";
position: absolute;
top:0;
left: 0;
right: 0;
bottom: 0;
opacity: 0.4;
background: radial-gradient( ellipse at center, var(--color-raised), var(--color-bg));
z-index: 2;
}
}
&.on:not(.active) {
&:after {
opacity: 0;
}
}
}
}

View file

@ -1,226 +0,0 @@
.state-container, .switch-container, .switcher-container, .crossfader-container {
z-index: 1;
width:100rem;
height:100rem;
padding:1rem;
&.no-label {
--color-border:var(--color-bg);
padding: 0;
.switch, .switcher {
border: 0;
}
}
.switch {
cursor: pointer;
display: flex;
flex-direction:column;
align-items: stretch;
flex: 1;
z-index: 1;
background:var(--color-bg);
border: 1rem solid var(--color-bg);
&.horizontal {
flex-direction:row;
.value {
border-top:0;
border-right:1rem solid var(--color-bg);
height:auto;
margin-bottom:0;
&:last-child {
border-right:0;
}
}
}
.value {
background:var(--color-raised);
padding:6rem;
color:var(--color-text);
width:100%;
flex: 1 1 100%;
position: relative;
// border-top: 1rem solid var(--color-bg);
margin-bottom:1rem;
white-space: normal;
text-align: center;
word-break: break-all;
overflow: hidden;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
box-shadow: 0 0 0 1rem var(--color-light) inset,
0 1rem 0 0 var(--color-light) inset;
&:before {
content:"";
position: absolute;
top:0;
left: 0;
right: 0;
bottom: 0;
opacity: 0;
box-shadow: 0 0 0 1rem var(--color-custom) inset;
border-radius: inherit;
}
&.on {
// background: var(--color-fg);
color: var(--color-custom);
&:after {
content: "";
position: absolute;
top:0;
left: 0;
right: 0;
bottom: 0;
opacity: 0.4;
background: radial-gradient( ellipse at center, transparent, var(--color-bg));
}
&:before {
opacity: 0.3;
}
}
&:first-child {
// border-top:0;
}
&:last-child {
margin-bottom:0;
}
i {
width: auto;
}
}
}
}
.switcher-container {
.switcher {
flex:1;
display:flex;
}
}
.crossfader-container {
.switcher {
flex: 1 1 100%;
width:auto;
display:flex;
border: 1rem solid var(--color-bg);
padding: 2rem;
.switch {
flex:2;
border: 1rem solid var(--color-bg) !important;
}
.fader {
flex: 3;
--color-pips: var(--color-custom);
--color-gauge: var(--color-custom);
--color-knob: var(--color-custom);
}
&.vertical {
flex-direction: row;
.fader, .fader canvas {
height:auto;
}
}
&.horizontal {
flex-direction: column;
}
}
}
.panel:not(.tab) > .crossfader-container {
--color-border:var(--color-fg);
.switcher {
border:0!important;
}
}
.dropdown-container {
z-index: 1;
width:100rem;
height: 60rem;
padding:1rem;
&.no-label {
--color-border:var(--color-bg);
padding: 0;
.select {
border: 0;
}
}
.select {
flex: 1 1 100%;
position: relative;
overflow: hidden;
cursor: pointer;
border: 1rem solid var(--color-bg);
display: flex;
border-radius: inherit;
select {
box-shadow: 0 0 0 1rem var(--color-light) inset,
0 1rem 0 0 var(--color-light) inset;
flex:1;
display: flex;
vertical-align: middle;
background:transparent;
padding: 0 30rem 0 10rem;
max-width: 100%;
-webkit-appearance:none;
-moz-appearance:none;
appearance:none;
background: var(--color-raised);
color:inherit;
font-size: 109%!important;
line-height: 120%!important;
text-transform: none;
border-radius: inherit;
&:focus {
box-shadow: 0 0 0 1rem var(--color-light) inset,
0 1rem 0 0 var(--color-light) inset,
0 0 1rem 0 var(--color-custom) inset;
}
}
&:after{
content:"\f107";
font-family: FontAwesome;
position: absolute;
padding:0 10rem;
right:0;
top:50%;
margin-top:-10rem;
font-size: 180%;
height: 20rem;
line-height: 20rem;
pointer-events: none;
}
}
}
.state-container {
.push-container {
border:0;
}
.toggle {
height: 100%;
z-index: 1;
&:before {
box-shadow: none;
}
}
.disabled {
opacity: 0.65;
pointer-events: none;
cursor: default;
}
}

View file

@ -1,100 +0,0 @@
.toggle-container {
width:100rem;
height: 60rem;
padding:0!important;
--color-border:var(--color-bg);
--default-bg: var(--color-raised)#{!important};
z-index: 1;
.toggle {
cursor: pointer;
flex: 1 1 100%;
display: flex;
border-radius: inherit!important;
touch-action: none;
&:before {
content:"";
flex: 1 1 100%;
opacity: 1;
box-shadow: 0 0 0 1rem var(--color-light) inset,
0 1rem 0 0 var(--color-light) inset;
border-radius: inherit;
}
&.on {
&:after {
content: "";
position: absolute;
top:0;
left: 0;
right: 0;
bottom: 0;
opacity: 0.4;
background: radial-gradient( ellipse at center, transparent, var(--color-bg));
}
&:before {
opacity: 0.3;
box-shadow: 0 0 0 1rem var(--color-custom) inset;
}
}
}
> .label {
position: absolute;
top:2rem;
left:2rem;
right:2rem;
bottom:2rem;
height:auto;
width: auto;
max-height: initial;
border:0!important;
background: none!important;
text-align: center;
pointer-events:none;
display: flex;
justify-content: center;
align-items: center;
z-index: 2;
}
&.on > .label{
color: var(--color-custom);
}
&.led {
.toggle:after {
content:"";
opacity: 1;
position: absolute;
display: block;
top:3rem;
left:3rem;
right:3rem;
height: 4rem;
background: var(--color-track);
box-shadow: 0 0 0 1rem var(--color-light), 0 0 0 1rem var(--color-bg) inset;
z-index: 1;
border-radius: inherit;
opacity: 0.9;
}
.toggle.on:after {
opacity: 0.7;
background: var(--color-custom);
}
.toggle:before {
opacity: 1;
box-shadow: 0 0 0 1rem var(--color-light) inset,
0 1rem 0 0 var(--color-light) inset;
}
> .label {
top:7rem;
}
}
}

View file

@ -91,13 +91,9 @@
}
@import 'widgets/basics';
@import 'widgets/containers';
@import 'widgets/sliders';
@import 'widgets/inputs';
@import 'widgets/buttons';
@import 'widgets/pads';
@import 'widgets/plots';
@import 'widgets/graphs';
@import 'widgets/indicators';
@import 'widgets/frames';
@import 'widgets/patchbay';
@import 'widgets/keyboard';
@import 'widgets/pads';
@import 'widgets/sliders';

View file

@ -1,4 +1,4 @@
.toggle-container, .push-container {
.button-container {
--alpha-fill-off: 0;
--alpha-fill-on: .75;
@ -140,6 +140,13 @@
align-items: center;
position: relative;
@include pseudo-stroke();
&.right .text {
justify-content: flex-end;
}
&.left .text{
justify-content: flex-start;
}
}
.text {
@ -148,6 +155,8 @@
display: flex;
justify-content: center;
align-items: center;
padding-left: var(--widget-padding);
padding-right: var(--widget-padding);
}
.icon {
order: 1;
@ -373,6 +382,13 @@
align-items: stretch;
position: relative;
@include pseudo-stroke();
&.right .text {
justify-content: flex-end;
}
&.left .text{
justify-content: flex-start;
}
}
.text {
@ -381,6 +397,8 @@
display: flex;
justify-content: center;
align-items: center;
padding-left: var(--widget-padding);
padding-right: var(--widget-padding);
}
.icon {
order: 1;
@ -419,3 +437,124 @@
}
}
.input-container {
--alpha-fill-off: 0.05;
inner {
position: relative;
@include pseudo-stroke();
@include pseudo-fill(0.05);
display: flex;
flex: 1;
padding: var(--widget-padding);
text-align: center;
&.right {
text-align: right;
}
&.left {
text-align: left;
}
padding-left: calc(var(--widget-padding) * 2);
padding-right: calc(var(--widget-padding) * 2);
}
input + canvas {
display: none;
width: 0;
}
canvas {
flex:1;
max-width: 100%;
}
input {
display: block;
flex:1;
max-width: 100%;
font: inherit;
border:0;
padding:0;
background: transparent;
border-radius: inherit;
-webkit-appearance:none;
appearance: none;
text-align:inherit;
line-height: 50rem;
vertical-align: top;
letter-spacing: 1rem;
-webkit-user-select: text;
user-select: text;
color:var(--color-fill);
caret-color: var(--color-fill);
&:focus::selection {
background: var(--color-fill);
color: var(--color-background);
}
}
}
.file-container {
--alpha-fill: 0.75;
--widget-padding: 1rem;
inner {
flex:1;
display: flex;
flex-direction: row;
justify-content: center;
align-items: stretch;
position: relative;
@include pseudo-stroke();
&.right .text {
justify-content: flex-end;
}
&.left .text{
justify-content: flex-start;
}
}
.text {
flex: 1;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
padding-left: var(--widget-padding);
padding-right: var(--widget-padding);
min-width: 0;
overflow: hidden;
}
.icon {
order: 1;
display: block;
display: flex;
justify-content: center;
align-items: center;
width: 30rem;
font-family: FontAwesome;
color: var(--color-stroke);
font-size: 120%;
border-left: 1rem solid var(--color-stroke);
opacity: var(--alpha-stroke);
&:after {
content:"\f07c";
}
}
}

View file

@ -473,3 +473,129 @@
}
}
.patchbaynode-container {
justify-content: center;
label {
flex: 1;
pointer-events: none;
display: flex;
}
}
.patchbay-container {
width: 200rem;
height: 200rem;
--alpha-fill-on: .75;
--alpha-fill-off: 0.25;
inner {
display: flex;
flex-direction: row;
@include pseudo-stroke();
padding: var(--widget-padding);
canvas {
flex: 1;
width: 0;
}
.nodes {
display: flex;
flex-direction: column;
align-items:stretch;
margin-bottom: 1rem;
width: 25%;
}
.inputs, .outputs {
position: relative;
@include pseudo-stroke();
top: 1rem;
}
.inputs:before {
border-width: 0 1rem 0 0;
}
.outputs:before {
border-width: 0 0 0 1rem;
}
}
}
.keyboard-container {
--widget-padding: 0rem;
--alpha-fill-off: 0;
--alpha-fill-on: .75;
--color-key-on: var(--color-fill);
--alpha-key-off: var(--alpha-fill-off);
--alpha-key-on: var(--alpha-fill-on);
--color-white-key: #ccc;
--color-black-key: #1A1A1A;
--widget-keypad: var(--widget-padding);
> inner {
padding: var(--widget-padding);
flex: 1;
@include pseudo-stroke($z: 2);
position: relative;
display: flex;
flex-direction: row;
overflow: hidden;
}
.key {
--alpha-fill-off: var(--alpha-key-off);
--alpha-fill-on: var(--alpha-key-on);
inner {
margin: 1rem 0.5rem!important;
--widget-padding: -1rem;
&:before {
content: none;
}
&:after {
background: var(--color-key-on);
}
}
}
.white {
flex: 1;
width: auto;
min-width: auto;
height: auto;
inner {
background: var(--color-white-key);
}
}
.black {
position: absolute;
z-index: 1;
left: calc((100% - var(--widget-keypad) * 2) / var(--nkeys) * var(--rank));
width: calc(100% / var(--nkeys) * 0.6);
margin-left: calc(100% / var(--nkeys) * -0.3 + var(--widget-keypad));
height: calc((100% - var(--widget-keypad) * 2) * 0.65);
inner {
margin-left: 0!important;
margin-right: 0!important;
background: var(--color-black-key);
}
}
}

View file

@ -1,63 +0,0 @@
.input-container {
--alpha-fill-off: 0.05;
inner {
position: relative;
@include pseudo-stroke();
@include pseudo-fill(0.05);
display: flex;
flex: 1;
padding: var(--widget-padding);
text-align: center;
&.right {
text-align: right;
}
&.left {
text-align: left;
}
}
input + canvas {
display: none;
width: 0;
}
canvas {
flex:1;
max-width: 100%;
}
input {
display: block;
flex:1;
max-width: 100%;
font: inherit;
border:0;
padding:0;
background: transparent;
border-radius: inherit;
-webkit-appearance:none;
appearance: none;
text-align:inherit;
line-height: 50rem;
vertical-align: top;
letter-spacing: 1rem;
-webkit-user-select: text;
user-select: text;
color:var(--color-fill);
caret-color: var(--color-fill);
&:focus::selection {
background: var(--color-fill);
color: var(--color-background);
}
}
}

View file

@ -1,68 +0,0 @@
.keyboard-container {
--widget-padding: 0rem;
--alpha-fill-off: 0;
--alpha-fill-on: .75;
--color-key-on: var(--color-fill);
--alpha-key-off: var(--alpha-fill-off);
--alpha-key-on: var(--alpha-fill-on);
--color-white-key: #ccc;
--color-black-key: #1A1A1A;
--widget-keypad: var(--widget-padding);
> inner {
padding: var(--widget-padding);
flex: 1;
@include pseudo-stroke($z: 2);
position: relative;
display: flex;
flex-direction: row;
overflow: hidden;
}
.key {
--alpha-fill-off: var(--alpha-key-off);
--alpha-fill-on: var(--alpha-key-on);
inner {
margin: 1rem 0.5rem!important;
--widget-padding: -1rem;
&:before {
content: none;
}
&:after {
background: var(--color-key-on);
}
}
}
.white {
flex: 1;
width: auto;
min-width: auto;
height: auto;
inner {
background: var(--color-white-key);
}
}
.black {
position: absolute;
z-index: 1;
left: calc((100% - var(--widget-keypad) * 2) / var(--nkeys) * var(--rank));
width: calc(100% / var(--nkeys) * 0.6);
margin-left: calc(100% / var(--nkeys) * -0.3 + var(--widget-keypad));
height: calc((100% - var(--widget-keypad) * 2) * 0.65);
inner {
margin-left: 0!important;
margin-right: 0!important;
background: var(--color-black-key);
}
}
}

View file

@ -1,54 +0,0 @@
.patchbaynode-container {
justify-content: center;
label {
flex: 1;
pointer-events: none;
display: flex;
}
}
.patchbay-container {
width: 200rem;
height: 200rem;
--alpha-fill-on: .75;
--alpha-fill-off: 0.25;
inner {
display: flex;
flex-direction: row;
@include pseudo-stroke();
padding: var(--widget-padding);
canvas {
flex: 1;
width: 0;
}
.nodes {
display: flex;
flex-direction: column;
align-items:stretch;
margin-bottom: 1rem;
width: 25%;
}
.inputs, .outputs {
position: relative;
@include pseudo-stroke();
top: 1rem;
}
.inputs:before {
border-width: 0 1rem 0 0;
}
.outputs:before {
border-width: 0 0 0 1rem;
}
}
}