v1 refactor wip

This commit is contained in:
bordun 2020-02-23 12:34:22 +01:00
parent ddbd526eae
commit b8c925c2ef
109 changed files with 5639 additions and 4272 deletions

View file

@ -0,0 +1,299 @@
.toggle-container, .push-container {
--alpha-fill-off: 0;
--alpha-fill-on: .75;
--widget-padding: -1rem;
inner {
position: absolute;
top:0;
left:0;
right:0;
bottom:0;
margin: calc(var(--widget-spacing) / 2);
flex: 1;
display: flex;
flex-direction: column;
@include pseudo-stroke();
@include pseudo-fill();
}
> label {
flex: 1;
max-height: initial;
text-align: center;
pointer-events:none;
display: flex;
justify-content: center;
align-items: center;
z-index: 1;
color: var(--color-text);
}
&.on {
--alpha-fill:var(--alpha-fill-on);
label {
color: var(--color-foreground)
}
}
}
.switch-container {
--alpha-fill: 0.75;
inner {
position: relative;
flex: 1;
display: flex;
flex-direction: column;
@include pseudo-stroke();
}
&.horizontal inner {
flex-direction: row;
}
value {
position: relative;
z-index: 1;
padding: 4rem;
flex: 1;
display: flex;
align-items: center;
justify-content: center;
text-overflow: clip;
overflow: hidden;
&.on {
@include pseudo-fill($z: -1);
color: var(--color-foreground);
}
}
}
.menu-container {
--alpha-fill: 0.75;
--widget-padding: 1rem;
border-radius: 0!important; // border radius breaks it somehow
z-index: initial!important;
contain: style size;
--size: 300rem;
--grid-columns: 2;
overflow: hidden;
inner {
flex:1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: relative;
@include pseudo-stroke();
padding: 4rem;
&:after {
content:"\f0d7";
font-family: FontAwesome;
position: absolute;
color: var(--color-stroke);
right: calc(var(--widget-padding) + 8rem);
margin-top: -1rem;
font-size: 120%;
opacity: var(--alpha-fill)
}
}
menu {
// animation: menu-widget-fade .1s forwards;
position: fixed;
z-index: 999999999;
overflow: hidden;
background: var(--color-foreground);
@include pseudo-stroke($z: 2);
&:before {
border-width: 1rem;
}
.item {
z-index: 1;
overflow: hidden;
div {
text-align: center;
pointer-events: none;
}
}
}
&.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) / 4 - 12rem);
height: calc(var(--size) / 4 - 12rem);
top:50%;
left: 50%;
margin-left: calc(-1 * var(--size) / 8 + 6rem);
margin-top: calc(-1 * var(--size) / 8 + 6rem);
background: var(--color-foreground);
box-shadow: 0 0 0 2rem var(--color-foreground), 0 0 0 3rem var(--color-stroke);
border-radius: 100%;
z-index: 10;
opacity: var(--alpha-stroke);
}
.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 2rem var(--color-foreground);
div {
position: absolute;
bottom: 0;
right: 0;
&:before {
content:"";
position: absolute;
width: calc(var(--size) / 4);
height: calc(var(--size) / 4);
left: calc(-1 * var(--size) / 8);
top: calc(-1 * var(--size) / 8);
border-radius: 100%;
pointer-events: none;
box-shadow: 0 0 0 4rem var(--color-fill);
opacity: 0;
}
}
&.on {
color: var(--color-fill);
}
&.on div:before {
opacity: var(--alpha-fill)!important;
}
&.active div:before, &:hover div:before {
opacity: calc(var(--alpha-fill) / 2);
}
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);
// top:var(--size-box-h);
// margin-top: 0;
display: flex;
flex-direction: row;
padding: calc(var(--widget-padding) / 2 + 1rem);
.item {
position: relative;
margin: calc(var(--widget-padding) / 2);
div {
@include pseudo-fill($z: -1);
display: flex;
justify-content: center;
align-items: center;
height: 100%;
flex: 1;
&:after {
opacity: 0;
margin: 0;
top:0;left:0;right:0;bottom:0;
}
}
&.on {
color: var(--color-foreground);
div:after {
opacity: var(--alpha-fill)!important;
}
}
&.active, &:hover {
div:after, div:after {
opacity: calc(var(--alpha-fill) / 2);
}
}
}
}
&.grid.on menu {
display: grid;
grid-template-columns: repeat(var(--grid-columns), 1fr);
}
&.vertical menu {
flex-direction: column;
}
}

View file

@ -0,0 +1,418 @@
.root-container {
--widget-spacing: 1rem;
--alpha-fill-on: 0.75;
width: 100%;
height: 100%;
background-color: var(--color-foreground);
> .panel {
transform: rotateZ(0);
flex: 1;
flex-direction: column;
display: flex;
width: 100%;
overflow: hidden;
> .widget {
flex: 1;
width: 100%;
height: auto;
> .panel {
margin: calc(var(--widget-spacing) / 2);
}
}
}
}
.widget-panel-base {
--widget-padding: 4rem;
background-color: var(--color-foreground);
background-clip: content-box;
> .panel {
--widget-spacing: var(--widget-padding);
flex: 1;
position: relative;
overflow: auto;
margin: calc(var(--widget-spacing) / 2) calc(1rem + var(--widget-spacing) / 2) calc(1rem + var(--widget-spacing) / 2);
}
&.contains-widgets {
> .panel > .widget {
padding: calc(var(--widget-spacing) / 2);
}
&.layout-default > .panel {
display: block;
}
&.layout-horizontal > .panel {
display: flex;
flex-direction: row;
align-items: stretch;
> .widget {
top:auto!important;
left:auto!important;
position: relative!important;
height: auto!important;
min-height: auto!important;
max-height: 100%;
}
}
&.layout-vertical > .panel {
display: flex;
flex-direction: column;
align-items: stretch;
> .widget {
top:auto!important;
left:auto!important;
position: relative!important;
width: auto!important;
min-width: auto!important;
max-width: 100%;
}
}
}
&.contains-tabs {
> .panel {
--widget-spacing: 0;
display: flex;
flex-direction: column;
overflow: hidden;
> .widget {
flex: 1;
width: 100%;
height: auto;
padding: 0;
}
}
}
}
.tab-container {
@extend .widget-panel-base;
// --widget-padding: 0rem;
--alpha-fill-on: 0.75;
width: 100%;
flex: 1;
height: 100%;
background-color: var(--color-foreground);
&:not(.show) {
display:none
}
> label {
display: none;
}
&.contains-widgets > .panel {
transform: rotateZ(0);
}
}
.panel-container {
@extend .widget-panel-base;
--alpha-fill-on: 0.75;
@include pseudo-stroke($z: 1);
&:before {
margin: calc(var(--widget-spacing) / 2);
}
> label {
position: relative;
// background-color: var(--color-foreground);
@include pseudo-stroke($z: 10);
&:before {
border-width: 0 0 1rem 0;
margin: 0 1rem;
}
}
&.contains-widgets.nolabel > .panel {
border-top: 1rem solid var(--color-foreground);
}
&.contains-tabs > .panel > .navigation {
margin: 0 1rem;
}
}
.navigation {
background-color: var(--color-background);
height:calc(var(--nav-height) - 1rem);
flex-shrink:0;
display: flex;
padding-bottom: 1rem;
position: relative;
color: var(--color-text);
&.main {
:last-child, .tools {
width:var(--nav-height);
max-width:var(--nav-height);
min-width:var(--nav-height);
margin-left: 1rem;
text-align: center;
}
}
&:before {
content:"";
position: absolute;
// border-bottom: 1rem solid var(--color-stroke);
opacity: var(--alpha-stroke);
left: 0;
right: 0;
bottom: 0;
}
div {
--color-stroke:var(--color-widget);
--color-fill:var(--color-widget);
line-height:calc(var(--nav-height) - 1rem);
display:flex;
min-width:0;
flex: 1 1 100%;
cursor:pointer;
height:100%;
align-items: center;
align-items: center;
justify-content: center;
position:relative;
letter-spacing: 1rem;
font-size: 109%;
text-overflow: ellipsis;
padding: 0 8rem;
overflow: hidden!important;
i {
pointer-events: none;
position: relative;
}
&.on {
z-index: 1;overflow: visible;
&:before {
content: "";
position: absolute;
left: 0rem;
right: 0rem;
bottom: 0rem;
opacity: var(--alpha-fill-on);
height: 4rem;
background: var(--color-fill);
z-index: 101;
}
&:last-child {
margin-right:0;
margin-left: auto;
i {
font-size: 14rem;
}
}
&:first-child:before {
margin-left: 1rem;
}
&:last-child:before {
margin-right: 1rem;
}
}
}
}
.clone-container {
&.empty {
@include pseudo-stroke();
&:before {
content:"clone"
}
}
> label {
display: none;
}
> .clone {
--widget-spacing: 0;
flex: 1;
> .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;
}
}
}
.modal-container {
> .toggle {
--alpha-fill-off: 0;
--alpha-fill-on: .75;
--widget-padding: -1rem;
position: absolute;
top:0;
left:0;
right:0;
bottom:0;
margin: calc(var(--widget-spacing) / 2);
flex: 1;
display: flex;
flex-direction: column;
@include pseudo-stroke();
@include pseudo-fill();
}
> label {
flex: 1;
max-height: initial;
text-align: center;
pointer-events:none;
display: flex;
justify-content: center;
align-items: center;
z-index: 1;
color: var(--color-text);
&: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: var(--color-stroke);
opacity: var(--alpha-stroke);
margin: calc(var(--widget-spacing) / 2);
}
}
&.on {
> .toggle {
--alpha-fill:var(--alpha-fill-on);
}
> label, > label:after {
color: var(--color-foreground);
opacity: 1;
}
}
> .panel {
display: none;
}
> .popup {
padding:0;
> .popup-wrapper {
max-width: 100%;
max-height: 100%;
width: var(--width, 100%);
height: var(--height, 100%);
display: flex;
.popup-content {
&:before {
content: none;
}
// margin: -1rem;
> .panel {
margin: calc(var(--widget-spacing) / 2) calc(var(--widget-spacing) / 2) calc(var(--widget-spacing) / 2);
}
}
}
&.x-positionned {
justify-content: flex-start;
> .popup-wrapper {
left: var(--left);
}
}
&.y-positionned {
align-items:flex-start;
> .popup-wrapper {
top: var(--top);
}
}
}
&.on {
z-index: initial;
> .toggle:after {
color:var(--color-custom);
}
border-radius: 0!important; // border radius breaks it somehow
}
}

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

@ -0,0 +1,74 @@
.led-container {
--color-led: var(--color-fill);
--alpha-fill-off: 0;
--alpha-fill-on: 1;
inner {
--color-fill: var(--color-led);
--alpha-fill: calc(var(--alpha-fill-off) + var(--opacity) * (var(--alpha-fill-on) - var(--alpha-fill-off)));
position: relative;
flex: 1;
padding: --widget-padding;
@include pseudo-stroke();
@include pseudo-fill();
&:before, &:after {
border-radius: var(--border-radius);
}
}
}
.text-container {
width: 100rem;
height:60rem;
--alpha-fill-on: 75;
inner {
@include pseudo-stroke();
@include pseudo-fill($z: -1);
padding: var(--widget-padding);
display: flex;
}
div {
color: var(--color-fill);
opacity: var(--alpha-fill-on);
flex: 1;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
white-space: pre;
line-height: 100%;
overflow: hidden;
text-align: center;
word-wrap: break-word;
&.right {
text-align: right;
justify-content: flex-end;
}
&.left {
text-align: left;
justify-content: flex-start;
}
&.wrap {
white-space: pre-wrap;
word-break: break-all;
}
&.vertical {
transform: rotate(180deg);
text-overflow: ellipsis;
-webkit-writing-mode:vertical-rl;
writing-mode:vertical-rl;
}
}
}

