v1 refactor wip

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

View file

@ -1,293 +1,10 @@
#editor {
box-shadow: 0 0 0 1rem var(--color-light) inset;
background: var(--color-fg);
padding: 1rem 8rem 8rem;
margin-top: 2rem;
flex-shrink:0;
&:empty {
padding:0;
margin: 0;
}
ul {
padding: 4rem;
list-style:none;
li {
margin-bottom: 4rem;
position: relative;
&:last-child {
margin: 0;
}
}
}
.form {
margin-top: 10rem;
}
}
.form {
line-height: 18rem;
.input-wrapper {
display: flex;
// margin-bottom:4rem;
margin-top: -1rem;
// box-shadow: 0 0 0 1 var(--color-bg);
background:var(--color-bg);
align-items: stretch;
z-index: 1;
border-bottom: 1rem solid var(--color-bg);
position: relative;
justify-content: center;
text-transform: none;
font-weight: 500;
&:last-child {
margin-bottom:0;
}
&.disabled {
label {
opacity: .8;
}
}
label {
flex-shrink: 0;
padding: 6rem 7rem 4rem;
min-width: 29%;
margin: 1rem;
margin-bottom: 0;
margin-right: 0;
&:not(.btn) {
background: var(--color-fg);
box-shadow: 1rem 0 0 0 var(--color-bg) inset;
margin: 0;
margin-top: 1rem;
}
&.dynamic:after {
content:"\f0e7";
font-family: FontAwesome;
vertical-align:super;
font-size: 75%;
opacity: 0.75!important;
position: absolute;
margin-top: -4rem;
}
}
.input {
background: var(--color-bg);
flex: 1 1 100%;
padding:5rem;
border-top:1rem solid var(--color-fg);
border-radius: 0;
-webkit-appearance:none;
cursor: initial;
width: 1px;
}
.column {
padding: 2rem;
ul {
padding: 0!important;
overflow: auto;
li:not(:last-child) {
margin-bottom: 2rem!important;
}
.sortable-placeholder {
background: transparent;
&:after {
content:"|";
color: transparent;
}
}
li i {
pointer-events: none
}
}
.btn + span {
position: absolute;
right:0rem;
top:0rem;
padding:8rem;
opacity: 0.6;
cursor: pointer;
&:hover {
opacity: 1;
}
}
}
.checkbox {
line-height: 18rem;
height: 18rem;
width: 18rem;
position: absolute;
right:5rem;
top:6rem;
cursor: pointer;
background: var(--color-fg);
text-align: center;
box-shadow: 0 0 0 1rem var(--color-light) inset;
display: flex;
align-items: center;
justify-content: center;
i {
color: transparent;
margin-top: -1rem;
margin-left: 1rem;
}
&.on i {
color:var(--color-accent);
}
}
}
label {
display: block;
font-size: 10rem;
// background: var(--color-track);
}
.info {
color:var(--color-text-fade);
margin-bottom:10rem;
}
.input {
display:block;
border:0;
font:inherit;
color:var(--color-text);
width:auto;
.btn {
background: var(--color-raised);
box-shadow: 0 0 0 1rem var(--color-light) inset,
0 0 0 1rem var(--color-bg);
&:not(:last-child){
cursor: -webkit-grab;
cursor: grab;
}
}
}
textarea {
display:block;
border:0;
font:inherit;
background: none;
color:var(--color-text);
width:100%;
padding:5rem;
overflow-x: auto;
overflow-y: hidden;
white-space: nowrap;
border-top:1rem solid var(--color-fg);
resize: none;
font-size: 12rem!important;
-webkit-user-select: text;
user-select: text;
--scrollbar-size: 6rem;
&::-webkit-scrollbar-button {
width:1rem!important;
}
}
.error label{
color: red;
}
.select-wrapper {
position: relative;
margin: 2rem;
flex: 1 1 100%;
&:after{
content:"\f107";
font-family: FontAwesome;
position: absolute;
padding:5rem;
right:0;
top:1rem;
font-size: 20rem;
pointer-events: none;
}
.input {
border:0;
width: 100%;
cursor: pointer;
background: var(--color-fg);
box-shadow: 0 0 0 1rem var(--color-light) inset;
}
}
select {
-webkit-appearance:none;
-moz-appearance:none;
appearance:none;
font-size: 12rem!important;
}
.submit {
margin-top:30rem;
}
.separator {
line-height: 30rem;
height: 30rem;
margin-top: 10rem;
position: relative;
display: flex;
align-items: center;
border: 1rem solid var(--color-bg);
box-shadow: 0 0 0 1rem var(--color-light) inset;
padding: 0 10rem;
span {
text-transform: lowercase;
font-variant: small-caps;
position: relative;
display: block;
width:100%;
text-align:center;
pointer-events: none;
text-overflow:ellipsis;
overflow:hidden;
&.accent {
color: var(--color-accent);
}
}
}
.separator + .input-wrapper .input {
border-top-color:transparent;
}
.category {
.separator {
cursor: pointer;
}
.separator:before {
font-family: FontAwesome;
content: "\f0d7";
line-height: 30rem;
width:30rem;
text-align: center;
position: absolute;
opacity: 0.6;
}
&.folded {
.separator:before {
content: "\f0da";
}
.input-wrapper {
display: none;
}
}
}
}
// sticky editor header
.editor-container .form > .separator {
background: var(--color-fg);
position: sticky;
top:10rem;
box-shadow: 0 0 0 1rem var(--color-light) inset,
0 -10rem 0 0 var(--color-fg);
z-index: 10;
}
.widget.editing {
z-index: 9999!important;
// overflow: visible;
}
.widget.editing:after, li.editing a:after, a.editing:before, .content.editing:before, #container.editing:before{
.widget.editing:after,
.tablink.editing:after,
.modal-container.editing .popup-wrapper:after {
content:"";
z-index: 999!important;
position: absolute;
@ -309,194 +26,17 @@
opacity: 1!important;
}
.context-menu {
position:fixed;
z-index: 999999999;
background: var(--color-raised);
box-shadow: 0 0 4rem 1rem var(--color-bg);
text-transform: none;
.item {
color:var(--color-text)
}
.context-menu {
position: absolute;
left:100%;
top:0;
opacity:0;
pointer-events: none;
margin-left: 2rem;
&:before {
content:"";
position: absolute;
top:0;
bottom:0;
left:-2rem;
width:2rem;
}
}
> .item {
padding: 10rem 15rem 10rem 10rem;
position:relative;
cursor: pointer;
i {
margin-right:5rem;
width: 15rem;
text-align: center;
}
&.focus, &:focus {
> .context-menu {
pointer-events: auto;
opacity: 1;
}
&:after {
content:"";
position: absolute;
left:0;
top:0;
width: 100%;
height:100%;
background:var(--color-accent);
opacity: 0.5;
z-index: -1;
}
}
&.has-sub:before {
content:"\f105";
display: block;
font-family: FontAwesome;
float:right;
margin-right:-10rem;
padding-left: 10rem;
}
}
}
.ui-resizable-handle {
position: absolute;
z-index: 10000;
display: flex;
justify-content: center;
align-items: center;
background: var(--color-accent);
width:8rem;
height:8rem;
padding: 1rem;
background-clip: content-box;
&:after {
content:"";
position: absolute;
}
&.ui-resizable-se {
content:"";
bottom: 1rem;
right: 1rem;
cursor: se-resize;
&:after {
top:-5rem;
right:-1rem;
left:-5rem;
bottom:-1rem;
}
}
&.ui-resizable-e {
top: 50%;
margin-top:-4rem;
right: 1rem;
cursor: e-resize;
&:after {
top:-5rem;
right:-1rem;
left:-5rem;
bottom:-5rem;
}
}
&.ui-resizable-s {
bottom: 1rem;
left: 50%;
margin-left:-4rem;
cursor: s-resize;
&:after {
top:-5rem;
right:-5rem;
left:-5rem;
bottom:-1rem;
}
}
}
.ui-helper {
z-index: 10000!important;
opacity: 1!important;
&:before {
content:"";
position: absolute;
top:1rem;
left:1rem;
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;
}
&:after {
content:"";
position: absolute;
top:1rem;
left:1rem;
right:0;
bottom:0;
background: var(--color-accent);
opacity: .25;
}
}
.ui-draggable-handle:not(.label) {
position: absolute;
top: 1rem;
left: 1rem;
z-index: 100000;
height:8rem;
width: 8rem;
display: flex;
justify-content: center;
align-items: center;
background: var(--color-accent);
padding: 1rem;
background-clip: content-box;
&:after {
content:"";
position: absolute;
top:-1rem;
right:-5rem;
left:-1rem;
bottom:-5rem;
}
}
.ui-draggable-handle {
cursor: -webkit-grab;
&:active {
cursor:-webkit-grabbing;
}
}
// GRID
.editor-enabled {
&:not(.no-grid) {
.tab:not(.has-tabs), .panel {
.panel {
background-image: linear-gradient(to bottom, var(--color-grid) 1rem, transparent 1rem),
linear-gradient(to right, var(--color-grid) 1rem, transparent 1rem);
--size: calc(var(--grid-width) * 1rem);
background-size: var(--size) var(--size);
background-attachment: local;
background-position: 0 0;
background-position: 0rem 0;
}
}
@ -542,21 +82,3 @@
}
// selectable
.select-area {
position:fixed;
z-index:999999;
border: 1rem solid var(--color-accent);
pointer-events: none;
&:after {
content:"";
position: absolute;
top:0;left:0;
right:0;bottom:0;
background: var(--color-accent);
opacity: 0.2;
}
&.hidden {
display: none;
}
}

View file

@ -1,9 +1,8 @@
@import 'reset';
@import 'scrollbars';
@import 'mixins';
@import 'layout';
@import 'notifications';
@import 'ui';
@import 'editor';
@import 'sidepanel';
@ -59,12 +58,12 @@ body {
font-size:11rem;
line-height:100%;
font-weight: 500;
text-transform: uppercase;
// text-transform: uppercase;
letter-spacing: 1rem;
}
.btn {
background: var(--color-raised);
background: var(--color-foreground);
display: block;
padding:15rem;
position: relative;
@ -72,7 +71,6 @@ body {
text-overflow: ellipsis;
overflow: hidden;
cursor: pointer;
box-shadow: 0 0 0 1rem var(--color-light) inset;
&.small {
padding:8rem;
padding-right: 15rem;
@ -493,98 +491,6 @@ body {
.popup {
position: fixed;
top:0;
left:0;
right:0;
bottom:0;
padding:10%;
align-items:center;
justify-content: center;
z-index:1000000;
transform: translate3d(0,0,0);
display: none;
&.show {
display: flex;
}
&:before {
content: "";
position: absolute;
top:0;
left:0;
right:0;
bottom:0;
background:var(--color-bg);
opacity: .5;
}
.popup-title {
position: relative;
background:var(--color-raised);
border-bottom: 1rem solid var(--color-bg);
box-shadow: 0 0 0 1rem var(--color-light) inset;
height:46rem;
flex-shrink: 0;
display: flex;
padding:0 15rem;
align-items: center;
.title {
flex:1;
overflow: hidden;
text-overflow: ellipsis;
}
i {
margin-right: 5rem;
}
&.closable {
padding-right: 0;
}
.popup-label {
flex:1;
}
.closer {
padding:0 15rem;
height: 100%;
flex-shrink: 0;
display: flex;
align-items: center;
text-align: center;
color:var(--color-text-fade);
cursor: pointer;
i {
pointer-events: none;
}
}
}
.popup-wrapper {
display: flex;
flex-direction: column;
align-items: stretch;
width:auto;
max-width:600rem;
max-height: 100%;
position: relative;
overflow: hidden;
box-shadow: 1rem 0 0 0 var(--color-bg),
0 1rem 0 0 var(--color-bg),
1rem 1rem 0 0 var(--color-bg),
0 1rem 0 0 var(--color-light) inset;
border-left:1rem solid var(--color-bg);
border-top:1rem solid var(--color-bg);
.popup-content {
height:100%;
width:100%;
flex:1;
padding:10rem;
overflow-y:auto;
white-space: normal;
background:var(--color-fg);
box-shadow: 0 0 0 1rem var(--color-light) inset;
text-transform: none;
position: relative;
}
}
}
.error-stack {
> span {

View file

@ -1,139 +0,0 @@
body {
background:var(--color-bg);
}
#container {
position: absolute;
top:0;
left:0;
bottom:0;
right:0;
display:flex;
flex-direction: column;
background:var(--color-bg);
padding:2rem;
opacity: 0;
transition: opacity .1s;
min-width: 45rem;
&.show {
opacity: 1;
}
&.sidepanel-open {
right:var(--sidepanel-size);
}
}
.navigation {
height:var(--nav-height);
margin-bottom: 1rem;
margin-left: 1rem;
flex-shrink:0;
// font-weight:bold;
text-transform: uppercase;
background: transparent;
height:calc(var(--nav-height) - 2rem);
&:after {
background: var(--color-bg);
}
a.on {
border-color: var(--color-bg);
}
&.main {
li:last-child {
width:var(--nav-height);
max-width:var(--nav-height);
min-width:var(--nav-height);
i {
margin:0 auto;
}
}
}
ul {
list-style:none;
display: flex;
overflow: hidden;
height:100%;
li {
display:block;
min-width:0;
flex: 1 1 100%;
cursor:pointer;
height:100%;
margin-right: 1rem;
&:last-child {
margin-right:0;
margin-left: auto;
i {
font-size: 14rem;
}
}
a {
background: var(--color-raised);
pointer-events: none;
padding: 0 5rem;
height:100%;
display: flex;
align-items: center;
overflow:hidden;
text-align:center;
position:relative;
box-shadow: 0 0 0 1rem var(--color-light) inset;
letter-spacing: 1rem;
font-size: 109%;
white-space: pre;
span {
display:block;
width:100%;
padding: 2rem 0;
-webkit-mask: linear-gradient(to left, rgba(0, 0, 0, 0), #000000 10rem) no-repeat;
}
}
#open-toggle {
pointer-events: auto;
i {
pointer-events: none;
font-size:13rem;
}
}
&.on a, .sidepanel-open {
position: relative;
z-index: 0;
// background:var(--color-fg);
color: var(--color-custom);
&:before {
content: "";
position: absolute;
top:0;
left: 0;
right: 0;
bottom: 0;
opacity: 0.4;
background: radial-gradient( ellipse at center, transparent, var(--color-bg));
}
&:after {
content:"";
position: absolute;
top:0;
left: 0;
right: 0;
bottom: 0;
opacity: 0.3;
box-shadow: 0 0 0 1rem var(--color-custom) inset;
border-radius: inherit;
z-index: -1;
}
}
}
.parent + li a {
padding-left: calc(5rem + 0.5 * var(--nav-height));
}
}
}

32
src/scss/mixins.scss Normal file
View file

@ -0,0 +1,32 @@
@mixin pseudo-stroke($z: 0) {
&:before {
content:"";
position: absolute;
border: 1rem solid var(--color-stroke);
opacity: var(--alpha-stroke);
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none;
z-index: $z;
border-radius: inherit;
}
}
@mixin pseudo-fill($z: 0) {
&:after {
content:"";
position: absolute;
background: var(--color-fill);
opacity: var(--alpha-fill);
top: 1rem;
left: 1rem;
right: 1rem;
bottom: 1rem;
pointer-events: none;
margin: var(--widget-padding);
z-index: $z;
border-radius: inherit;
}
}

View file

@ -1,88 +0,0 @@
::-webkit-scrollbar {
width: var(--scrollbar-size);
height:var(--scrollbar-size);
opacity:1;
}
::-webkit-scrollbar-track-piece {
background: var(--color-bg);
&:vertical {
border-left:2rem solid var(--color-bg);
}
&:horizontal {
border-top:2rem solid var(--color-bg);
}
}
::-webkit-scrollbar-corner {
background: var(--color-fg);
border-left:2rem solid var(--color-bg);
border-top:2rem solid var(--color-bg);
}
::-webkit-scrollbar-thumb {
background: var(--color-raised);
&:vertical {
border-left:2rem solid var(--color-bg);
}
&:horizontal {
border-top:2rem solid var(--color-bg);
}
}
@mixin arrow($r) {
background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="50px" width="50px"><g stroke="rgba(255,255,255,0.5)" transform="rotate('+$r+' 25 25)"><line x1="16" y1="20" x2="25" y2="29" stroke-width="2" /><line x1="25" y1="29" x2="34" y2="20" stroke-width="2" /></g></svg>');
background-blend-mode: difference, normal;
}
::-webkit-scrollbar-button:decrement:start, ::-webkit-scrollbar-button:increment:end {
background:var(--color-fg);
height:var(--scrollbar-size);
width: var(--scrollbar-size);
display: block;
color:red;
background-size:contain;
background-position: center;
&:vertical {
&:decrement:start {
border-left:2rem solid var(--color-bg);
border-bottom:1rem solid var(--color-bg);
@include arrow(180)
}
&:increment:end {
border-left:2rem solid var(--color-bg);
border-top:1rem solid var(--color-bg);
@include arrow(0)
}
}
&:horizontal {
&:decrement:start {
border-right:1rem solid var(--color-bg);
border-top:2rem solid var(--color-bg);
@include arrow(90)
}
&:increment:end {
border-left:1rem solid var(--color-bg);
border-top:2rem solid var(--color-bg);
@include arrow(-90)
}
}
}
// ::-webkit-resizer {
// border-left:2rem solid var(--color-bg);
// border-top:2rem solid var(--color-bg);
// background:var(--color-fg);
// background-size:contain;
// background-position: 2rem 2rem;
// @include arrow(-45)
// }

View file

@ -1,56 +1,56 @@
#sidepanel {
position:absolute;
z-index: 999999;
width:var(--sidepanel-size);
max-width: calc(100% - 45rem);
min-width: 300rem;
border-top: 2rem solid var(--color-bg);
border-bottom: 2rem solid var(--color-bg);
border-right: 2rem solid var(--color-bg);
top:0;
right:0;
bottom:0;
margin-right:calc(-1 * var(--sidepanel-size));
background:var(--color-bg);
transition:transform .25s, opacity .25s;
transform: translate3d(0,0,0);
opacity: 0;
box-shadow: 0 0 15rem 0 rgba(black, 0.3);
display: flex;
flex-direction: column;
#sidepanel-wrapper {
overflow-y: auto;
overflow-x: visible;
display: flex;
flex-direction: column;
flex:1;
}
&.sidepanel-open {
transform: translate3d(calc(-1 * var(--sidepanel-size)),0,0);
opacity: 1;
}
&.hide {
z-index: -1;
pointer-events: none;
margin-right: 0;
}
.navigation {
margin-bottom:2rem;
margin-left: 0;
li {
cursor:default;
}
a {
text-transform: none;
color: var(--color-accent);
justify-content: center;
}
}
//
// #sidepanel {
// position:absolute;
// z-index: 999999;
// width:var(--sidepanel-size);
// max-width: calc(100% - 45rem);
// min-width: 300rem;
// border-top: 2rem solid var(--color-bg);
// border-bottom: 2rem solid var(--color-bg);
// border-right: 2rem solid var(--color-bg);
// top:0;
// right:0;
// bottom:0;
// margin-right:calc(-1 * var(--sidepanel-size));
// background:var(--color-bg);
// transition:transform .25s, opacity .25s;
// transform: translate3d(0,0,0);
// opacity: 0;
// box-shadow: 0 0 15rem 0 rgba(black, 0.3);
// display: flex;
// flex-direction: column;
//
// #sidepanel-wrapper {
// overflow-y: auto;
// overflow-x: visible;
// display: flex;
// flex-direction: column;
// flex:1;
// }
//
// &.sidepanel-open {
// transform: translate3d(calc(-1 * var(--sidepanel-size)),0,0);
// opacity: 1;
// }
//
// &.hide {
// z-index: -1;
// pointer-events: none;
// margin-right: 0;
// }
//
// .navigation {
// margin-bottom:2rem;
// margin-left: 0;
// li {
// cursor:default;
// }
// a {
// text-transform: none;
// color: var(--color-accent);
// justify-content: center;
// }
// }
#options {
box-shadow: 0 0 0 1rem var(--color-light) inset;
@ -68,7 +68,7 @@
}
}
}
// }
.actions {
padding:0.5rem;
background:var(--color-bg);
@ -146,23 +146,3 @@
}
}
#sidepanel-handle {
width: 6rem;
position: fixed;
top:-1rem!important;
bottom:-1rem!important;
left:-1rem!important;
height: auto!important;
background-color: var(--color-custom);
cursor: col-resize;
transition: opacity .25s;
opacity: 0;
&:hover, &.ui-draggable-dragging {
opacity: 0.2;
}
}
#sidepanel.resizing {
transition: none;
}

View file

@ -12,7 +12,7 @@ $text: white;
--color-text-fade: #{transparentize($text, .6)};
--color-accent: #{$accent};
--color-grid: #{transparentize($accent, 0.95)};
// --color-grid: #{transparentize($accent, 0.95)};
--color-bg: #{$base};
--color-track: #{desaturate(mix($base, $tone, 95), 2)};
@ -37,7 +37,27 @@ $text: white;
--nav-height:40rem;
--sidepanel-size:300rem;
--scrollbar-size:20rem;
--grid-width:10;
--color-foreground: #{$base};
--color-background: #{mix($base, black, 85)};
--color-grid: rgba(0,0,0, 0.1);
--color-context-menu: #{mix($base, white, 95)};
--color-context-menu-text: #{transparentize($text, .2)};
--alpha-scrollbar: 0.25;
--alpha-scrollbar-on: 0.5;
--scrollbar-size:12rem;
--color-text: #{transparentize($text, .4)};
--color-widget: var(--color-accent);
}

9
src/scss/ui.scss Normal file
View file

@ -0,0 +1,9 @@
@import 'ui/scrollbars';
@import 'ui/workspaces';
@import 'ui/notifications';
@import 'ui/inspector';
@import 'ui/tree';
@import 'ui/dragresize';
@import 'ui/selectarea';
@import 'ui/contextmenu';
@import 'ui/modal';

View file

@ -0,0 +1,60 @@
$line-height: 30rem;
.context-menu {
position:fixed;
z-index: 999999999;
background: var(--color-context-menu);
box-shadow: 0 0 0 1rem rgba(0, 0, 0, 0.1) inset;
text-transform: none;
color: var(--color-context-menu-text);
line-height: $line-height;
--widget-padding: 0rem;
.context-menu {
position: absolute;
left:100%;
top:0;
opacity:0;
pointer-events: none;
margin-left: 1rem;
&:before {
content:"";
position: absolute;
top:0;
bottom:0;
left:-2rem;
width:2rem;
}
}
> .item {
padding-left: 15rem;
padding-right: 25rem;
position:relative;
cursor: pointer;
i {
margin-right:5rem;
width: 15rem;
text-align: center;
margin-left: -5rem;
}
&.focus, &:focus {
> .context-menu {
pointer-events: auto;
opacity: 1;
}
@include pseudo-fill($z: -1);
color: var(--color-context-menu);
}
&.has-sub:before {
content:"\f105";
display: block;
font-family: FontAwesome;
float:right;
margin-right:-20rem;
width: 15rem;
text-align: center;
position: relative;
}
}
}

View file

@ -0,0 +1,80 @@
#drag-resize {
--color-fill: var(--color-accent);
--color-stroke: var(--color-accent);
position: absolute;
z-index: 99999999;
top: var(--top);
left: var(--left);
.helper {
position: absolute;
top:0;
left:0;
width: var(--width);
height: var(--height);
pointer-events: none;
--alpha-fill: 0.5;
--widget-padding: -1rem;
opacity: 0.5;
display: none;
border: 1rem solid var(--color-stroke);
@include pseudo-fill();
}
&.dragging .helper {
display: block;
}
.handle {
$size: 10rem;
position: absolute;
background: var(--color-fill);
width: $size;
height: $size;
border: 2rem solid transparent;
background-clip: content-box;
// opacity: 0.75;
&.nw {
cursor: move;
}
&.e {
top: calc(var(--height) / 2);
left: var(--width);
margin-left: -$size;
margin-top: -$size / 2;
cursor: e-resize;
}
&.se {
top: var(--height);
left: var(--width);
margin-left: -$size;
margin-top: -$size;
cursor: se-resize;
}
&.s {
top: var(--height);
left: calc(var(--width) / 2);
margin-left: -$size / 2;
margin-top: -$size;
cursor: s-resize;
}
}
}

226
src/scss/ui/inspector.scss Normal file
View file

@ -0,0 +1,226 @@
$header-height: 22rem;
$field-height: 22rem;
$padding: 8rem;
#osc-inspector {
// padding: $padding;
--widget-padding: -1rem;
}
osc-inspector-field {
display: flex;
flex-direction: row;
line-height: $field-height;
margin-top: 4rem;
label {
width: 90rem;
order: 35;
text-transform: none;
padding-left: 8rem;
cursor: help;
}
textarea {
font-family: mono;
line-height: $field-height - 8rem;
padding: 5rem 6rem 3rem;
flex: 1;
overflow-x: auto;
overflow-y: hidden;
resize: none;
white-space: pre;
display: block;
background: var(--color-foreground);
cursor: text;
-webkit-appearance:none;
-moz-appearance:none;
appearance:none;
--scrollbar-size: 6rem;
&::-webkit-scrollbar-thumb:horizontal {
// border-top: 4rem solid var(--color-foreground);
cursor: normal;
}
}
}
osc-inspector-category {
--alpha-fill: 0.25;
margin-top: 2rem;
display: block;
padding: 0 8rem;
&:first-child {
margin-top: 0
}
.category-header {
position: relative;
text-transform: none;
cursor: pointer;
// color: var(--color-background);
height: $header-height;
line-height: $header-height + 1;
// padding: 0 8rem;
@include pseudo-fill($z: -1);
&:after {
left:-($padding - 2);
right:-($padding - 1);
}
&:before {
position: relative;
font-family: FontAwesome;
content: "\f04b";
width: $field-height;
text-align: left;
display: inline-block;
transform-origin: 2rem 3rem;
font-size: 7rem;
width: 8rem;
height: 8rem;
line-height: 6rem;
margin-right: 8rem;
top: -2rem;
transform: rotate(90deg);
transition: top .1s, transform .1s;
}
}
&.folded {
--alpha-fill: 0.10;
margin-bottom: 0;
.category-header:before {
transform: rotate(0deg);
top: 0;
}
osc-inspector-field {
display: none;
}
}
.category-header + osc-inspector-field {
margin-top: 8rem;
}
osc-inspector-field:last-child {
margin-bottom: 8rem;
}
}
osc-inspector-checkbox {
line-height: $field-height;
height: $field-height;
width: $field-height;
cursor: pointer;
background: var(--color-foreground);
text-align: center;
display: flex;
align-items: center;
justify-content: center;
margin-left: 4rem;
i {
color: transparent;
margin-top: -1rem;
margin-left: 1rem;
}
&.on {
position: relative;
z-index: 1;
@include pseudo-fill($z: -1);
i {
color: inherit;
}
}
}
osc-inspector-select {
position: relative;
font-family: mono;
line-height: inherit;
padding: 0;
overflow: hidden;
height: $field-height;
width: $field-height;
background: var(--color-foreground);
margin-left: 4rem;
select {
background: var(--color-foreground);
// width: 100%;
line-height: $field-height - 8rem;
padding: 4rem 6rem;
-webkit-appearance:none;
-moz-appearance:none;
appearance:none;
position: absolute;
left:0;
opacity: 0;
optgroup {
background: var(--color-foreground);
font-weight: bold;
option {
background: var(--color-background);
color: var(--color-text);
margin-left: -4rem;
font-weight: normal;
text-indent: -10px;
margin: 0;
}
}
}
&:after{
content:"\f0d7";
font-family: FontAwesome;
position: absolute;
line-height: $field-height;
height: $field-height;
width: $field-height;
text-align: center;
right:0;
top:1rem;
font-size: 16rem;
pointer-events: none;
}
}
.osc-inspector-color {
appearance: none;
padding: 0;
border: 0;
box-shadow: 0;
outline: 0;
position: relative;
font-family: mono;
line-height: inherit;
padding: 0;
overflow: hidden;
height: $field-height;
width: $field-height;
background: var(--color-foreground);
margin-left: 4rem;
-webkit-appearance:none;
-moz-appearance:none;
appearance:none;
}

