structure: take src out of packaged folder
This commit is contained in:
parent
139eab5fa4
commit
d1cb4194fa
85 changed files with 7 additions and 7 deletions
266
src/browser/scss/_editor.scss
Normal file
266
src/browser/scss/_editor.scss
Normal file
|
|
@ -0,0 +1,266 @@
|
|||
|
||||
.form {
|
||||
.input-wrapper {
|
||||
display: flex;
|
||||
margin-bottom:4rem;
|
||||
background:var(--color-bg);
|
||||
align-items: center;
|
||||
&:last-child {
|
||||
margin-bottom:0;
|
||||
}
|
||||
label {
|
||||
background: var(--color-fg);
|
||||
flex-shrink: 0;
|
||||
padding: 5rem;
|
||||
border:1rem solid var(--color-bg);
|
||||
}
|
||||
.input, input {
|
||||
background: var(--color-bg);
|
||||
width:100%;
|
||||
padding:5rem;
|
||||
}
|
||||
&.column {
|
||||
flex-direction: column;
|
||||
label {
|
||||
width:100%;
|
||||
padding:7rem;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
label {
|
||||
display: block;
|
||||
font-size: 10rem;
|
||||
background: var(--color-faded);
|
||||
}
|
||||
.info {
|
||||
color:var(--color-text-fade);
|
||||
margin-bottom:10rem;
|
||||
}
|
||||
input, .input {
|
||||
display:block;
|
||||
border:0;
|
||||
font:inherit;
|
||||
color:var(--color-text);
|
||||
width:100%;
|
||||
&:focus {
|
||||
border-color:var(--color-accent);
|
||||
}
|
||||
.btn {
|
||||
background:var(--color-raised);
|
||||
box-shadow: 0 0 0 1rem var(--color-bg);
|
||||
}
|
||||
}
|
||||
.checkbox {
|
||||
background:var(--color-raised);
|
||||
cursor: pointer;
|
||||
}
|
||||
.select-wrapper {
|
||||
position: relative;
|
||||
width:100%;
|
||||
&:after{
|
||||
content:"\f107";
|
||||
font-family: FontAwesome;
|
||||
position: absolute;
|
||||
padding:5rem;
|
||||
right:0;
|
||||
top:0;
|
||||
font-size: 20rem;
|
||||
}
|
||||
}
|
||||
select {
|
||||
-webkit-appearance:none;
|
||||
}
|
||||
.submit {
|
||||
margin-top:30rem;
|
||||
}
|
||||
.separator {
|
||||
line-height: 30rem;
|
||||
height: 30rem;
|
||||
margin-bottom: 5rem;
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
&:before, &:after {
|
||||
content:"";
|
||||
top:14rem;
|
||||
width: 100%;
|
||||
height: 1rem;
|
||||
background: var(--color-text-fade);
|
||||
}
|
||||
span {
|
||||
font-variant: small-caps;
|
||||
position: relative;
|
||||
display: block;
|
||||
width:100%;
|
||||
text-align:center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.widget.editing {
|
||||
z-index: 11!important;
|
||||
overflow: hidden;
|
||||
}
|
||||
.widget.editing:after, li.editing a:before, a.editing:before, .content.editing:before, #container.editing:before{
|
||||
content:"";
|
||||
z-index: 999;
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
border:1rem dashed var(--color-accent);
|
||||
pointer-events: none;
|
||||
}
|
||||
.widget.editing:after {
|
||||
// right:-1rem;
|
||||
// bottom:-1rem;
|
||||
}
|
||||
|
||||
.context-menu {
|
||||
position:fixed;
|
||||
z-index: 999999999;
|
||||
background: var(--color-raised);
|
||||
box-shadow: 0 0 4rem 0;
|
||||
color:var(--color-track);
|
||||
.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;
|
||||
}
|
||||
&:hover, &:focus {
|
||||
> .context-menu {
|
||||
pointer-events: auto;
|
||||
opacity: 1;
|
||||
}
|
||||
background:var(--color-accent);
|
||||
}
|
||||
&.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: 1000000;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: var(--color-accent);
|
||||
width:10rem;
|
||||
height:10rem;
|
||||
|
||||
&:after {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:-5rem;
|
||||
right:-5rem;
|
||||
left:-5rem;
|
||||
bottom:-5rem;
|
||||
}
|
||||
&.ui-resizable-se {
|
||||
content:"";
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
cursor: se-resize;
|
||||
}
|
||||
&.ui-resizable-e {
|
||||
top: 50%;
|
||||
margin-top:-5rem;
|
||||
right: 0;
|
||||
cursor: e-resize;
|
||||
}
|
||||
&.ui-resizable-s {
|
||||
bottom: 0;
|
||||
left: 50%;
|
||||
margin-left:-5rem;
|
||||
cursor: s-resize;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.ui-helper {
|
||||
min-width:30rem!important;
|
||||
min-height:30rem!important;
|
||||
z-index: 12!important;
|
||||
opacity: 1!important;
|
||||
&:before {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:1rem;
|
||||
bottom:1rem;
|
||||
border:1rem dashed var(--color-accent);
|
||||
}
|
||||
&:after {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:1rem;
|
||||
bottom:1rem;
|
||||
background: var(--color-accent);
|
||||
opacity: .25;
|
||||
}
|
||||
}
|
||||
|
||||
.ui-draggable-handle:not(.label) {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 100000;
|
||||
height:10rem;
|
||||
width: 10rem;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: var(--color-accent);
|
||||
&:after {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:-5rem;
|
||||
right:-5rem;
|
||||
left:-5rem;
|
||||
bottom:-5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.ui-draggable-handle {
|
||||
cursor: -webkit-grab;
|
||||
&:active {
|
||||
cursor:-webkit-grabbing;
|
||||
}
|
||||
}
|
||||
128
src/browser/scss/_layout.scss
Normal file
128
src/browser/scss/_layout.scss
Normal file
|
|
@ -0,0 +1,128 @@
|
|||
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;
|
||||
// transition:right .2s;
|
||||
&.sidepanel-open {
|
||||
right:var(--sidepanel-size);
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
height:100%;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
background:var(--color-fg);
|
||||
padding:2rem;
|
||||
}
|
||||
|
||||
.tab {
|
||||
position: absolute;
|
||||
overflow: auto;
|
||||
left:0;
|
||||
right:-1rem; // because widgets have a fake 1rem right-border
|
||||
top:0;
|
||||
bottom:0;
|
||||
background:var(--color-bg);
|
||||
transform: rotateZ(0);
|
||||
}
|
||||
.has-tabs {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
> .navigation {
|
||||
background:var(--color-bg);
|
||||
margin-right:1rem; // because widgets have a fake 1rem right-border
|
||||
}
|
||||
> .content {
|
||||
background:none;
|
||||
margin-right:1rem; // because widgets have a fake 1rem right-border
|
||||
}
|
||||
}
|
||||
|
||||
.navigation {
|
||||
height:var(--nav-height);
|
||||
margin-bottom: 2rem;
|
||||
flex-shrink:0;
|
||||
font-weight:bold;
|
||||
text-transform: uppercase;
|
||||
|
||||
&.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;
|
||||
cursor:pointer;
|
||||
height:100%;
|
||||
margin-right: 1rem;
|
||||
|
||||
|
||||
&:last-child {
|
||||
margin-right:0;
|
||||
}
|
||||
a {
|
||||
background: var(--color-fg);
|
||||
pointer-events: none;
|
||||
padding: 5rem;
|
||||
height:100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
overflow:hidden;
|
||||
text-align:center;
|
||||
position:relative;
|
||||
span {
|
||||
display:block;
|
||||
width:100%;
|
||||
-webkit-mask: linear-gradient(to left, rgba(0, 0, 0, 0), #000000 10rem) no-repeat;
|
||||
}
|
||||
}
|
||||
a:after {
|
||||
content:"";
|
||||
background:var(--color-accent);
|
||||
position: absolute;
|
||||
bottom:0;
|
||||
left:0;
|
||||
right:0;
|
||||
top:0;
|
||||
opacity: 0;
|
||||
transition: opacity .2s;
|
||||
z-index: -1;
|
||||
}
|
||||
&.on a, .sidepanel-open {
|
||||
position: relative;
|
||||
background: var(--color-raised);
|
||||
z-index: 0;
|
||||
&:after {
|
||||
opacity:0.3;
|
||||
}
|
||||
}
|
||||
}
|
||||
.parent + li a {
|
||||
padding-left: calc(5rem + 0.5 * var(--nav-height));
|
||||
}
|
||||
}
|
||||
}
|
||||
14
src/browser/scss/_reset.scss
Normal file
14
src/browser/scss/_reset.scss
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
* {
|
||||
margin:0;
|
||||
padding:0;
|
||||
border:0;
|
||||
box-sizing:border-box;
|
||||
text-decoration:none;
|
||||
outline:0;
|
||||
font:inherit;
|
||||
color:inherit;
|
||||
cursor: inherit;
|
||||
-webkit-tap-highlight-color:transparent;
|
||||
-webkit-user-select: none;
|
||||
}
|
||||
78
src/browser/scss/_scrollbars.scss
Normal file
78
src/browser/scss/_scrollbars.scss
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
|
||||
::-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($i) {
|
||||
background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="50px" width="50px"><text x="50%" y="50%" font-size="30" fill="rgba(255,255,255,0.5)" alignment-baseline="central" text-anchor="middle" font-family="fontawesome"> '+$i+' </text></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:2rem solid var(--color-bg);
|
||||
@include arrow()
|
||||
}
|
||||
|
||||
&:increment:end {
|
||||
border-left:2rem solid var(--color-bg);
|
||||
border-top:2rem solid var(--color-bg);
|
||||
@include arrow()
|
||||
}
|
||||
}
|
||||
&:horizontal {
|
||||
&:decrement:start {
|
||||
border-right:2rem solid var(--color-bg);
|
||||
border-top:2rem solid var(--color-bg);
|
||||
@include arrow()
|
||||
}
|
||||
|
||||
&:increment:end {
|
||||
border-left:2rem solid var(--color-bg);
|
||||
border-top:2rem solid var(--color-bg);
|
||||
@include arrow()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
149
src/browser/scss/_sidepanel.scss
Normal file
149
src/browser/scss/_sidepanel.scss
Normal file
|
|
@ -0,0 +1,149 @@
|
|||
|
||||
#sidepanel {
|
||||
position:absolute;
|
||||
z-index: 999999;
|
||||
width:var(--sidepanel-size);
|
||||
border: 8rem solid var(--color-fg);
|
||||
top:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
margin-right:calc(-1 * var(--sidepanel-size));
|
||||
background:var(--color-fg);
|
||||
transition:transform .25s, opacity .25s;
|
||||
transform: translate3d(0,0,0);
|
||||
opacity: 0;
|
||||
overflow-y: auto;
|
||||
overflow-x: visible;
|
||||
|
||||
&.sidepanel-open {
|
||||
transform: translate3d(calc(-1 * var(--sidepanel-size)),0,0);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
#options {
|
||||
position:absolute;
|
||||
left:0;top:0;
|
||||
right:0;bottom:0;
|
||||
list-style:none;
|
||||
|
||||
li {
|
||||
display:block;
|
||||
margin-bottom:8rem;
|
||||
position: relative;
|
||||
|
||||
&:last-child {
|
||||
margin: 0;
|
||||
}
|
||||
.btn + span {
|
||||
position: absolute;
|
||||
right:0rem;
|
||||
top:0rem;
|
||||
padding:8rem;
|
||||
color:var(--color-text-fade);
|
||||
&:hover {
|
||||
color:var(--color-text);
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
padding: 4rem;
|
||||
li {
|
||||
margin-bottom: 4rem;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.editor .form {
|
||||
margin-top: 10rem;
|
||||
}
|
||||
.help {
|
||||
margin-top:10rem;
|
||||
font-size: .75em;
|
||||
text-align: center;
|
||||
font-style: italic;
|
||||
}
|
||||
}
|
||||
&::-webkit-scrollbar-track-piece {
|
||||
background: var(--color-bg);
|
||||
&:vertical {
|
||||
border-left:8rem solid var(--color-fg);
|
||||
}
|
||||
}
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background:var(--color-raised);
|
||||
&:vertical {
|
||||
border-left:8rem solid var(--color-fg);
|
||||
}
|
||||
}
|
||||
&::-webkit-scrollbar-button {
|
||||
border-color: var(--color-fg);
|
||||
border-width:8rem;
|
||||
background-color: var(--color-raised);
|
||||
}
|
||||
}
|
||||
.actions {
|
||||
padding:1rem;
|
||||
background:var(--color-bg);
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
flex-wrap:wrap;
|
||||
.title {
|
||||
background: var(--color-faded);
|
||||
min-width: 100%;
|
||||
flex-grow: 2;
|
||||
padding: 10rem;
|
||||
position: relative;
|
||||
&:before {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
box-shadow: 0 0 0 1rem;
|
||||
color:var(--color-bg);
|
||||
}
|
||||
|
||||
}
|
||||
a {
|
||||
min-width:33%;
|
||||
flex-grow:4;
|
||||
padding:10rem;
|
||||
display: block;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
color:var(--color-text);
|
||||
overflow: visible;
|
||||
|
||||
&.on {
|
||||
z-index: 0;
|
||||
pointer-events: none;
|
||||
&:after {
|
||||
opacity:.3;
|
||||
}
|
||||
}
|
||||
&:before {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
box-shadow: 0 0 0 1rem;
|
||||
color:var(--color-bg);
|
||||
}
|
||||
&:after {
|
||||
content:"";
|
||||
background:var(--color-accent);
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
opacity: 0;
|
||||
transition: opacity .2s;
|
||||
z-index: -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
29
src/browser/scss/_vars.scss
Normal file
29
src/browser/scss/_vars.scss
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
:root {
|
||||
|
||||
--color-text:rgba(white,.8);
|
||||
--color-text-fade:rgba(white,0.5);
|
||||
|
||||
--color-bg:darken(#2b2f37,5%); // secondary
|
||||
--color-fg:lighten(#2b2f37,1%); // primary
|
||||
--color-raised:lighten(#2b2f37,5%); // raised
|
||||
--color-faded: darken(#2b2f37,1%); // faded
|
||||
|
||||
--color-track: lighten(#1a1d22,1%); // widgets unfilled value
|
||||
|
||||
--color-accent:#528bff;
|
||||
--color-custom:var(--color-accent);
|
||||
|
||||
|
||||
|
||||
--nav-height:40rem;
|
||||
--sidepanel-size:300rem;
|
||||
--scrollbar-size:30rem;
|
||||
|
||||
--pixel-scale:1;
|
||||
|
||||
/* Unset variables by default
|
||||
|
||||
--display-input:none; // Hides widgets' numeric inputs
|
||||
|
||||
*/
|
||||
}
|
||||
109
src/browser/scss/_widgets.scss
Normal file
109
src/browser/scss/_widgets.scss
Normal file
|
|
@ -0,0 +1,109 @@
|
|||
|
||||
.widget {
|
||||
display:inline-block;
|
||||
height:auto;
|
||||
overflow: hidden;
|
||||
position:relative;
|
||||
vertical-align:top;
|
||||
box-shadow: -0.5rem -0.5rem 0 0.5rem;
|
||||
color:var(--color-bg);
|
||||
border-right:1rem solid var(--color-bg);
|
||||
border-bottom:1rem solid var(--color-bg);
|
||||
background:var(--color-fg);
|
||||
-webkit-tap-highlight-color:transparent;
|
||||
min-height:30rem;
|
||||
min-width:30rem;
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
|
||||
> * {
|
||||
color:var(--color-text)
|
||||
}
|
||||
|
||||
&.absolute-position {
|
||||
position: absolute;
|
||||
// z-index: 10;
|
||||
}
|
||||
|
||||
&.nolabel {
|
||||
> .label {
|
||||
display:none;
|
||||
}
|
||||
}
|
||||
|
||||
.label {
|
||||
padding:10rem 10rem;
|
||||
text-overflow:ellipsis;
|
||||
overflow:hidden;
|
||||
text-align:center;
|
||||
height:35rem;
|
||||
max-height:35rem;
|
||||
width: 100%;
|
||||
background: var(--color-raised);
|
||||
border-bottom:1rem solid var(--color-bg);
|
||||
flex-shrink: 0;
|
||||
|
||||
&.accent {
|
||||
color:var(--color-accent);
|
||||
}
|
||||
}
|
||||
.input {
|
||||
width:100%;
|
||||
height:24rem;
|
||||
border:0;
|
||||
background:transparent;
|
||||
color:var(--color-text-fade);
|
||||
display:block;
|
||||
padding:4rem 5rem;
|
||||
position: relative;
|
||||
display: var(--display-input);
|
||||
|
||||
input {
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
padding:4rem 5rem;
|
||||
width: 100%;
|
||||
font: inherit;
|
||||
text-align:center;
|
||||
border:0;
|
||||
background: transparent;
|
||||
color:var(--color-accent);
|
||||
}
|
||||
canvas {
|
||||
width:100%;
|
||||
height:100%;
|
||||
opacity: 0.8;
|
||||
}
|
||||
input + canvas {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
color:var(--color-accent);
|
||||
|
||||
}
|
||||
&[disabled] {
|
||||
color:var(--color-text-fade);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@import 'widgets/fader';
|
||||
@import 'widgets/knob';
|
||||
|
||||
@import 'widgets/matrices';
|
||||
@import 'widgets/pads';
|
||||
|
||||
@import 'widgets/plots';
|
||||
|
||||
|
||||
@import 'widgets/toggle';
|
||||
@import 'widgets/push';
|
||||
@import 'widgets/switch';
|
||||
|
||||
@import 'widgets/strip';
|
||||
@import 'widgets/panel';
|
||||
252
src/browser/scss/style.scss
Normal file
252
src/browser/scss/style.scss
Normal file
|
|
@ -0,0 +1,252 @@
|
|||
@import 'vars';
|
||||
@import 'reset';
|
||||
|
||||
|
||||
@import 'scrollbars';
|
||||
|
||||
@import 'layout';
|
||||
|
||||
@import 'editor';
|
||||
@import 'sidepanel';
|
||||
@import 'widgets';
|
||||
|
||||
|
||||
input:focus::selection{
|
||||
background:var(--color-accent);
|
||||
color:var(--color-text);
|
||||
}
|
||||
input {
|
||||
cursor: text;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
html, body {
|
||||
height:100%;
|
||||
overflow:hidden;
|
||||
position:relative;
|
||||
|
||||
}
|
||||
|
||||
html{
|
||||
// global pixel scaling
|
||||
font-size: calc(var(--pixel-scale) * 1px);
|
||||
|
||||
// prevent android's auto font-resize
|
||||
max-height: 999999px;
|
||||
}
|
||||
|
||||
body {
|
||||
font-size:13rem;
|
||||
line-height:16rem;
|
||||
font-family:Droid Sans;
|
||||
color:var(--color-text);
|
||||
white-space:nowrap;
|
||||
opacity:1;
|
||||
cursor: default;
|
||||
}
|
||||
i {
|
||||
font-size: 14rem!important;
|
||||
}
|
||||
|
||||
|
||||
.btn {
|
||||
background: var(--color-raised);
|
||||
display: block;
|
||||
padding:15rem;
|
||||
position: relative;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
&.small {
|
||||
padding:8rem;
|
||||
padding-right: 15rem;
|
||||
}
|
||||
&.warning {
|
||||
background:firebrick;
|
||||
}
|
||||
&.disabled {
|
||||
pointer-events: none;
|
||||
color:var(--color-text-fade);
|
||||
}
|
||||
&.align-center {
|
||||
text-align: center
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#lobby {
|
||||
background: var(--color-bg);
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right: 0;
|
||||
bottom:0;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow-y: auto;
|
||||
padding:20rem;
|
||||
.main {
|
||||
width:600rem;
|
||||
max-width: 100%;
|
||||
max-height:100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.list {
|
||||
flex:1;
|
||||
overflow: auto;
|
||||
background: var(--color-fg);
|
||||
border-top:2rem solid var(--color-bg);
|
||||
|
||||
}
|
||||
.header {
|
||||
padding:20rem;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
flex-grow: 0;
|
||||
background-color: var(--color-faded);
|
||||
color:var(--color-accent);
|
||||
font-size:16rem;
|
||||
line-height: 24rem;
|
||||
}
|
||||
.footer {
|
||||
background: var(--color-raised);
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
flex-grow: 0;
|
||||
background: var(--color-faded);
|
||||
border-top:2rem solid var(--color-bg);
|
||||
}
|
||||
a {
|
||||
display: block;
|
||||
padding-right:35rem;
|
||||
overflow: hidden;
|
||||
padding-top:15rem;
|
||||
position: relative;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
background: none;
|
||||
border-bottom:1rem solid var(--color-bg);
|
||||
&:hover {
|
||||
background:var(--color-raised)
|
||||
}
|
||||
&:last-child {
|
||||
border-bottom:0;
|
||||
}
|
||||
span {
|
||||
position: absolute;
|
||||
right:0rem;
|
||||
top:0rem;
|
||||
padding:15rem;
|
||||
color:var(--color-text-fade);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#loading {
|
||||
position: absolute;
|
||||
top:50%;
|
||||
left:50%;
|
||||
margin-top:-15rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.spinner {
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
height:30rem;
|
||||
width:30rem;
|
||||
border-radius: 50%;
|
||||
border:2rem solid var(--color-track);
|
||||
border-top-color:var(--color-accent);
|
||||
animation: spin .5s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% {transform: rotate(0deg);}
|
||||
100% {transform: rotate(360deg);}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.popup {
|
||||
position: fixed;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
padding:10%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
z-index:1000000;
|
||||
&:before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
background:var(--color-bg);
|
||||
opacity: .5;
|
||||
}
|
||||
.popup-title {
|
||||
position: relative;
|
||||
padding:15rem;
|
||||
background:var(--color-raised);
|
||||
.closer {
|
||||
position:absolute;
|
||||
right:0rem;
|
||||
top:0;
|
||||
padding:15rem;
|
||||
color:var(--color-text-fade);
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
.popup-wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
background:var(--color-fg);
|
||||
width:auto;
|
||||
max-width:600rem;
|
||||
margin:0 auto;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border:1rem solid var(--color-track);
|
||||
.popup-content {
|
||||
height:100%;
|
||||
width:100%;
|
||||
padding:10rem;
|
||||
overflow-y:auto;
|
||||
white-space: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
204
src/browser/scss/widgets/_fader.scss
Normal file
204
src/browser/scss/widgets/_fader.scss
Normal file
|
|
@ -0,0 +1,204 @@
|
|||
.fader-container {
|
||||
--color-pips: var(--color-text-fade);
|
||||
--color-gauge: var(--color-custom);
|
||||
--color-knob: var(--color-custom);
|
||||
height:100%;
|
||||
width:100rem;
|
||||
}
|
||||
|
||||
.fader {
|
||||
height:100%;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
|
||||
.wrapper {
|
||||
overflow: hidden;
|
||||
flex:1;
|
||||
display: flex;
|
||||
max-height: 100%;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
|
||||
canvas {
|
||||
flex:1;
|
||||
max-height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.meter-container {
|
||||
pointer-events: none;
|
||||
|
||||
position: absolute;
|
||||
top:20rem;
|
||||
bottom:19rem;
|
||||
left:50%;
|
||||
height: auto;
|
||||
width:3rem;
|
||||
min-width: 3rem;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
&.has-pips {
|
||||
|
||||
.wrapper canvas {
|
||||
padding-right: 28rem;
|
||||
}
|
||||
|
||||
.pips {
|
||||
pointer-events: none;
|
||||
|
||||
position: absolute;
|
||||
top:20rem;
|
||||
bottom:20rem;
|
||||
left:50%;
|
||||
z-index: 0;
|
||||
width: 4rem;
|
||||
margin-left: 7rem;
|
||||
background: linear-gradient(to bottom, transparent 0, transparent 2px, var(--color-pips) 2px, var(--color-pips) 3px, transparent 3px, transparent 5px);
|
||||
background-size: 100% 5px;
|
||||
background-repeat: repeat-y;
|
||||
|
||||
.pip {
|
||||
height:1px;
|
||||
background: var(--color-pips);
|
||||
color:var(--color-fg);
|
||||
position: absolute;
|
||||
width:8rem;
|
||||
left:0;
|
||||
&:before {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:-4px;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:-4px;
|
||||
background: var(--color-fg);
|
||||
z-index: -1;
|
||||
}
|
||||
span {
|
||||
position: absolute;
|
||||
width:30rem;
|
||||
display: block;
|
||||
text-align: center;
|
||||
font-size:10rem;
|
||||
line-height: 12rem;
|
||||
left:3rem;
|
||||
top:-5.5rem;
|
||||
color:var(--color-pips);
|
||||
}
|
||||
}
|
||||
}
|
||||
&.horizontal {
|
||||
.wrapper canvas {
|
||||
padding-right:0;
|
||||
padding-bottom: 20rem;
|
||||
}
|
||||
.wrapper .meter-container {
|
||||
left:20rem;
|
||||
right:20rem;
|
||||
height: 3rem;
|
||||
min-height: 3rem;
|
||||
width: auto;
|
||||
top:50%;
|
||||
margin-top: 3rem;
|
||||
}
|
||||
|
||||
.pips {
|
||||
top:50%;
|
||||
left:20rem;
|
||||
right:20rem;
|
||||
font-size: 0;
|
||||
height:4rem;
|
||||
width:auto;
|
||||
margin:0;
|
||||
margin-top: 10rem;
|
||||
background: linear-gradient(to right, transparent 0, transparent 2px, var(--color-pips) 2px, var(--color-pips) 3px, transparent 3px, transparent 5px);
|
||||
background-size: 5px 100%;
|
||||
background-repeat: repeat-x;
|
||||
.pip {
|
||||
width:1px;
|
||||
height:6rem;
|
||||
margin: 0;
|
||||
&:before {
|
||||
top:0;
|
||||
bottom:0;
|
||||
left:-4px;
|
||||
right:-4px;
|
||||
}
|
||||
span {
|
||||
top:15rem;
|
||||
left:-15rem!important;
|
||||
right:auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.align-right {
|
||||
.wrapper canvas {
|
||||
padding-right: 0;
|
||||
padding-left: 28rem;
|
||||
}
|
||||
.wrapper .meter-container {
|
||||
left: auto;
|
||||
right:50%;
|
||||
margin-left: 0;
|
||||
}
|
||||
.pips {
|
||||
margin-left: 0;
|
||||
margin-right: 7rem;
|
||||
left:auto;
|
||||
right:50%;
|
||||
.pip {
|
||||
right:0;
|
||||
left:auto;
|
||||
span {
|
||||
right:3rem;
|
||||
left:auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&.compact {
|
||||
.wrapper canvas {
|
||||
background: var(--color-faded)
|
||||
}
|
||||
.input {
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
top:50%;
|
||||
transform: rotate(-90deg);
|
||||
pointer-events: none;
|
||||
width: 100rem;
|
||||
margin-left: -50rem;
|
||||
left:50%;
|
||||
z-index: 3;
|
||||
margin-top: -12rem;
|
||||
}
|
||||
.meter-container {
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: auto;
|
||||
right:0;
|
||||
}
|
||||
&.horizontal {
|
||||
.meter-container {
|
||||
top: auto;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right:0;
|
||||
height: 3rem;
|
||||
min-height: 3rem;
|
||||
width: auto;
|
||||
}
|
||||
.input {
|
||||
transform: none;
|
||||
top:50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
56
src/browser/scss/widgets/_knob.scss
Normal file
56
src/browser/scss/widgets/_knob.scss
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
.knob-container {
|
||||
--color-pips: var(--color-text-fade);
|
||||
--color-gauge: var(--color-custom);
|
||||
--color-knob: var(--color-custom);
|
||||
|
||||
width: 100rem;
|
||||
height: 120rem;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.knob {
|
||||
height:100%;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
|
||||
.wrapper {
|
||||
overflow: hidden;
|
||||
flex:1;
|
||||
display: flex;
|
||||
max-height: 100%;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
|
||||
canvas {
|
||||
flex:1;
|
||||
max-height: 100%;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
&.compact {
|
||||
.input {
|
||||
position: absolute;
|
||||
top:calc(50% - 12rem);
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
.pips {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
pointer-events: none;
|
||||
div {
|
||||
padding: 0 8%;
|
||||
font-size: 11rem;
|
||||
color: var(--color-text-fade);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
src/browser/scss/widgets/_matrices.scss
Normal file
44
src/browser/scss/widgets/_matrices.scss
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
/* Multiple widgets (push|toggle|fader) matrix */
|
||||
.multitoggle-container, .multipush-container, .multifader-container {
|
||||
height:200rem;
|
||||
width:200rem;
|
||||
&.nolabel .matrix {
|
||||
top:0;
|
||||
}
|
||||
}
|
||||
.matrix {
|
||||
flex:1;
|
||||
overflow: auto;
|
||||
background: var(--color-bg);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: row;
|
||||
margin-right:-1rem;
|
||||
margin-bottom: -1rem;
|
||||
|
||||
> .widget {
|
||||
min-height: 0;
|
||||
min-width: 0;
|
||||
margin:0!important;
|
||||
.label {
|
||||
background:none;
|
||||
border:0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.multifader-container {
|
||||
.matrix {
|
||||
padding:0!important;
|
||||
align-items:stretch;
|
||||
}
|
||||
.widget {
|
||||
height: auto;
|
||||
}
|
||||
.fader-wrapper {
|
||||
padding:10rem 0 20rem!important;
|
||||
.fader {
|
||||
left:0!important;
|
||||
}
|
||||
}
|
||||
}
|
||||
172
src/browser/scss/widgets/_pads.scss
Normal file
172
src/browser/scss/widgets/_pads.scss
Normal file
|
|
@ -0,0 +1,172 @@
|
|||
.xy-container, .rgb-container {
|
||||
width:200rem;
|
||||
height:250rem;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
.label {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
.xy-wrapper {
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.value {
|
||||
width:100%;
|
||||
display:var(--display-input);
|
||||
}
|
||||
.input {
|
||||
width:50%;
|
||||
float:left;
|
||||
height: 24rem;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
.xy {
|
||||
position:relative;
|
||||
width:auto;
|
||||
height:100%;
|
||||
overflow: hidden;
|
||||
cursor: -webkit-grab;
|
||||
background:var(--color-faded);
|
||||
&:active {
|
||||
cursor: -webkit-grabbing;
|
||||
}
|
||||
.handle {
|
||||
position:absolute;
|
||||
bottom:0;
|
||||
left:0;
|
||||
z-index:2;
|
||||
pointer-events: none;
|
||||
backface-visibility: hidden;
|
||||
transform-origin: center;
|
||||
transform:translate3d(0,0,0);
|
||||
|
||||
&:before {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:-4rem;
|
||||
right:-4rem;
|
||||
height:8rem;
|
||||
width:8rem;
|
||||
background:var(--color-custom);
|
||||
border:none!important;
|
||||
border-radius: 100%!important;
|
||||
}
|
||||
&:after {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:-10rem;
|
||||
right:-10rem;
|
||||
height:20rem;
|
||||
width:20rem;
|
||||
border:none!important;
|
||||
border-radius: 100%!important;
|
||||
background:var(--color-custom);
|
||||
opacity: .2; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.rgb-wrapper {
|
||||
.input, input {
|
||||
width:33.33%;
|
||||
}
|
||||
}
|
||||
|
||||
.rgb {
|
||||
.bg {
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
background-color: red;
|
||||
opacity: .75;
|
||||
pointer-events: none;
|
||||
&:before, &:after {
|
||||
content:"";
|
||||
position: absolute;
|
||||
left:0;
|
||||
top:0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
&:before {
|
||||
background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
|
||||
}
|
||||
&:after {
|
||||
background:linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%);
|
||||
}
|
||||
}
|
||||
.handle {
|
||||
&:before {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:-4rem;
|
||||
right:-4rem;
|
||||
height:8rem;
|
||||
width:8rem;
|
||||
background:var(--color-text);
|
||||
border:none!important;
|
||||
border-radius: 100%!important;
|
||||
}
|
||||
&:after {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:-10rem;
|
||||
right:-10rem;
|
||||
height:20rem;
|
||||
width:20rem;
|
||||
border:none!important;
|
||||
border-radius: 100%!important;
|
||||
background:var(--color-text);
|
||||
}
|
||||
}
|
||||
}
|
||||
.hue {
|
||||
width:auto;
|
||||
min-height:30rem;
|
||||
overflow: hidden;
|
||||
cursor: -webkit-grab;
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
.bg {
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
opacity: 0.5;
|
||||
background:transparent linear-gradient(to left, #F00, #FF0080, #F0F, #8000FF, #00F, #0080FF, #0FF, #00FF80, #0F0, #80FF00, #FF0, #FF8000, #F00) repeat scroll 0% 0%;
|
||||
pointer-events: none;
|
||||
}
|
||||
&:active {
|
||||
cursor: -webkit-grabbing;
|
||||
}
|
||||
.handle {
|
||||
position:absolute;
|
||||
z-index:2;
|
||||
left:0;
|
||||
top:50%;
|
||||
pointer-events: none;
|
||||
transform: translate3d(0,0,0);
|
||||
&:before {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:-4rem;
|
||||
right:-4rem;
|
||||
height:8rem;
|
||||
width:8rem;
|
||||
border:none!important;
|
||||
border-radius: 100%!important;
|
||||
box-shadow: none;
|
||||
background:var(--color-text);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
64
src/browser/scss/widgets/_panel.scss
Normal file
64
src/browser/scss/widgets/_panel.scss
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
.panel-container {
|
||||
width: 200rem;
|
||||
height: 200rem;
|
||||
border:0;
|
||||
|
||||
background: var(--color-faded);
|
||||
|
||||
&:before {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:0;
|
||||
bottom:0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
border-bottom: 1rem solid var(--color-bg);
|
||||
border-right: 1rem solid var(--color-bg);
|
||||
pointer-events: none;
|
||||
z-index: 2;
|
||||
|
||||
}
|
||||
|
||||
|
||||
&.nolabel .panel {
|
||||
top:0;
|
||||
}
|
||||
|
||||
.panel {
|
||||
overflow: auto;
|
||||
position: absolute;
|
||||
top:35rem;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
|
||||
&.has-tabs {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: var(--color-bg);
|
||||
}
|
||||
|
||||
&.noscroll {
|
||||
overflow: hidden;
|
||||
> .widget {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
.navigation {
|
||||
border-top: 0;
|
||||
background: transparent;
|
||||
&:after {
|
||||
background: var(--color-bg);
|
||||
}
|
||||
a.on {
|
||||
border-color: var(--color-bg);
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
122
src/browser/scss/widgets/_plots.scss
Normal file
122
src/browser/scss/widgets/_plots.scss
Normal file
|
|
@ -0,0 +1,122 @@
|
|||
.led-container {
|
||||
width:100rem;
|
||||
flex-shrink: 0;
|
||||
|
||||
.led {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
padding:10rem 0;
|
||||
overflow: hidden;
|
||||
|
||||
div {
|
||||
border-radius: 100%;
|
||||
width:calc(100% - 20rem);
|
||||
padding-bottom:calc(100% - 20rem);
|
||||
margin: 0 auto;
|
||||
background:var(--color-track);
|
||||
position: relative;
|
||||
span {
|
||||
position: absolute;
|
||||
top:0;left:0;right:0;bottom:0;
|
||||
border-radius: 100%;
|
||||
display:block;
|
||||
background-color:var(--color-custom);
|
||||
&:after {
|
||||
content:"";
|
||||
border-radius:100%;
|
||||
position: absolute;
|
||||
top:-1rem;left:-1rem;right:-1rem;bottom:-1rem;
|
||||
display:block;
|
||||
border: 6rem solid var(--color-fg);
|
||||
opacity: 0.8;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.plot-container, .visualizer-container, .eq-container {
|
||||
--color-custom:var(--color-accent);
|
||||
|
||||
height: 200rem;
|
||||
width: 200rem;
|
||||
.plot {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex:1;
|
||||
position: relative;
|
||||
}
|
||||
canvas {
|
||||
position: absolute;
|
||||
top:0;left:0;
|
||||
width:100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.meter-container {
|
||||
--color-custom:var(--color-accent);
|
||||
--color-gauge: var(--color-custom);
|
||||
|
||||
height: 100rem;
|
||||
.meter {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex:1;
|
||||
position: relative;
|
||||
|
||||
background: var(--color-track);
|
||||
|
||||
.level {
|
||||
width:100%;
|
||||
flex:1;
|
||||
transform-origin: bottom;
|
||||
background:var(--color-custom);
|
||||
// opacity: .5;
|
||||
}
|
||||
&::after {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
bottom:0;
|
||||
right:0;
|
||||
background-image: linear-gradient(transparent 1px, var(--color-fg) 1px, var(--color-fg) 2px );
|
||||
background-size: 100% 2px;
|
||||
background-repeat: repeat;
|
||||
}
|
||||
&.horizontal {
|
||||
&::after {
|
||||
background-image: linear-gradient(to left, transparent 1px, var(--color-fg) 1px, var(--color-fg) 2px );
|
||||
background-size: 2px 100% ;
|
||||
}
|
||||
.level {
|
||||
transform-origin: left;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.text-container {
|
||||
--color-custom:var(--color-accent);
|
||||
|
||||
.text {
|
||||
flex: 1;
|
||||
height:35rem;
|
||||
padding: 10rem;
|
||||
justify-content: center;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: var(--color-faded);
|
||||
color:var(--color-custom);
|
||||
&.vertical {
|
||||
transform: rotate(180deg);
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
-webkit-writing-mode:vertical-lr;
|
||||
}
|
||||
}
|
||||
}
|
||||
9
src/browser/scss/widgets/_push.scss
Normal file
9
src/browser/scss/widgets/_push.scss
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
.push-container {
|
||||
@extend .toggle-container;
|
||||
.active {
|
||||
background: var(--color-fg);
|
||||
}
|
||||
.light:after{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
83
src/browser/scss/widgets/_strip.scss
Normal file
83
src/browser/scss/widgets/_strip.scss
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
|
||||
|
||||
.strip-container {
|
||||
width:100rem;
|
||||
height:100%;
|
||||
overflow: visible;
|
||||
// background: var(--color-bg);
|
||||
border:0;
|
||||
|
||||
&:before {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:0;
|
||||
bottom:0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
pointer-events: none;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
> .strip {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
> .widget {
|
||||
width:auto;
|
||||
margin:0;
|
||||
box-shadow: none;
|
||||
.label {
|
||||
background-image: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
&.vertical {
|
||||
> .strip > .widget {
|
||||
max-width: 100%;
|
||||
}
|
||||
&::before {
|
||||
border-right: 1rem solid var(--color-bg);
|
||||
}
|
||||
}
|
||||
&.horizontal {
|
||||
width:100%;
|
||||
height:200rem;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
||||
&::before {
|
||||
border-bottom: 1rem solid var(--color-bg);
|
||||
}
|
||||
|
||||
> .strip {
|
||||
flex-direction: row;
|
||||
flex:1;
|
||||
> .widget {
|
||||
flex-shrink: initial;
|
||||
width: 100%;
|
||||
min-height: 100%;
|
||||
max-height: 100%;
|
||||
height:100%;
|
||||
}
|
||||
}
|
||||
> .label {
|
||||
width:35rem;
|
||||
height:100%;
|
||||
border-bottom:0;
|
||||
border-right:1rem solid var(--color-bg);
|
||||
max-height: initial;
|
||||
span {
|
||||
transform: rotate(180deg);
|
||||
display: block;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
-webkit-writing-mode:vertical-lr;
|
||||
text-align: center;
|
||||
height:100%;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
75
src/browser/scss/widgets/_switch.scss
Normal file
75
src/browser/scss/widgets/_switch.scss
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
.switch-container {
|
||||
width:100rem;
|
||||
flex-shrink: 0;
|
||||
.switch {
|
||||
height:100%;
|
||||
width:100%;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
flex-direction:column;
|
||||
align-items: stretch;
|
||||
flex:1;
|
||||
z-index: 1;
|
||||
|
||||
&.horizontal {
|
||||
flex-direction:row;
|
||||
.value {
|
||||
padding:6rem;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
border-top:0;
|
||||
border-right:1rem solid var(--color-bg);
|
||||
flex:1;
|
||||
height:auto;
|
||||
&:last-child {
|
||||
border-right:0;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
.value {
|
||||
background:var(--color-raised);
|
||||
color:var(--color-text);
|
||||
width:100%;
|
||||
height:100%;
|
||||
position: relative;
|
||||
border-top: 1rem solid var(--color-bg);
|
||||
white-space: normal;
|
||||
padding:12rem;
|
||||
text-align: center;
|
||||
word-break: break-all;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
box-shadow: 0 0 1rem 0 var(--color-text-fade) inset;
|
||||
|
||||
&:first-child {
|
||||
border-top:0;
|
||||
}
|
||||
&:last-child {
|
||||
margin-bottom:0;
|
||||
}
|
||||
|
||||
&:before {
|
||||
content:"";
|
||||
position: absolute;
|
||||
left:0;
|
||||
top:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
background: var(--color-custom);
|
||||
opacity: 0;
|
||||
z-index: 2;
|
||||
}
|
||||
&.on:before {
|
||||
opacity: .3;
|
||||
box-shadow: 0 0 1rem 0 var(--color-custom) inset;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
59
src/browser/scss/widgets/_toggle.scss
Normal file
59
src/browser/scss/widgets/_toggle.scss
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
.toggle-container {
|
||||
width:100rem;
|
||||
min-height: 65rem;
|
||||
flex-shrink: 0;
|
||||
padding:0!important;
|
||||
background: var(--color-raised);
|
||||
|
||||
.label {
|
||||
position: absolute;
|
||||
top:1rem;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
height:auto;
|
||||
max-height: initial;
|
||||
border:0;
|
||||
background: none!important;
|
||||
text-align: center;
|
||||
pointer-events:none;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
cursor: pointer;
|
||||
|
||||
.light {
|
||||
box-shadow: 0 0 1rem 0 var(--color-text-fade) inset;
|
||||
flex:1;
|
||||
|
||||
&:after {
|
||||
content:"";
|
||||
border-top: 4rem solid var(--color-text-fade);
|
||||
opacity: .1;
|
||||
display: block;
|
||||
}
|
||||
|
||||
&:before {
|
||||
content:"";
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
background: var(--color-custom);
|
||||
opacity: 0;
|
||||
}
|
||||
&.on {
|
||||
|
||||
box-shadow: 0 0 1rem 0 var(--color-custom) inset;
|
||||
&:before {
|
||||
opacity: .3;
|
||||
}
|
||||
&:after {
|
||||
border-top-color: var(--color-custom);
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue