801 lines
17 KiB
SCSS
801 lines
17 KiB
SCSS
/////////////
|
||
|
||
$color-text:rgba(white,.9);
|
||
$color-text-fade:transparentize($color-text,.4);
|
||
|
||
|
||
|
||
$color-fg:#282c34;
|
||
$color-bg:mix($color-fg,black,85);
|
||
$color-accent:#528bff;
|
||
$color-border:mix($color-fg,black,55);
|
||
$nav-height:50px;
|
||
|
||
$bg-title:rgba(white,.05);
|
||
$bg-button:linear-gradient(#3a3f4b, #353b45);
|
||
|
||
$sidepanel-size:300px;
|
||
|
||
|
||
@mixin layer {
|
||
position: absolute;
|
||
top:0;
|
||
left:0;
|
||
right: 0;
|
||
bottom:0;
|
||
}
|
||
|
||
|
||
/////////////
|
||
|
||
|
||
* {
|
||
margin:0;
|
||
padding:0;
|
||
box-sizing:border-box;
|
||
text-decoration:none;
|
||
outline:0;
|
||
font:inherit;
|
||
cursor: url('data:image/x-icon;base64,AAACAAEAICAQAAcACADoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAAAIAAAAAAAAAAAAAEAAAAAAAAAAAAAAAuLW0AL+8uwAwMC8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACIiEDASIiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////////////////////////////////////////////////////////////7////+/////v////7////+/////////4KD/////////v////7////+/////v////7//////////////w=='),auto!important;
|
||
}
|
||
|
||
|
||
$scrollbar-margin:5px;
|
||
::-webkit-scrollbar {
|
||
width: 20px;
|
||
height:20px;opacity:1;
|
||
|
||
}
|
||
|
||
::-webkit-scrollbar-track-piece {
|
||
background: rgba(0,0,0,.2);
|
||
&:vertical {
|
||
border-left:$scrollbar-margin solid $color-fg;
|
||
}
|
||
&:horizontal {
|
||
border-top:$scrollbar-margin solid $color-fg;
|
||
}
|
||
}
|
||
::-webkit-scrollbar-corner {
|
||
background: none;
|
||
}
|
||
::-webkit-scrollbar-thumb {
|
||
background:$bg-button;
|
||
width:10px!important;
|
||
opacity:1;
|
||
&:vertical {
|
||
border-left:$scrollbar-margin solid $color-fg;
|
||
}
|
||
&:horizontal {
|
||
border-top:$scrollbar-margin solid $color-fg;
|
||
}
|
||
}
|
||
|
||
|
||
|
||
* {
|
||
-webkit-user-select: none;
|
||
}
|
||
.inspector *{
|
||
-webkit-user-select: initial;
|
||
}
|
||
.inspector *::selection{
|
||
background:$color-accent!important;
|
||
}
|
||
input:focus::selection{
|
||
background:$color-accent;
|
||
}
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
html, body {
|
||
height:100%;
|
||
overflow:hidden;
|
||
position:relative;
|
||
|
||
}
|
||
body {
|
||
font-size:14px;
|
||
line-height:16px;
|
||
font-family:'Open Sans';
|
||
color:$color-text;
|
||
white-space:nowrap;
|
||
opacity:1
|
||
}
|
||
|
||
|
||
|
||
|
||
|
||
#lobby {
|
||
background: $color-bg;
|
||
@include layer();
|
||
z-index: 2;
|
||
border:1px solid $color-border;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
.main {
|
||
width:600px;
|
||
}
|
||
.header {
|
||
background: $bg-button;
|
||
padding:20px;
|
||
font-weight:bold;
|
||
box-shadow: 0 0 0 1px $color-border inset;
|
||
}
|
||
a {
|
||
display: block;
|
||
padding:10px;
|
||
padding-right:25px;
|
||
overflow: hidden;
|
||
background: $bg-button;
|
||
margin-top:10px;
|
||
box-shadow: 0 0 0 1px $color-border inset;
|
||
position: relative;
|
||
|
||
span {
|
||
position: absolute;
|
||
right:1px;
|
||
top:1px;
|
||
bottom:1px;
|
||
|
||
padding:9px;
|
||
background: $bg-button;
|
||
}
|
||
}
|
||
}
|
||
|
||
|
||
|
||
|
||
|
||
|
||
#container {
|
||
background: $color-bg;
|
||
@include layer();
|
||
overflow:hidden;
|
||
transition:right .3s;
|
||
&.sidepanel-open {
|
||
right:$sidepanel-size;
|
||
}
|
||
}
|
||
|
||
#sidepanel {
|
||
position:absolute;
|
||
z-index: 999999;
|
||
width:$sidepanel-size;
|
||
top:0;
|
||
right:0;
|
||
bottom:0;
|
||
margin-right:-$sidepanel-size;
|
||
background:$color-fg;
|
||
border-left:1px solid $color-border;
|
||
//box-shadow: 0 0 10px 0 $color-border;
|
||
transition:right .3s;
|
||
&.sidepanel-open {
|
||
right:$sidepanel-size;
|
||
}
|
||
.open-toggle {
|
||
position:absolute;
|
||
top:7px;
|
||
left:-53px;
|
||
width:47px;
|
||
height:40px;
|
||
padding:11px 9px;
|
||
border:1px solid transparent;
|
||
border-bottom:0;
|
||
//box-shadow: 0 0 10px 0 $color-border;
|
||
border-radius:3px 3px 0 0;
|
||
|
||
.bars {
|
||
display:block;
|
||
position: relative;
|
||
width:100%;
|
||
height:2px;
|
||
background: $color-text;
|
||
&:after, &:before {
|
||
content:"";
|
||
position: absolute;
|
||
width: 100%;
|
||
height:100%;
|
||
top:7px;
|
||
left:0;
|
||
background: $color-text;
|
||
}
|
||
&::after {
|
||
top:14px;
|
||
}
|
||
&, &:after, &:before {
|
||
//transition:all .3s;
|
||
}
|
||
&.sidepanel-open {
|
||
background:transparent,
|
||
}
|
||
&.sidepanel-open:before {
|
||
background:$color-accent;
|
||
transform: rotate(45deg);
|
||
}
|
||
&.sidepanel-open:after {
|
||
background:$color-accent;
|
||
transform: rotate(-45deg);
|
||
top:8px;
|
||
}
|
||
|
||
|
||
}
|
||
|
||
|
||
}
|
||
#options {
|
||
position:absolute;
|
||
left:0;top:2px;
|
||
right:0;bottom:0;
|
||
padding:5px;
|
||
list-style:none;
|
||
background:$color-fg;
|
||
li {
|
||
display:block;
|
||
margin-bottom:15px;
|
||
background:$bg-button;
|
||
border:1px solid $color-border;
|
||
> div {
|
||
padding:10px;
|
||
}
|
||
}
|
||
|
||
.inspector {
|
||
.result {
|
||
background: $color-border;
|
||
border-radius: 3px;
|
||
margin-top: 10px;
|
||
padding:10px;
|
||
color:$color-text-fade;
|
||
white-space: pre;
|
||
word-wrap: break-word;
|
||
width:100%;
|
||
max-height: 300px;
|
||
overflow-y: auto;
|
||
&::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb {
|
||
border-color:$color-border!important
|
||
}
|
||
&::-webkit-scrollbar-thumb{
|
||
background:$color-bg!important;
|
||
opacity:0.6!important;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
|
||
|
||
|
||
|
||
.nicescroll-rails-hr {
|
||
margin-top:3px;
|
||
}
|
||
.nicescroll-rails-vr {
|
||
display:none!important;
|
||
}
|
||
|
||
a {
|
||
color:inherit;
|
||
}
|
||
|
||
|
||
.navigation {
|
||
position:absolute;
|
||
top:0;
|
||
left:0;
|
||
right:0;
|
||
z-index:20;
|
||
padding:7px 0px 0;
|
||
font-size:14px;
|
||
box-shadow:0;
|
||
::first-letter {
|
||
text-transform: uppercase;
|
||
}
|
||
&.sub {
|
||
padding-top:2px;
|
||
ul {
|
||
padding:0;
|
||
}
|
||
li {
|
||
border-image: linear-gradient($color-fg, $color-border 20px) 0 0 0 1 stretch;
|
||
}
|
||
}
|
||
|
||
|
||
|
||
&.main {
|
||
right:80px;
|
||
}
|
||
ul {
|
||
list-style:none;
|
||
display: flex;
|
||
padding-left:5px;
|
||
li.on + li {border-image:none;border-left:1px solid transparent;}
|
||
li {
|
||
display:block;
|
||
max-width:250px;
|
||
flex: 1;
|
||
|
||
border-width:0 0 0 1px;
|
||
border-image: linear-gradient($color-bg, $color-border 20px) 0 0 0 1 stretch;
|
||
&:first-child, &.on {
|
||
border-image:none;
|
||
border-left:1px solid transparent;
|
||
}
|
||
|
||
|
||
a {
|
||
display:block;
|
||
padding: 5px 10px;
|
||
line-height: ($nav-height - 22px);
|
||
border-radius:3px 3px 0 0;
|
||
overflow:hidden;
|
||
text-align:center;
|
||
border:1px solid transparent;
|
||
position:relative;
|
||
span {
|
||
display:block;
|
||
width:100%;
|
||
-webkit-mask: linear-gradient(to left, rgba(0, 0, 0, 0), #000000 10px) no-repeat;
|
||
}
|
||
color:$color-text-fade;
|
||
&.on {
|
||
background:#282c34;
|
||
border:1px solid $color-border;
|
||
border-bottom-color:$color-fg;
|
||
color:$color-text;
|
||
|
||
&:before {
|
||
content:"";
|
||
position: absolute;
|
||
top:0;
|
||
left:0;
|
||
right:0;
|
||
bottom:0;
|
||
box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
|
||
background:linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0))
|
||
}
|
||
&:after {
|
||
content:"";
|
||
position:absolute;
|
||
top:0;
|
||
left:0;
|
||
right:0;
|
||
height:4px;
|
||
background:linear-gradient(rgba($color-accent,0.5),rgba($color-accent,0))
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
|
||
|
||
|
||
|
||
.content {
|
||
position:absolute;
|
||
left:0;
|
||
top:$nav-height - 4px;
|
||
right:0;
|
||
bottom:0;
|
||
padding:10px 5px 5px;
|
||
border-top:1px solid $color-border;
|
||
background:$color-fg;
|
||
|
||
.tab {
|
||
//height:100%;
|
||
font-size:0;
|
||
//position:relative;
|
||
overflow: auto;
|
||
}
|
||
.content {
|
||
border:1px solid $color-border;
|
||
top:$nav-height - 9px;
|
||
|
||
}
|
||
}
|
||
|
||
|
||
.tab {
|
||
display:block;
|
||
height:0px;
|
||
width: 0px;
|
||
overflow: hidden;
|
||
position: relative;
|
||
&.on {
|
||
height:100%;
|
||
width:auto;
|
||
}
|
||
}
|
||
|
||
|
||
.test.tab.on {
|
||
display:flex;width:100%;
|
||
flex-wrap: wrap;
|
||
flex-direction:column;
|
||
//justify-content: stretch;
|
||
> .widget {
|
||
height:33.33%;
|
||
padding-bottom:10px;
|
||
//flex: 1
|
||
|
||
}
|
||
}
|
||
|
||
|
||
|
||
|
||
|
||
.spinner {
|
||
position: absolute;
|
||
top:50%;
|
||
left:50%;
|
||
margin:-15px 0 0 -15px;
|
||
height:30px;
|
||
width:30px;
|
||
border-radius: 50%;
|
||
border:2px solid rgba(0,0,0,.2);
|
||
border-top-color:$color-accent;
|
||
animation: spin .5s linear infinite;
|
||
}
|
||
|
||
@keyframes spin {
|
||
0% {transform: rotate(0deg);}
|
||
100% {transform: rotate(360deg);}
|
||
}
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
// WIDGETS
|
||
|
||
.widget {
|
||
display:inline-block;
|
||
height:100%;
|
||
overflow: visible;
|
||
position:relative;
|
||
font-size:13px;
|
||
// box-shadow: 0 0 0 1px $color-border;
|
||
padding-top:35px;
|
||
//padding-bottom: 8px;
|
||
vertical-align:top;
|
||
// overflow: hidden;
|
||
margin-right: 10px;
|
||
&:last-child {
|
||
margin-right: 0
|
||
}
|
||
.title {
|
||
z-index: 1;
|
||
padding:10px 10px;
|
||
position:absolute;
|
||
top:0px;
|
||
left:0;
|
||
right:0;
|
||
text-overflow:ellipsis;
|
||
overflow:hidden;
|
||
height:35px;
|
||
//border-radius:2px 2px 0 0 ;
|
||
background:$bg-button;
|
||
box-shadow: 0 0 0 1px $color-bg inset;
|
||
}
|
||
input {
|
||
width:100%;
|
||
height:35px;
|
||
border:0;
|
||
background:$color-bg;
|
||
color:inherit;
|
||
display:block;
|
||
padding:10px;
|
||
&:focus {
|
||
box-shadow:0 0 0 1px $color-accent inset!important;
|
||
}
|
||
&[disabled] {
|
||
color:$color-text-fade;
|
||
}
|
||
}
|
||
}
|
||
|
||
|
||
|
||
/* SEPARATOR */
|
||
|
||
.separator {
|
||
width:5px;
|
||
display:inline-block;
|
||
height:100%;
|
||
position:relative;vertical-align:top;
|
||
}
|
||
|
||
/* BUTTON */
|
||
$button-size:20px;
|
||
.button-wrapper {
|
||
height:100%;
|
||
width:95px;
|
||
overflow:hidden;
|
||
padding: 10px 0 40px;
|
||
position: relative;
|
||
.button {
|
||
width:100%;
|
||
height:100%;
|
||
position:relative;
|
||
outline:1px solid $color-bg;
|
||
outline-offset: -10px;
|
||
background:$bg-button;
|
||
box-shadow: 0 0 0 1px $color-bg inset;
|
||
&:after{
|
||
content:"";
|
||
position:absolute;
|
||
height:$button-size;
|
||
width:$button-size;
|
||
top:50%;left:50%;
|
||
margin:(- $button-size/2) 0 0 (- $button-size/2);
|
||
border-radius:$button-size;
|
||
background:$color-bg;
|
||
}
|
||
&.on:after {
|
||
background:$color-accent;
|
||
box-shadow:0 0 0 4px rgba(255,255,255,0.1);
|
||
}
|
||
}
|
||
input {
|
||
position:absolute;
|
||
bottom:0;
|
||
box-shadow: 0 0 1px 0 $color-border inset;
|
||
}
|
||
}
|
||
|
||
|
||
|
||
/* STACK (contains any widgets) */
|
||
|
||
.stack {
|
||
width:400px;
|
||
height:auto;
|
||
padding-bottom:0;
|
||
border-bottom: 0;
|
||
}
|
||
|
||
.stack-wrapper {
|
||
|
||
//height:100%;
|
||
}
|
||
|
||
.stack-wrapper .widget {
|
||
border-right:0;
|
||
border-left:0;
|
||
}
|
||
.stack-wrapper .widget:nth-child(2n+2) {
|
||
|
||
}
|
||
.stack .widget {
|
||
//height:70px;
|
||
width:100%;
|
||
display:block;
|
||
padding:0;
|
||
border-top:0;
|
||
border-right:0;
|
||
border-left:0;
|
||
margin-top: 10px;
|
||
&:after {
|
||
content:"";
|
||
display:block;
|
||
clear:both;
|
||
}
|
||
}
|
||
.stack .fader {
|
||
width:100%;
|
||
}
|
||
.stack .fader-wrapper-outer {
|
||
padding:0;
|
||
}
|
||
.stack .fader-wrapper {
|
||
padding:20px 20px;
|
||
float:right;
|
||
width:70%;
|
||
height:70px;
|
||
}
|
||
.stack .button-wrapper {
|
||
float:right;
|
||
width:70%;
|
||
height:70px;
|
||
padding: 0 0 0 10px;
|
||
position: static;
|
||
input {
|
||
bottom:0
|
||
}
|
||
}
|
||
.stack .widget .title {
|
||
width:30%;
|
||
height:35px;
|
||
//border-right:1px solid $color-border;
|
||
}
|
||
.stack .fader-wrapper-outer input, .stack .button-wrapper input {
|
||
width:30%;
|
||
height:35px;
|
||
left:0;
|
||
right:auto;
|
||
border-top:0;
|
||
//border-right:1px solid $color-border;
|
||
}
|
||
|
||
.stack .xy-wrapper {
|
||
float:right;
|
||
width:70%;
|
||
height:300px;
|
||
padding-top:0;
|
||
padding-left:10px;
|
||
}
|
||
|
||
/* STRIP (vertical fader) */
|
||
|
||
.fader-wrapper-outer {
|
||
padding-bottom:30px;
|
||
overflow:hidden;
|
||
height:100%;
|
||
width:100%;
|
||
position: relative;
|
||
input {
|
||
position:absolute;
|
||
bottom:0;
|
||
box-shadow: 0 0 1px 0 $color-border inset;
|
||
}
|
||
}
|
||
.fader-wrapper {
|
||
padding:20px 15px 20px 20px ;
|
||
overflow:hidden;
|
||
height:100%;
|
||
width:95px;
|
||
position: relative;
|
||
}
|
||
.fader{
|
||
height:100%;
|
||
}
|
||
|
||
|
||
/* XY */
|
||
|
||
.xy-wrapper {
|
||
width:400px;
|
||
padding: 10px 0px 90px;
|
||
height:490px;
|
||
overflow: hidden;
|
||
.value {
|
||
margin-top:10px;
|
||
width:100%;
|
||
}
|
||
input {
|
||
width:50%;
|
||
float:left;
|
||
padding-left: 20px;
|
||
position: relative;
|
||
left:0px;
|
||
right:0px;
|
||
box-shadow: 0 0 1px 0 $color-border inset;
|
||
}
|
||
}
|
||
.xy {
|
||
position:relative;
|
||
width:100%;
|
||
height: 100%;
|
||
border:1px solid $color-border;
|
||
//background: $color-bg;
|
||
overflow: hidden;
|
||
.handle {
|
||
position:absolute;
|
||
height:0;
|
||
width:0;
|
||
z-index:2;
|
||
&:after {
|
||
content:"";
|
||
position:absolute;
|
||
top:-.5px;
|
||
left:-1px;
|
||
//box-shadow:0 0 10px 0px #aaa inset,0 0 1px 1px rgba(0,0,0,.5),0 0 0 3px rgba(255,255,255,.2)!important;
|
||
border-radius:100%!important;
|
||
//background:$color-accent!important;
|
||
width: 20px;
|
||
height: 20px;
|
||
margin:-10px 0 0 -10px;
|
||
box-shadow: 0 0 0 1000px rgba(black,.5), 0 0 0 1px rgba(white,.2);
|
||
}
|
||
|
||
span {
|
||
position:absolute;
|
||
top:-.5px;
|
||
left:-1px;
|
||
width:2000px;
|
||
height:2000px;
|
||
margin:-1000px 0 0 -1000px;
|
||
-webkit-mask: radial-gradient(circle,rgba(black,0) 0px , rgba(black,1) 1%);
|
||
opacity:.2;
|
||
}
|
||
}
|
||
}
|
||
|
||
|
||
.rgb-wrapper {
|
||
|
||
input {
|
||
width:33.33%;
|
||
}
|
||
}
|
||
|
||
.rgb {
|
||
background-color: red;
|
||
&: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%); /* W3C */
|
||
}
|
||
.handle {
|
||
span {
|
||
//background: rgba(black,.35)
|
||
}
|
||
}
|
||
}
|
||
.hue {
|
||
width:100%;
|
||
height:30px;
|
||
border:1px solid $color-border;
|
||
margin-top:10px;
|
||
background:transparent linear-gradient(to left, #F00, #FF0080, #F0F, #8000FF, #00F, #0080FF, #0FF, #00FF80, #0F0, #80FF00, #FF0, #FF8000, #F00) repeat scroll 0% 0%;
|
||
overflow: hidden;
|
||
.handle {
|
||
position:absolute;
|
||
height:100%;
|
||
width:1px;
|
||
z-index:2;
|
||
&:after {
|
||
content:"";
|
||
position:absolute;
|
||
top:50%;
|
||
left:-1px;
|
||
box-shadow: 0 0 0 1000px rgba(black,.5), 0 0 0 1px rgba(white,.2);
|
||
border-radius:100%!important;
|
||
width: 11px;
|
||
height: 11px;
|
||
margin:-5px 0 0 -4px;
|
||
}
|
||
span {
|
||
position:absolute;
|
||
top:0;
|
||
left:0;
|
||
width:2000px;
|
||
height:100%;
|
||
margin-left:-1000px;
|
||
|
||
}
|
||
}
|
||
|
||
}
|