78
src/scss/ui/modal.scss Normal file
View file

@ -0,0 +1,78 @@
.popup {
position: fixed;
top:0;
left:0;
right:0;
bottom:0;
padding:10%;
align-items:center;
justify-content: center;
z-index: 99999999;
transform: translate3d(0,0,0);
display: none;
// backdrop-filter: blur(1rem); // perf hit
&.show {
display: flex;
}
&:before {
content: "";
position: absolute;
top:0rem;
left:0;
right:0;
bottom:0;
background: black;
opacity: .1;
}
.popup-title {
position: relative;
height: var(--nav-height);
display: flex;
padding:0 15rem;
align-items: center;
background: var(--color-background);
.title {
flex:1;
overflow: hidden;
}
i {
margin-right: 5rem;
}
&.closable {
padding-right: 0;
}
.popup-label {
flex:1;
overflow: hidden;
}
.closer {
height: var(--nav-height);
width: var(--nav-height);
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
i {
pointer-events: none;
}
}
}
.popup-wrapper {
background: var(--color-foreground);
display: flex;
flex-direction: column;
align-items: stretch;
width:auto;
max-width:600rem;
max-height: 100%;
position: relative;
overflow: hidden;
.popup-content {
flex:1;
width: auto;
}
}
}

View file

@ -0,0 +1,44 @@
::-webkit-scrollbar {
width: var(--scrollbar-size);
height:var(--scrollbar-size);
}
::-webkit-scrollbar-track-piece {
background: var(--color-foreground);
&:vertical {
border-left: 1rem solid var(--color-foreground);
}
&:horizontal {
border-top: 1rem solid var(--color-foreground);
}
}
::-webkit-scrollbar-thumb {
background: var(--color-scrollbar);
&:active {
background: var(--color-scrollbar-on);
}
&:vertical {
border-left: 1rem solid var(--color-foreground);
}
&:horizontal {
border-top: 1rem solid var(--color-foreground);
}
}
::-webkit-scrollbar-button:decrement:start, ::-webkit-scrollbar-button:increment:end {
height: 0;
width: 0;
}
::-webkit-scrollbar-corner {
height: 0rem;
width: 0rem;
background: var(--color-foreground);
}
* {
scrollbar-color: var(--color-scrollbar) var(--color-background);
scrollbar-width: thin;
}

