continue v1

This commit is contained in:
bordun 2020-02-24 14:00:59 +01:00
parent 85f7f1cb8e
commit be693864ab
25 changed files with 139 additions and 244 deletions

View file

@ -9,7 +9,6 @@
align-items:center;
justify-content: center;
z-index: 99999999;
transform: translate3d(0,0,0);
display: none;
// backdrop-filter: blur(1rem); // perf hit

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

@ -12,7 +12,7 @@
width: 100rem;
height: 100rem;
contain: style size layout;
contain: strict;
-webkit-tap-highlight-color:transparent;
--widget-padding: 1rem;
@ -77,3 +77,4 @@
@import 'widgets/plots';
@import 'widgets/indicators';
@import 'widgets/frames';
@import 'widgets/patchbay';

View file

@ -97,12 +97,20 @@
border-radius: 0!important; // border radius breaks it somehow
z-index: initial!important;
contain: style size;
// contain: style size;
--size: 300rem;
--grid-columns: 2;
overflow: hidden;
&.on {
z-index: 9999999999999!important;
contain: layout;
overflow: visible;
}
inner {
flex:1;
display: flex;
@ -161,8 +169,8 @@
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);
margin-left: calc(- var(--size) / 2);
margin-top: calc(- var(--size) / 2);
&:after {
content:"";

View file

@ -8,8 +8,6 @@
background-color: var(--color-foreground);
> .panel {
transform: rotateZ(0);
flex: 1;
flex-direction: column;
display: flex;
@ -123,11 +121,6 @@
display: none;
}
&.contains-widgets > .panel {
transform: rotateZ(0);
}
}
.panel-container {
@ -354,6 +347,10 @@
}
&.on {
z-index: 9999999999999!important;
contain: size;
overflow: visible;
border-radius: 0!important; // border radius breaks it somehow
> .toggle {
--alpha-fill:var(--alpha-fill-on);
}
@ -382,10 +379,11 @@
height: var(--height, 100%);
display: flex;
.popup-content {
// contain:unset; // == no restrain
&:before {
content: none;
}
// margin: -1rem;
> .panel {
margin: calc(var(--widget-spacing) / 2) calc(var(--widget-spacing) / 2) calc(var(--widget-spacing) / 2);
}
@ -407,12 +405,4 @@
}
&.on {
z-index: initial;
> .toggle:after {
color:var(--color-custom);
}
border-radius: 0!important; // border radius breaks it somehow
}
}

View file

@ -1,5 +1,6 @@
.xy-container, .multixy-container {
--alpha-fill-off: 0.05;
--alpha-fill: var(--alpha-fill-off);
--widget-padding: 20rem;
@ -10,11 +11,9 @@
@include pseudo-fill($z: -1);
@include pseudo-stroke();
// padding: var(--widget-padding);
}
canvas {
// margin: var(--widget-padding);
width: 100%;
text-align: center;
}

View file

@ -0,0 +1,54 @@
.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;
}
}
}