View file

@ -1,238 +1,66 @@
.input-container {
width: 100rem;
height: 60rem;
padding:1rem;
.vertical {
--alpha-fill-off: 0.05;
inner {
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 {
@include pseudo-stroke();
@include pseudo-fill(0.05);
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);
flex: 1;
padding: var(--widget-padding);
text-align: center;
&.right {
text-align: right;
}
&.left {
text-align: left;
}
input {
display: block;
flex:1;
max-width: 100%;
font: inherit;
border:0;
padding:0;
}
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 {
color:var(--color-text-fade);
}
&:focus::selection {
color:var(--color-fill);
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;
&.nolabel {
--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;
&.nolabel .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,199 +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;
}
}
.widget.menu-container > .label:after {
content:"\f58d";
transform: none;
font-size: 12rem;
top:3rem;
right:6rem;
}

View file

@ -1,194 +1,35 @@
.xy-container, .rgb-container, .multixy-container {
width:200rem;
height:230rem;
padding:2rem;
.xy-container, .multixy-container {
--background: var(--color-track);
--pips-opacity: 0.2;
--point-opacity: 0.3;
--alpha-fill: var(--alpha-fill-off);
--widget-padding: 20rem;
.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;
inner {
position: relative;
flex: 1;
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;
}
}
}
@include pseudo-fill($z: -1);
@include pseudo-stroke();
// padding: var(--widget-padding);
}
}
.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;
}
}
}
canvas {
// margin: var(--widget-padding);
width: 100%;
text-align: center;
}
}
}
.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:not(:first-child) {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
pointer-events: none;
}
}

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;
}
}
}
}
&.nolabel {
> .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,38 +0,0 @@
.patchbay-container {
width: 200rem;
height: 200rem;
.patchbay {
display: flex;
flex-direction: row;
padding:1rem 2rem 1rem 1rem;
// @extend .glass-effect;
height: 100%;
canvas {
flex: 1;
width: 0;
background: var(--color-track);
border-top:1rem solid var(--color-bg);
border-bottom:1rem solid var(--color-bg)
}
.nodes {
display: flex;
flex-direction: column;
align-items:stretch;
margin-bottom: 1rem;
width: 25%;
> div {
width: 100%!important;
height: 100%;
flex:1;
flex-shrink: 0;
@extend .toggle-container;
div {
pointer-events: none;
}
}
}
}
}

View file

@ -1,265 +1,24 @@
.led-container, .rgbled-container {
width:100rem;
height:100rem;
padding:1rem;
.led {
--opacity: 0;
--color-led: var(--color-custom);
.eq-container,
.visualizer-container,
.plot-container {
--alpha-fill-off: 0.05;
--alpha-fill-on: 0.1;
--widget-padding: 20rem;
inner {
position: relative;
flex: 1;
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;
@include pseudo-fill($z: -1);
@include pseudo-stroke();
// padding: var(--widget-padding);
}
}
.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;
// margin: var(--widget-padding);
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.nolabel 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

@ -0,0 +1,31 @@
.fader-container,
.knob-container,
.encoder-container,
.range-container {
inner {
flex: 1;
}
canvas {
image-rendering: pixelated;
width: 100%;
height: 100%;
}
}
.fader-container,
.range-container {
--widget-padding: 1rem;
}
.knob-container,
.encoder-container {
--widget-padding: 1rem;
--alpha-stroke: 0.75;
}

View file

@ -1,226 +0,0 @@
.state-container, .switch-container, .switcher-container, .crossfader-container {
z-index: 1;
width:100rem;
height:100rem;
padding:1rem;
&.nolabel {
--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;
&.nolabel {
--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;
}
}
}