View file

@ -0,0 +1,19 @@
.select-area {
position:fixed;
z-index:999999;
border: 1rem solid var(--color-accent);
pointer-events: none;
&:after {
content:"";
position: absolute;
top:0;left:0;
right:0;bottom:0;
background: var(--color-accent);
opacity: 0.2;
}
&.hidden {
display: none;
}
}

115
src/scss/ui/tree.scss Normal file
View file

@ -0,0 +1,115 @@
#osc-tree {
--alpha-fill: 0.5;
--widget-padding: -1rem;
$padding: 16rem;
$line-height: 22rem;
padding: 0 $padding;
text-transform: none;
line-height: $line-height;
ol {
list-style: none;
position: relative;
padding-left: 16rem;
ol:before {
content: "";
position: absolute;
top: 0;
bottom: $line-height / 2 - 1;
left: -12rem;
border-left: 1rem solid var(--color-stroke);
opacity: 0.25;
pointer-events: none;
}
}
li {
position: relative;user-select: none;
> ol {
display: none;
}
&.expanded > ol {
display: block;
}
li:before {
content: "";
position: absolute;
top: $line-height / 2;
left: -27rem;
width: 16rem;
border-bottom: 1rem solid var(--color-stroke);
opacity: 0.25;
pointer-events: none;
}
.container:before {
width: 8rem;
}
&.invisible {
opacity: 0.5;
font-style: italic;
// &:after {
// content: "\f070";
// font-family: FontAwesome;
// width: 12rem;
// display: block;
// position: absolute;
// right: -12rem;
// }
}
}
.toggle {
&:before {
content: "\f054";
font-family: FontAwesome;
width: 20rem;
display: block;
position: absolute;
left: -21rem;
font-style: normal;
text-align: center;
}
cursor: pointer;
}
.container.expanded > .toggle:before {
content: "\f078";
}
.editing {
z-index: 1;
@include pseudo-fill($z: -1);
&:after {
left: calc(-1 * var(--depth) * 16rem - #{$padding});
right: -($padding - 1);
bottom: auto;
height: $line-height;
top: 0;
}
}
.contains-editing:not(.expanded):not(.editing) {
z-index: 1;
@include pseudo-fill($z: -1);
&:after {
left: calc(-1 * var(--depth) * 16rem - #{$padding});
right: -($padding - 1);
bottom: auto;
height: $line-height;
opacity: 0.1;
}
}
}

221
src/scss/ui/workspaces.scss Normal file
View file

@ -0,0 +1,221 @@
osc-workspace {
background: var(--color-background);
--color-fill: var(--color-widget);
--color-stroke: var(--color-widget);
position: static;
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
overflow: hidden;
}
osc-panel-container {
position: relative;
display:flex;
&.center {
flex: 1;
z-index: 1;
min-width: 100rem;
}
&.left, &.right {
z-index: 2;
min-width: 0;
width: 0;
&:after {
// hover trap to display toggle-button when closed
content: "";
position: absolute;
top: 0;
bottom: 0;
width: 1rem;
z-index: 1;
}
::-webkit-scrollbar-thumb, ::-webkit-scrollbar-track-piece {
border-color: var(--color-background)!important;
}
}
&.left:after {
right: -1rem;
}
&.right:after {
left: -1rem;
}
.resize-handle {
position: absolute;
top: 0;
bottom: 0;
width: 4rem;
cursor: ew-resize;
z-index: 4;
&.right {
left: 0;
}
&.left {
right: 0;
}
}
.toggle-button {
position: absolute;
top: 50%;
height: 50rem;
width: 25rem;
margin-top: -25rem;
cursor: pointer;
background: var(--color-background);
font-size: 14rem;
z-index: 2;
transition: transform 0.2s ease-out 0.1s;
will-change: transform;
&:after {
font-family: FontAwesome;
line-height: 50rem;
width: 25rem;
text-align: center;
display: block;
opacity: 0;
transition: opacity 0.2s ease-out 0s;
}
&.left {
border-top-right-radius: 25rem;
border-bottom-right-radius: 25rem;
right: -25rem;
transform: translateX(-25rem);
&:after {
content:"\f104";
margin-left: -4rem;
}
}
&.right {
border-top-left-radius: 25rem;
border-bottom-left-radius: 25rem;
left: -25rem;
transform: translateX(25rem);
&:after {
content:"\f105";
margin-left: 4rem;
}
}
}
&:hover .toggle-button, .toggle-button:hover {
transition: transform 0.2s ease-out 0s;
transform: translateX(0);
&:after {
transition: opacity 0.1s ease-in 0.1s;
opacity: 1;
}
}
&.minimized .toggle-button {
&.left:after {
content:"\f105";
}
&.right:after {
content:"\f104";
}
}
&.disabled .toggle-button {
display: none;
}
}
osc-modal-container {
position: absolute;
top: 0;
left: 0;
right: 0;
}
osc-panel-inner {
display: flex;
flex-direction: column;
flex: 1;
overflow: hidden;
z-index: 3;
min-width: 0;
}
// @keyframes test{
// 0% {
// transform: scaleX(0);
// opacity: 0;
// }
// 100% {
// tranform: scaleX(1);
// opacity: var(--alpha-fill);
// }
// }
//
// osc-panel-container:not(.disabled) osc-panel-header:before {
// animation: test 0.1s forwards;
//
// }
osc-panel-header {
--alpha-fill: 0.25;
display: flex;
height: var(--nav-height);
align-items: center;
align-items: center;
justify-content: center;
position:relative;
letter-spacing: 1rem;
font-size: 109%;
text-overflow: ellipsis;
padding: 0 8rem;
&:before {
content: "";
position: absolute;
left: 1rem;
right: 1rem;
bottom: 2rem;
opacity: var(--alpha-fill);
height: 4rem;
background: var(--color-fill);
z-index: 101;
}
}
osc-panel-content {
flex: 1;
overflow-y: auto;
&.left, &.right {
border-right: 1rem solid var(--color-background);
}
}

107
src/scss/widgets.old.scss Normal file
View file

@ -0,0 +1,107 @@
.widget {
height:auto;
overflow: hidden;
position:relative;
vertical-align:top;
box-shadow: 1rem 0 0 0 var(--color-border),
0 1rem 0 0 var(--color-border),
1rem 1rem 0 0 var(--color-border),
0 0 0 1rem var(--color-light) inset;
border-left:1rem solid var(--color-border);
border-top:1rem solid var(--color-border);
-webkit-tap-highlight-color:transparent;
display: inline-flex;
flex-direction: column;
--default-bg: var(--color-fg);
background: var(--default-bg);
max-width: 100%;
max-height: 100%;
text-transform: uppercase;
contain: style size layout;
color: var(--color-text);
--color-glass-1: var(--color-custom);
--color-glass-2: var(--color-track);
&.absolute-position {
position: absolute;
z-index: 10;
}
&.nolabel {
> .label {
display:none;
}
}
> .label ~ div {
border-top-left-radius:0;
border-top-right-radius:0;
border-bottom-right-radius:inherit;
border-bottom-left-radius:inherit;
min-height: 0;
}
&.nolabel > .label ~ div {
border-radius: inherit;
}
.label {
text-overflow:ellipsis;
overflow:hidden;
text-align:center;
height:30rem;
max-height:30rem;
padding:0 6rem;
width: 100%;
flex-shrink: 0;
display: flex;
justify-content: center;
white-space: pre;
// justify-content: space-around;
align-items: center;
&.accent {
color:var(--color-accent);
}
}
}
.glass-effect {
position: relative;
&:after {
content:"";
position: absolute;
pointer-events: none;
top:0;
left:0;
right:0;
bottom:0;
background: radial-gradient(ellipse farthest-side at center top, var(--color-glass-1), var(--color-glass-2));
background-size: 150% 150%;
background-repeat: no-repeat;
background-position: center top;
opacity: var(--glass-opacity);
z-index: 3;
}
}
@import 'widgets/fader';
@import 'widgets/knob';
@import 'widgets/matrices';
@import 'widgets/patchbay';
@import 'widgets/pads';
@import 'widgets/plots';
@import 'widgets/toggle';
@import 'widgets/push';
@import 'widgets/switch';
@import 'widgets/menu';
@import 'widgets/panel';
@import 'widgets/inputs';
@import 'widgets/maths';

View file

@ -0,0 +1,238 @@
.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;
&.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

@ -0,0 +1,206 @@
.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

@ -0,0 +1,265 @@
.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.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,27 +1,32 @@
.widget {
height:auto;
overflow: hidden;
position:relative;
vertical-align:top;
box-shadow: 1rem 0 0 0 var(--color-border),
0 1rem 0 0 var(--color-border),
1rem 1rem 0 0 var(--color-border),
0 0 0 1rem var(--color-light) inset;
border-left:1rem solid var(--color-border);
border-top:1rem solid var(--color-border);
-webkit-tap-highlight-color:transparent;
display: inline-flex;
flex-direction: column;
--default-bg: var(--color-fg);
background: var(--default-bg);
max-width: 100%;
max-height: 100%;
text-transform: uppercase;
width: 100rem;
height: 100rem;
contain: style size layout;
-webkit-tap-highlight-color:transparent;
--widget-padding: 1rem;
--color-stroke:var(--color-widget);
--color-fill:var(--color-widget);
--alpha-stroke: 0.5;
--alpha-fill-off: 0.0;
--alpha-fill-on: 0.25;
--alpha-fill: var(--alpha-fill-off);
color: var(--color-text);
--color-glass-1: var(--color-custom);
--color-glass-2: var(--color-track);
&.absolute-position {
position: absolute;
@ -29,23 +34,12 @@
}
&.nolabel {
> .label {
> label {
display:none;
}
}
> .label ~ div {
border-top-left-radius:0;
border-top-right-radius:0;
border-bottom-right-radius:inherit;
border-bottom-left-radius:inherit;
min-height: 0;
}
&.nolabel > .label ~ div {
border-radius: inherit;
}
.label {
label {
text-overflow:ellipsis;
overflow:hidden;
text-align:center;
@ -57,51 +51,28 @@
display: flex;
justify-content: center;
white-space: pre;
// justify-content: space-around;
align-items: center;
&.accent {
color:var(--color-accent);
}
order: -1;
}
}
.glass-effect {
position: relative;
&:after {
content:"";
position: absolute;
pointer-events: none;
top:0;
left:0;
right:0;
bottom:0;
background: radial-gradient(ellipse farthest-side at center top, var(--color-glass-1), var(--color-glass-2));
background-size: 150% 150%;
background-repeat: no-repeat;
background-position: center top;
opacity: var(--glass-opacity);
z-index: 3;
canvas {
flex: 1;
min-height: 0;
}
> inner {
overflow: hidden;
position: relative;
flex: 1;
}
}
@import 'widgets/fader';
@import 'widgets/knob';
@import 'widgets/matrices';
@import 'widgets/patchbay';
@import 'widgets/pads';
@import 'widgets/plots';
@import 'widgets/toggle';
@import 'widgets/push';
@import 'widgets/switch';
@import 'widgets/menu';
@import 'widgets/panel';
@import 'widgets/containers';
@import 'widgets/sliders';
@import 'widgets/inputs';
@import 'widgets/maths';
@import 'widgets/buttons';
@import 'widgets/pads';
@import 'widgets/plots';
@import 'widgets/indicators';

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

@ -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,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,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

@ -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;
}