big clean, multi point touchstate, auto update check toggle, rm switchers, add state fn to scripts
This commit is contained in:
parent
d776922b24
commit
f797988c64
51 changed files with 735 additions and 3591 deletions
|
|
@ -1,4 +1,4 @@
|
|||
.toggle-container, .push-container {
|
||||
.button-container {
|
||||
|
||||
--alpha-fill-off: 0;
|
||||
--alpha-fill-on: .75;
|
||||
|
|
@ -140,6 +140,13 @@
|
|||
align-items: center;
|
||||
position: relative;
|
||||
@include pseudo-stroke();
|
||||
|
||||
&.right .text {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
&.left .text{
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
.text {
|
||||
|
|
@ -148,6 +155,8 @@
|
|||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding-left: var(--widget-padding);
|
||||
padding-right: var(--widget-padding);
|
||||
}
|
||||
.icon {
|
||||
order: 1;
|
||||
|
|
@ -373,6 +382,13 @@
|
|||
align-items: stretch;
|
||||
position: relative;
|
||||
@include pseudo-stroke();
|
||||
|
||||
&.right .text {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
&.left .text{
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
.text {
|
||||
|
|
@ -381,6 +397,8 @@
|
|||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding-left: var(--widget-padding);
|
||||
padding-right: var(--widget-padding);
|
||||
}
|
||||
.icon {
|
||||
order: 1;
|
||||
|
|
@ -419,3 +437,124 @@
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.input-container {
|
||||
|
||||
--alpha-fill-off: 0.05;
|
||||
|
||||
inner {
|
||||
position: relative;
|
||||
@include pseudo-stroke();
|
||||
@include pseudo-fill(0.05);
|
||||
|
||||
display: flex;
|
||||
flex: 1;
|
||||
padding: var(--widget-padding);
|
||||
text-align: center;
|
||||
&.right {
|
||||
text-align: right;
|
||||
}
|
||||
&.left {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
padding-left: calc(var(--widget-padding) * 2);
|
||||
padding-right: calc(var(--widget-padding) * 2);
|
||||
|
||||
}
|
||||
|
||||
input + canvas {
|
||||
display: none;
|
||||
width: 0;
|
||||
}
|
||||
|
||||
canvas {
|
||||
flex:1;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
input {
|
||||
display: block;
|
||||
flex:1;
|
||||
max-width: 100%;
|
||||
font: inherit;
|
||||
border:0;
|
||||
padding:0;
|
||||
background: transparent;
|
||||
border-radius: inherit;
|
||||
-webkit-appearance:none;
|
||||
appearance: none;
|
||||
text-align:inherit;
|
||||
line-height: 50rem;
|
||||
vertical-align: top;
|
||||
letter-spacing: 1rem;
|
||||
-webkit-user-select: text;
|
||||
user-select: text;
|
||||
|
||||
color:var(--color-fill);
|
||||
caret-color: var(--color-fill);
|
||||
|
||||
|
||||
|
||||
&:focus::selection {
|
||||
background: var(--color-fill);
|
||||
color: var(--color-background);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.file-container {
|
||||
|
||||
--alpha-fill: 0.75;
|
||||
--widget-padding: 1rem;
|
||||
|
||||
inner {
|
||||
flex:1;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: stretch;
|
||||
position: relative;
|
||||
@include pseudo-stroke();
|
||||
|
||||
&.right .text {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
&.left .text{
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
.text {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding-left: var(--widget-padding);
|
||||
padding-right: var(--widget-padding);
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.icon {
|
||||
order: 1;
|
||||
display: block;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 30rem;
|
||||
font-family: FontAwesome;
|
||||
color: var(--color-stroke);
|
||||
font-size: 120%;
|
||||
border-left: 1rem solid var(--color-stroke);
|
||||
opacity: var(--alpha-stroke);
|
||||
&:after {
|
||||
content:"\f07c";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -473,3 +473,129 @@
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
.patchbaynode-container {
|
||||
|
||||
justify-content: center;
|
||||
|
||||
|
||||
label {
|
||||
flex: 1;
|
||||
pointer-events: none;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
}
|
||||
.patchbay-container {
|
||||
width: 200rem;
|
||||
height: 200rem;
|
||||
|
||||
|
||||
--alpha-fill-on: .75;
|
||||
--alpha-fill-off: 0.25;
|
||||
|
||||
inner {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
||||
@include pseudo-stroke();
|
||||
padding: var(--widget-padding);
|
||||
|
||||
canvas {
|
||||
flex: 1;
|
||||
width: 0;
|
||||
}
|
||||
.nodes {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items:stretch;
|
||||
margin-bottom: 1rem;
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
.inputs, .outputs {
|
||||
position: relative;
|
||||
@include pseudo-stroke();
|
||||
top: 1rem;
|
||||
}
|
||||
|
||||
.inputs:before {
|
||||
border-width: 0 1rem 0 0;
|
||||
}
|
||||
.outputs:before {
|
||||
border-width: 0 0 0 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
.keyboard-container {
|
||||
|
||||
--widget-padding: 0rem;
|
||||
--alpha-fill-off: 0;
|
||||
--alpha-fill-on: .75;
|
||||
|
||||
--color-key-on: var(--color-fill);
|
||||
--alpha-key-off: var(--alpha-fill-off);
|
||||
--alpha-key-on: var(--alpha-fill-on);
|
||||
--color-white-key: #ccc;
|
||||
--color-black-key: #1A1A1A;
|
||||
|
||||
--widget-keypad: var(--widget-padding);
|
||||
|
||||
> inner {
|
||||
|
||||
padding: var(--widget-padding);
|
||||
flex: 1;
|
||||
@include pseudo-stroke($z: 2);
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.key {
|
||||
|
||||
--alpha-fill-off: var(--alpha-key-off);
|
||||
--alpha-fill-on: var(--alpha-key-on);
|
||||
inner {
|
||||
margin: 1rem 0.5rem!important;
|
||||
--widget-padding: -1rem;
|
||||
&:before {
|
||||
content: none;
|
||||
}
|
||||
&:after {
|
||||
background: var(--color-key-on);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.white {
|
||||
flex: 1;
|
||||
width: auto;
|
||||
min-width: auto;
|
||||
height: auto;
|
||||
inner {
|
||||
background: var(--color-white-key);
|
||||
}
|
||||
}
|
||||
|
||||
.black {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
|
||||
left: calc((100% - var(--widget-keypad) * 2) / var(--nkeys) * var(--rank));
|
||||
width: calc(100% / var(--nkeys) * 0.6);
|
||||
margin-left: calc(100% / var(--nkeys) * -0.3 + var(--widget-keypad));
|
||||
height: calc((100% - var(--widget-keypad) * 2) * 0.65);
|
||||
|
||||
inner {
|
||||
margin-left: 0!important;
|
||||
margin-right: 0!important;
|
||||
background: var(--color-black-key);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,63 +0,0 @@
|
|||
|
||||
.input-container {
|
||||
|
||||
--alpha-fill-off: 0.05;
|
||||
|
||||
inner {
|
||||
position: relative;
|
||||
@include pseudo-stroke();
|
||||
@include pseudo-fill(0.05);
|
||||
|
||||
display: flex;
|
||||
flex: 1;
|
||||
padding: var(--widget-padding);
|
||||
text-align: center;
|
||||
&.right {
|
||||
text-align: right;
|
||||
}
|
||||
&.left {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
input + canvas {
|
||||
display: none;
|
||||
width: 0;
|
||||
}
|
||||
|
||||
canvas {
|
||||
flex:1;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
input {
|
||||
display: block;
|
||||
flex:1;
|
||||
max-width: 100%;
|
||||
font: inherit;
|
||||
border:0;
|
||||
padding:0;
|
||||
background: transparent;
|
||||
border-radius: inherit;
|
||||
-webkit-appearance:none;
|
||||
appearance: none;
|
||||
text-align:inherit;
|
||||
line-height: 50rem;
|
||||
vertical-align: top;
|
||||
letter-spacing: 1rem;
|
||||
-webkit-user-select: text;
|
||||
user-select: text;
|
||||
|
||||
color:var(--color-fill);
|
||||
caret-color: var(--color-fill);
|
||||
|
||||
|
||||
|
||||
&:focus::selection {
|
||||
background: var(--color-fill);
|
||||
color: var(--color-background);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,68 +0,0 @@
|
|||
.keyboard-container {
|
||||
|
||||
--widget-padding: 0rem;
|
||||
--alpha-fill-off: 0;
|
||||
--alpha-fill-on: .75;
|
||||
|
||||
--color-key-on: var(--color-fill);
|
||||
--alpha-key-off: var(--alpha-fill-off);
|
||||
--alpha-key-on: var(--alpha-fill-on);
|
||||
--color-white-key: #ccc;
|
||||
--color-black-key: #1A1A1A;
|
||||
|
||||
--widget-keypad: var(--widget-padding);
|
||||
|
||||
> inner {
|
||||
|
||||
padding: var(--widget-padding);
|
||||
flex: 1;
|
||||
@include pseudo-stroke($z: 2);
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.key {
|
||||
|
||||
--alpha-fill-off: var(--alpha-key-off);
|
||||
--alpha-fill-on: var(--alpha-key-on);
|
||||
inner {
|
||||
margin: 1rem 0.5rem!important;
|
||||
--widget-padding: -1rem;
|
||||
&:before {
|
||||
content: none;
|
||||
}
|
||||
&:after {
|
||||
background: var(--color-key-on);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.white {
|
||||
flex: 1;
|
||||
width: auto;
|
||||
min-width: auto;
|
||||
height: auto;
|
||||
inner {
|
||||
background: var(--color-white-key);
|
||||
}
|
||||
}
|
||||
|
||||
.black {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
|
||||
left: calc((100% - var(--widget-keypad) * 2) / var(--nkeys) * var(--rank));
|
||||
width: calc(100% / var(--nkeys) * 0.6);
|
||||
margin-left: calc(100% / var(--nkeys) * -0.3 + var(--widget-keypad));
|
||||
height: calc((100% - var(--widget-keypad) * 2) * 0.65);
|
||||
|
||||
inner {
|
||||
margin-left: 0!important;
|
||||
margin-right: 0!important;
|
||||
background: var(--color-black-key);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,54 +0,0 @@
|
|||
.patchbaynode-container {
|
||||
|
||||
justify-content: center;
|
||||
|
||||
|
||||
label {
|
||||
flex: 1;
|
||||
pointer-events: none;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
}
|
||||
.patchbay-container {
|
||||
width: 200rem;
|
||||
height: 200rem;
|
||||
|
||||
|
||||
--alpha-fill-on: .75;
|
||||
--alpha-fill-off: 0.25;
|
||||
|
||||
inner {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
||||
@include pseudo-stroke();
|
||||
padding: var(--widget-padding);
|
||||
|
||||
canvas {
|
||||
flex: 1;
|
||||
width: 0;
|
||||
}
|
||||
.nodes {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items:stretch;
|
||||
margin-bottom: 1rem;
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
.inputs, .outputs {
|
||||
position: relative;
|
||||
@include pseudo-stroke();
|
||||
top: 1rem;
|
||||
}
|
||||
|
||||
.inputs:before {
|
||||
border-width: 0 1rem 0 0;
|
||||
}
|
||||
.outputs:before {
|
||||
border-width: 0 0 0 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue