- only use native css variable instead of sass' (theming feature on the way)
- better sidepanel transition
This commit is contained in:
parent
70eedc2d7b
commit
fe32cd673e
19 changed files with 220 additions and 203 deletions
File diff suppressed because one or more lines are too long
|
|
@ -118,7 +118,13 @@ var sidepanel = function(data){
|
|||
|
||||
var toggle = function(){
|
||||
$(`<li><a id="open-toggle">${icon('navicon')}</a></li>`).appendTo('.navigation.main ul').click(function(e){
|
||||
$('#open-toggle, #sidepanel, #container').toggleClass('sidepanel-open')
|
||||
var t = 0
|
||||
if (!$('#sidepanel').hasClass('sidepanel-open')) t = 250
|
||||
|
||||
$('#open-toggle, #sidepanel').toggleClass('sidepanel-open')
|
||||
setTimeout(function(){
|
||||
$('#container').toggleClass('sidepanel-open')
|
||||
},t)
|
||||
}).on('mousedown touchstart',function(e){e.stopPropagation()})
|
||||
|
||||
// in case where are hot loading a session
|
||||
|
|
|
|||
|
|
@ -2,20 +2,20 @@
|
|||
.form {
|
||||
.input-wrapper {
|
||||
display: flex;
|
||||
margin-bottom:$gutter;
|
||||
background:$color-bg;
|
||||
margin-bottom:var(--gutter);
|
||||
background:var(--color-bg);
|
||||
align-items: center;
|
||||
&:last-child {
|
||||
margin-bottom:0;
|
||||
}
|
||||
label {
|
||||
background: $color-fg;
|
||||
background: var(--color-fg);
|
||||
flex-shrink: 0;
|
||||
padding: 5rem;
|
||||
border:1rem solid $color-bg;
|
||||
border:1rem solid var(--color-bg);
|
||||
}
|
||||
.input, input {
|
||||
background: $color-bg;
|
||||
background: var(--color-bg);
|
||||
width:100%;
|
||||
padding:5rem;
|
||||
}
|
||||
|
|
@ -31,28 +31,28 @@
|
|||
label {
|
||||
display: block;
|
||||
font-size: 10rem;
|
||||
background: $color-faded;
|
||||
background: var(--color-faded);
|
||||
}
|
||||
.info {
|
||||
color:$color-text-fade;
|
||||
color:var(--color-text-fade);
|
||||
margin-bottom:10rem;
|
||||
}
|
||||
input, .input {
|
||||
display:block;
|
||||
border:0;
|
||||
font:inherit;
|
||||
color:$color-text;
|
||||
color:var(--color-text);
|
||||
width:100%;
|
||||
&:focus {
|
||||
border-color:$color-accent;
|
||||
border-color:var(--color-accent);
|
||||
}
|
||||
.btn {
|
||||
background:$color-raised-top;
|
||||
box-shadow: 0 0 0 1rem $color-bg;
|
||||
background:var(--color-raised);
|
||||
box-shadow: 0 0 0 1rem var(--color-bg);
|
||||
}
|
||||
}
|
||||
.checkbox {
|
||||
background:$color-raised;
|
||||
background:var(--color-raised);
|
||||
cursor: pointer;
|
||||
}
|
||||
.select-wrapper {
|
||||
|
|
@ -86,7 +86,7 @@
|
|||
top:14rem;
|
||||
width: 100%;
|
||||
height: 1rem;
|
||||
background: $color-text-fade;
|
||||
background: var(--color-text-fade);
|
||||
}
|
||||
span {
|
||||
font-variant: small-caps;
|
||||
|
|
@ -112,7 +112,7 @@
|
|||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
border:1rem dashed $color-accent;
|
||||
border:1rem dashed var(--color-accent);
|
||||
pointer-events: none;
|
||||
}
|
||||
.widget.editing:after {
|
||||
|
|
@ -123,8 +123,8 @@
|
|||
.context-menu {
|
||||
position:fixed;
|
||||
z-index: 999999999;
|
||||
background: $color-raised-top;
|
||||
box-shadow: 0 0 4rem 0 $color-border;
|
||||
background: var(--color-raised);
|
||||
box-shadow: 0 0 4rem 0 var(--color-track);
|
||||
.context-menu {
|
||||
position: absolute;
|
||||
left:100%;
|
||||
|
|
@ -155,7 +155,7 @@
|
|||
pointer-events: auto;
|
||||
opacity: 1;
|
||||
}
|
||||
background:$color-accent;
|
||||
background:var(--color-accent);
|
||||
}
|
||||
&.has-sub:before {
|
||||
content:"\f105";
|
||||
|
|
@ -174,11 +174,11 @@
|
|||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: $color-accent;
|
||||
background: var(--color-accent);
|
||||
width:20rem;
|
||||
height:20rem;
|
||||
border-radius:100%;
|
||||
box-shadow: 0 0 4rem 0 $color-bg;
|
||||
box-shadow: 0 0 4rem 0 var(--color-bg);
|
||||
|
||||
&:after {
|
||||
content:"";
|
||||
|
|
@ -223,12 +223,19 @@
|
|||
}
|
||||
|
||||
.ui-helper {
|
||||
border: 1rem dashed $color-accent;
|
||||
background: rgba($color-accent,.25);
|
||||
border: 1rem dashed var(--color-accent);
|
||||
min-width:30rem!important;
|
||||
min-height:30rem!important;
|
||||
z-index: 12!important;
|
||||
opacity: 1!important;
|
||||
&:after {
|
||||
content:"";
|
||||
display: block;
|
||||
width:100%;
|
||||
height:100%;
|
||||
background: var(--color-accent);
|
||||
opacity: .25;
|
||||
}
|
||||
}
|
||||
|
||||
.ui-draggable-handle:not(.label) {
|
||||
|
|
@ -242,8 +249,8 @@
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
border-radius:100%;
|
||||
background: $color-accent;
|
||||
box-shadow: 0 0 4rem 0 $color-bg;
|
||||
background: var(--color-accent);
|
||||
box-shadow: 0 0 4rem 0 var(--color-bg);
|
||||
|
||||
&:before {
|
||||
content:"\f0b2";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
body {
|
||||
background:$color-bg;
|
||||
// border:$gutter*2 solid $color-fg;
|
||||
border-radius: $border-radius
|
||||
background:var(--color-bg);
|
||||
}
|
||||
|
||||
#container {
|
||||
|
|
@ -12,39 +10,37 @@ body {
|
|||
right:0;
|
||||
display:flex;
|
||||
flex-direction: column;
|
||||
background:$color-bg;
|
||||
padding:$gutter;
|
||||
background:var(--color-bg);
|
||||
padding:var(--gutter);
|
||||
// transition:right .2s;
|
||||
&.sidepanel-open {
|
||||
right:$sidepanel-size;
|
||||
right:var(--sidepanel-size);
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
border-radius: $border-radius;
|
||||
height:100%;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
background:$color-fg;
|
||||
padding:$gutter;
|
||||
background:var(--color-fg);
|
||||
padding:var(--gutter);
|
||||
}
|
||||
|
||||
.tab {
|
||||
position: absolute;
|
||||
border-radius: $border-radius;
|
||||
overflow: auto;
|
||||
left:0;
|
||||
right:0;
|
||||
top:0;
|
||||
bottom:0;
|
||||
background:$color-bg;
|
||||
background:var(--color-bg);
|
||||
&.has-tabs {
|
||||
// border:$gutter*2 solid $color-fg;
|
||||
// padding: $gutter;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
> .navigation {
|
||||
background:$color-bg;
|
||||
background:var(--color-bg);
|
||||
// padding: $gutter;
|
||||
// margin-bottom: 0;
|
||||
}
|
||||
|
|
@ -55,18 +51,17 @@ body {
|
|||
}
|
||||
|
||||
.navigation {
|
||||
height:$nav-height;
|
||||
border-radius:$border-radius;
|
||||
margin-bottom: $gutter;
|
||||
height:var(--nav-height);
|
||||
margin-bottom: var(--gutter);
|
||||
flex-shrink:0;
|
||||
font-weight:bold;
|
||||
text-transform: uppercase;
|
||||
|
||||
&.main {
|
||||
li:last-child {
|
||||
width:$nav-height;
|
||||
max-width:$nav-height;
|
||||
min-width:$nav-height;
|
||||
width:var(--nav-height);
|
||||
max-width:var(--nav-height);
|
||||
min-width:var(--nav-height);
|
||||
i {
|
||||
margin:0 auto;
|
||||
}
|
||||
|
|
@ -77,7 +72,6 @@ body {
|
|||
display: flex;
|
||||
overflow: hidden;
|
||||
height:100%;
|
||||
border-radius:$border-radius;
|
||||
|
||||
li {
|
||||
display:block;
|
||||
|
|
@ -94,28 +88,28 @@ body {
|
|||
position: relative;
|
||||
padding-right: 1rem;
|
||||
a {
|
||||
background: $color-raised;
|
||||
background: var(--color-raised);
|
||||
}
|
||||
&:before {
|
||||
content:"";
|
||||
display: block;
|
||||
position: absolute;
|
||||
border-left:$nav-height/2 solid $color-bg;
|
||||
border-bottom: $nav-height/2 solid transparent;
|
||||
border-top: $nav-height/2 solid transparent;
|
||||
border-left:calc(var(--nav-height)/2) solid var(--color-bg);
|
||||
border-bottom: calc(var(--nav-height)/2) solid transparent;
|
||||
border-top: calc(var(--nav-height)/2) solid transparent;
|
||||
top:0;
|
||||
right:- ($nav-height/2 +1);
|
||||
right:calc(1 - var(--nav-height)/2);
|
||||
z-index: 1;
|
||||
}
|
||||
&:after {
|
||||
content:"";
|
||||
display: block;
|
||||
position: absolute;
|
||||
border-left:$nav-height/2 solid $color-raised;
|
||||
border-bottom: $nav-height/2 solid transparent;
|
||||
border-top: $nav-height/2 solid transparent;
|
||||
border-left:calc(var(--nav-height)/2) solid var(--color-raised);
|
||||
border-bottom: calc(var(--nav-height)/2) solid transparent;
|
||||
border-top: calc(var(--nav-height)/2) solid transparent;
|
||||
top:0;
|
||||
right:- ($nav-height/2 - 1);
|
||||
right:calc(-1 - var(--nav-height)/2);
|
||||
z-index: 2;
|
||||
}
|
||||
}
|
||||
|
|
@ -125,10 +119,9 @@ body {
|
|||
margin-right:0;
|
||||
}
|
||||
a {
|
||||
background: $color-fg;
|
||||
background: var(--color-fg);
|
||||
pointer-events: none;
|
||||
padding: 5rem;
|
||||
border-radius:$border-radius;
|
||||
height:100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
@ -143,7 +136,7 @@ body {
|
|||
}
|
||||
a:after {
|
||||
content:"";
|
||||
background:$color-accent;
|
||||
background:var(--color-accent);
|
||||
position: absolute;
|
||||
bottom:0;
|
||||
left:0;
|
||||
|
|
@ -155,7 +148,7 @@ body {
|
|||
}
|
||||
&.on a, .sidepanel-open {
|
||||
position: relative;
|
||||
background: $color-raised;
|
||||
background: var(--color-raised);
|
||||
&:after {
|
||||
opacity:1;
|
||||
transform: scale(1);
|
||||
|
|
@ -163,7 +156,7 @@ body {
|
|||
}
|
||||
}
|
||||
.parent + li a {
|
||||
padding-left: $nav-height/2 + 5;
|
||||
padding-left: calc(5 + var(--nav-height)/2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,23 +7,23 @@
|
|||
}
|
||||
|
||||
::-webkit-scrollbar-track-piece {
|
||||
background: $color-bg;
|
||||
background: var(--color-bg);
|
||||
&:vertical {
|
||||
border-left:$gutter solid $color-bg;
|
||||
border-left:var(--gutter) solid var(--color-bg);
|
||||
}
|
||||
&:horizontal {
|
||||
border-top:$gutter solid $color-bg;
|
||||
border-top:var(--gutter) solid var(--color-bg);
|
||||
}
|
||||
}
|
||||
::-webkit-scrollbar-corner {
|
||||
background: transparent;
|
||||
}
|
||||
::-webkit-scrollbar-thumb {
|
||||
background:$color-raised;
|
||||
background:var(--color-raised);
|
||||
&:vertical {
|
||||
border-left:$gutter solid $color-bg;
|
||||
border-left:var(--gutter) solid var(--color-bg);
|
||||
}
|
||||
&:horizontal {
|
||||
border-top:$gutter solid $color-bg;
|
||||
border-top:var(--gutter) solid var(--color-bg);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,21 +2,22 @@
|
|||
#sidepanel {
|
||||
position:absolute;
|
||||
z-index: 999999;
|
||||
width:$sidepanel-size;
|
||||
border: $gutter*2 solid $color-fg;
|
||||
width:var(--sidepanel-size);
|
||||
border: calc(var(--gutter)*2) solid var(--color-fg);
|
||||
top:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
margin-right:-$sidepanel-size;
|
||||
background:$color-fg;
|
||||
transition:transform .2s;
|
||||
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(- $sidepanel-size,0,0);
|
||||
transform: translate3d(calc(-1 * var(--sidepanel-size)),0,0);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
#options {
|
||||
|
|
@ -27,7 +28,7 @@
|
|||
|
||||
li {
|
||||
display:block;
|
||||
margin-bottom:$gutter*2;
|
||||
margin-bottom:calc(var(--gutter)*2);
|
||||
position: relative;
|
||||
|
||||
&:last-child {
|
||||
|
|
@ -38,16 +39,16 @@
|
|||
right:0rem;
|
||||
top:0rem;
|
||||
padding:8rem;
|
||||
color:$color-text-fade;
|
||||
color:var(--color-text-fade);
|
||||
&:hover {
|
||||
color:$color-text;
|
||||
color:var(--color-text);
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
padding: $gutter;
|
||||
padding: var(--gutter);
|
||||
li {
|
||||
margin-bottom: $gutter;
|
||||
margin-bottom: var(--gutter);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -64,30 +65,40 @@
|
|||
}
|
||||
}
|
||||
&::-webkit-scrollbar-track-piece {
|
||||
background: $color-bg;
|
||||
background: var(--color-bg);
|
||||
&:vertical {
|
||||
border-left:$gutter*2 solid $color-fg;
|
||||
border-left:calc(var(--gutter)*2) solid var(--color-fg);
|
||||
}
|
||||
}
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background:$color-raised;
|
||||
background:var(--color-raised);
|
||||
&:vertical {
|
||||
border-left:$gutter*2 solid $color-fg;
|
||||
border-left:calc(var(--gutter)*2) solid var(--color-fg);
|
||||
}
|
||||
}
|
||||
}
|
||||
.actions {
|
||||
padding:1rem;
|
||||
background:$color-bg;
|
||||
background:var(--color-bg);
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
flex-wrap:wrap;
|
||||
.title {
|
||||
background: $color-faded;
|
||||
background: var(--color-faded);
|
||||
min-width: 100%;
|
||||
flex-grow: 2;
|
||||
padding: 10rem;
|
||||
box-shadow: 0 0 0 1rem $color-bg;
|
||||
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 {
|
||||
|
|
@ -96,8 +107,10 @@
|
|||
padding:10rem;
|
||||
display: block;
|
||||
text-align: center;
|
||||
box-shadow: 0 0 0 1rem $color-bg;
|
||||
position: relative;
|
||||
color:var(--color-text);
|
||||
overflow: visible;
|
||||
|
||||
&.on {
|
||||
pointer-events: none;
|
||||
&:after {
|
||||
|
|
@ -105,9 +118,19 @@
|
|||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
&: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:$color-accent;
|
||||
background:var(--color-accent);
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
|
|
|
|||
|
|
@ -1,47 +1,19 @@
|
|||
$theme:'dark';
|
||||
|
||||
/////////////
|
||||
|
||||
@if $theme == 'dark' {
|
||||
$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%); // raised
|
||||
|
||||
$color-raised-top:lighten(#2b2f37,5%); // raised
|
||||
$color-border:darken($color-bg,5%);
|
||||
$color-track: lighten(#1a1d22,1%); // widgets unfilled value
|
||||
|
||||
$color-accent:#528bff;
|
||||
}
|
||||
|
||||
@if $theme == 'light' {
|
||||
$color-text:#333;
|
||||
$color-text-fade:#666;
|
||||
|
||||
$color-fg:#ddd; // primary
|
||||
$color-bg:#bbb; // secondary
|
||||
$color-raised:#eaeaea; // raised
|
||||
$color-raised-top:#ddd; // raised
|
||||
$color-border:#999;
|
||||
$color-track: #999; // widgets unfilled value
|
||||
|
||||
$color-accent:darken(desaturate(#528bff,25%),10%);
|
||||
}
|
||||
|
||||
$border-radius:0;//3rem;
|
||||
$gutter:4rem;
|
||||
$nav-height:40rem;
|
||||
$sidepanel-size:300rem;
|
||||
|
||||
|
||||
/////////////
|
||||
|
||||
:root {
|
||||
--color-accent:$color-accent;
|
||||
--color-text:$color-text;
|
||||
--color-text-fade:$color-text-fade;
|
||||
|
||||
--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%); // raised
|
||||
|
||||
--color-track: lighten(#1a1d22,1%); // widgets unfilled value
|
||||
|
||||
--color-accent:#528bff;
|
||||
|
||||
|
||||
--gutter:4rem;
|
||||
--nav-height:40rem;
|
||||
--sidepanel-size:300rem;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@
|
|||
position:relative;
|
||||
padding:35rem 0 0;
|
||||
vertical-align:top;
|
||||
box-shadow: -0.5rem -0.5rem 0 0.5rem $color-bg;
|
||||
border-right:1rem solid $color-bg;
|
||||
border-bottom:1rem solid $color-bg;
|
||||
background:$color-fg;
|
||||
box-shadow: -0.5rem -0.5rem 0 0.5rem var(--color-bg);
|
||||
border-right:1rem solid var(--color-bg);
|
||||
border-bottom:1rem solid var(--color-bg);
|
||||
background:var(--color-fg);
|
||||
background-clip:padding-box;
|
||||
-webkit-tap-highlight-color:transparent;
|
||||
min-height:30rem;
|
||||
|
|
@ -38,10 +38,10 @@
|
|||
overflow:hidden;
|
||||
text-align:center;
|
||||
height:35rem;
|
||||
background: $color-faded;
|
||||
border-bottom:1rem solid $color-bg;
|
||||
background: var(--color-faded);
|
||||
border-bottom:1rem solid var(--color-bg);
|
||||
&.accent {
|
||||
color:$color-accent;
|
||||
color:var(--color-accent);
|
||||
}
|
||||
}
|
||||
.input {
|
||||
|
|
@ -49,7 +49,7 @@
|
|||
height:30rem;
|
||||
border:0;
|
||||
background:transparent;
|
||||
color:$color-text-fade;
|
||||
color:var(--color-text-fade);
|
||||
display:block;
|
||||
padding:7rem 5rem;
|
||||
position: relative;
|
||||
|
|
@ -66,7 +66,7 @@
|
|||
text-align:center;
|
||||
border:0;
|
||||
background: transparent;
|
||||
color:$color-accent;
|
||||
color:var(--color-accent);
|
||||
}
|
||||
canvas {
|
||||
width:100%;
|
||||
|
|
@ -82,11 +82,11 @@
|
|||
}
|
||||
|
||||
&:focus {
|
||||
color:$color-accent;
|
||||
color:var(--color-accent);
|
||||
|
||||
}
|
||||
&[disabled] {
|
||||
color:$color-text-fade;
|
||||
color:var(--color-text-fade);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@
|
|||
|
||||
|
||||
input:focus::selection{
|
||||
background:$color-accent;
|
||||
color:$color-text;
|
||||
background:var(--color-accent);
|
||||
color:var(--color-text);
|
||||
}
|
||||
input {
|
||||
cursor: text;
|
||||
|
|
@ -41,7 +41,7 @@ body {
|
|||
font-size:13rem;
|
||||
line-height:16rem;
|
||||
font-family:Droid Sans;
|
||||
color:$color-text;
|
||||
color:var(--color-text);
|
||||
white-space:nowrap;
|
||||
opacity:1;
|
||||
cursor: default;
|
||||
|
|
@ -52,7 +52,7 @@ i {
|
|||
|
||||
|
||||
.btn {
|
||||
background: $color-raised;
|
||||
background: var(--color-raised);
|
||||
display: block;
|
||||
padding:15rem;
|
||||
position: relative;
|
||||
|
|
@ -69,7 +69,7 @@ i {
|
|||
}
|
||||
&.disabled {
|
||||
pointer-events: none;
|
||||
color:$color-text-fade;
|
||||
color:var(--color-text-fade);
|
||||
}
|
||||
&.align-center {
|
||||
text-align: center
|
||||
|
|
@ -86,14 +86,14 @@ i {
|
|||
|
||||
|
||||
#lobby {
|
||||
background: $color-bg;
|
||||
background: var(--color-bg);
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right: 0;
|
||||
bottom:0;
|
||||
z-index: 2;
|
||||
border:1rem solid $color-border;
|
||||
border:1rem solid var(--color-track);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
|
@ -105,10 +105,10 @@ i {
|
|||
|
||||
}
|
||||
.header {
|
||||
background: $color-raised;
|
||||
background: var(--color-raised);
|
||||
padding:20rem;
|
||||
font-weight:bold;
|
||||
box-shadow: 0 0 0 1rem $color-border inset;
|
||||
box-shadow: 0 0 0 1rem var(--color-track) inset;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
|
@ -124,7 +124,7 @@ i {
|
|||
right:0rem;
|
||||
top:0rem;
|
||||
padding:15rem;
|
||||
color:$color-text-fade;
|
||||
color:var(--color-text-fade);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -151,8 +151,8 @@ i {
|
|||
height:30rem;
|
||||
width:30rem;
|
||||
border-radius: 50%;
|
||||
border:2rem solid $color-border;
|
||||
border-top-color:$color-accent;
|
||||
border:2rem solid var(--color-track);
|
||||
border-top-color:var(--color-accent);
|
||||
animation: spin .5s linear infinite;
|
||||
}
|
||||
#status {
|
||||
|
|
@ -182,18 +182,27 @@ i {
|
|||
padding:10%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background:rgba($color-bg,.5);
|
||||
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:$color-raised;
|
||||
background:var(--color-raised);
|
||||
.closer {
|
||||
position:absolute;
|
||||
right:0rem;
|
||||
top:0;
|
||||
padding:15rem;
|
||||
color:$color-text-fade;
|
||||
color:var(--color-text-fade);
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
|
@ -201,13 +210,13 @@ i {
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
background:$color-fg;
|
||||
background:var(--color-fg);
|
||||
width:auto;
|
||||
max-width:600rem;
|
||||
margin:0 auto;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border:1rem solid $color-border;
|
||||
border:1rem solid var(--color-track);
|
||||
.popup-content {
|
||||
height:100%;
|
||||
width:100%;
|
||||
|
|
|
|||
|
|
@ -39,11 +39,12 @@
|
|||
content:"";
|
||||
width:100%;
|
||||
height:100%;
|
||||
background:$color-track;
|
||||
background:var(--color-track);
|
||||
z-index: 1;
|
||||
position: relative;
|
||||
display:block;
|
||||
box-shadow: 0 0 0 15rem $color-fg;
|
||||
box-shadow: 0 0 0 15rem;
|
||||
color: var(--color-fg);
|
||||
}
|
||||
.handle {
|
||||
position: absolute;
|
||||
|
|
@ -123,7 +124,7 @@
|
|||
height:1%;
|
||||
width:38rem;
|
||||
margin-left:-19rem;
|
||||
background: linear-gradient($color-text,transparent 1rem);
|
||||
background: linear-gradient(var(--color-text),transparent 1rem);
|
||||
|
||||
&.val {
|
||||
position: relative;
|
||||
|
|
@ -138,7 +139,7 @@
|
|||
line-height: 12rem;
|
||||
left:44rem;
|
||||
top:-5.5rem;
|
||||
color:$color-text-fade;
|
||||
color:var(--color-text-fade);
|
||||
&:last-child {
|
||||
left:auto;
|
||||
right:44rem;
|
||||
|
|
@ -213,7 +214,7 @@
|
|||
height:4rem;
|
||||
margin-bottom:5rem;
|
||||
margin-left:0;
|
||||
background: linear-gradient(90deg,$color-text,transparent 1rem );
|
||||
background: linear-gradient(90deg,var(--color-text),transparent 1rem );
|
||||
&.val {
|
||||
width:1%;
|
||||
height:10rem;
|
||||
|
|
|
|||
|
|
@ -55,8 +55,7 @@
|
|||
right:0;
|
||||
bottom:0;
|
||||
border-radius:100%;
|
||||
border:4rem solid $color-track;
|
||||
box-shadow: 0 0 0 1rem mix($color-text,$color-fg,2),0 0 0 1rem mix($color-text,$color-fg,2) inset,0 0 1rem 1rem mix($color-text,$color-fg,2),0 0 1rem 1rem mix($color-text,$color-fg,2) inset;
|
||||
border:4rem solid var(--color-track);
|
||||
transform: rotate(45deg);
|
||||
z-index:4;
|
||||
}
|
||||
|
|
@ -67,8 +66,8 @@
|
|||
border-bottom-color: transparent;
|
||||
}
|
||||
.knob:after {
|
||||
border-color: $color-track;
|
||||
border-left-color: $color-accent;
|
||||
border-color: var(--color-track);
|
||||
border-left-color: var(--color-accent);
|
||||
border-top-color: var(--color-accent);
|
||||
}
|
||||
}
|
||||
|
|
@ -79,7 +78,7 @@
|
|||
border-top-color: transparent;
|
||||
}
|
||||
.knob:after {
|
||||
border-color: $color-track;
|
||||
border-color: var(--color-track);
|
||||
border-right-color: var(--color-accent);
|
||||
border-bottom-color: var(--color-accent);
|
||||
}
|
||||
|
|
@ -93,7 +92,7 @@
|
|||
bottom:-2rem;
|
||||
border-radius:100%;
|
||||
border:12rem solid transparent;
|
||||
border-bottom-color: $color-fg;
|
||||
border-bottom-color: var(--color-fg);
|
||||
z-index:4;
|
||||
}
|
||||
}
|
||||
|
|
@ -104,8 +103,9 @@
|
|||
right:16rem;
|
||||
bottom:16rem;
|
||||
border-radius:100%;
|
||||
background:$color-raised;
|
||||
box-shadow: 0 2rem 0 0 $color-faded;
|
||||
background:var(--color-raised);
|
||||
box-shadow: 0 2rem 0 0;
|
||||
color:var(--color-faded);
|
||||
}
|
||||
.knob {
|
||||
position:absolute;
|
||||
|
|
@ -125,7 +125,7 @@
|
|||
right:0;
|
||||
bottom:0;
|
||||
border-radius:100%;
|
||||
border:4rem solid $color-track;
|
||||
border:4rem solid var(--color-track);
|
||||
border-bottom-color: var(--color-accent);
|
||||
}
|
||||
|
||||
|
|
@ -178,7 +178,7 @@
|
|||
.pip {
|
||||
position:absolute;
|
||||
font-size:11rem;
|
||||
color:$color-text;
|
||||
color:var(--color-text);
|
||||
pointer-events: none;
|
||||
top:50%;
|
||||
margin-top:30%;
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
background: $color-bg;
|
||||
background: var(--color-bg);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: row;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
width:100%;
|
||||
position: absolute;
|
||||
bottom:0;
|
||||
border-top: 1rem solid $color-bg;
|
||||
border-top: 1rem solid var(--color-bg);
|
||||
}
|
||||
.input, input {
|
||||
width:50%;
|
||||
|
|
@ -36,7 +36,7 @@
|
|||
height:100%;
|
||||
overflow: hidden;
|
||||
cursor: -webkit-grab;
|
||||
background:rgba($color-bg,.5);
|
||||
background:var(--color-faded);
|
||||
&:active {
|
||||
cursor: -webkit-grabbing;
|
||||
.handle:after,.handle:before {
|
||||
|
|
@ -119,7 +119,7 @@
|
|||
right:-4rem;
|
||||
height:8rem;
|
||||
width:8rem;
|
||||
background:$color-text;
|
||||
background:var(--color-text);
|
||||
border:none!important;
|
||||
border-radius: 100%!important;
|
||||
}
|
||||
|
|
@ -132,7 +132,7 @@
|
|||
width:20rem;
|
||||
border:none!important;
|
||||
border-radius: 100%!important;
|
||||
background:$color-text;
|
||||
background:var(--color-text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -177,7 +177,7 @@
|
|||
border:none!important;
|
||||
border-radius: 100%!important;
|
||||
box-shadow: none;
|
||||
background:$color-text;
|
||||
background:var(--color-text);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
min-height: 200rem;
|
||||
|
||||
::-webkit-scrollbar-thumb, ::-webkit-scrollbar-track-piece {
|
||||
border-top: 1rem solid $color-bg;
|
||||
border-top: 1rem solid var(--color-bg);
|
||||
}
|
||||
|
||||
&.nolabel .panel {
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
left:1rem;
|
||||
right:1rem;
|
||||
bottom:1rem;
|
||||
background: $color-bg;
|
||||
background: var(--color-bg);
|
||||
z-index: 1;
|
||||
|
||||
&.has-tabs {
|
||||
|
|
@ -44,10 +44,10 @@
|
|||
border-top: 0;
|
||||
background: transparent;
|
||||
&:after {
|
||||
background: $color-bg;
|
||||
background: var(--color-bg);
|
||||
}
|
||||
a.on {
|
||||
border-color: $color-bg;
|
||||
border-color: var(--color-bg);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,22 +10,29 @@
|
|||
height: 100%;
|
||||
padding:10rem 0;
|
||||
overflow: hidden;
|
||||
|
||||
|
||||
div {
|
||||
border-radius: 100%;
|
||||
width:calc(100% - 20rem);
|
||||
padding-bottom:calc(100% - 20rem);
|
||||
margin: 0 auto;
|
||||
background:$color-border;
|
||||
background:var(--color-track);
|
||||
position: relative;
|
||||
span {
|
||||
position: absolute;
|
||||
top:-1rem;left:-1rem;right:-1rem;bottom:-1rem;
|
||||
top:0;left:0;right:0;bottom:0;
|
||||
border-radius: 100%;
|
||||
|
||||
display:block;
|
||||
background-color:var(--color-accent);
|
||||
border: 5rem solid rgba($color-fg,.8);
|
||||
&: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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -68,7 +75,7 @@
|
|||
left:1rem;
|
||||
right:1rem;
|
||||
bottom:1rem;
|
||||
background: $color-bg;
|
||||
background: var(--color-bg);
|
||||
|
||||
.level {
|
||||
position: absolute;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
flex-shrink: 0;
|
||||
padding:0!important;
|
||||
|
||||
background: $color-raised;
|
||||
background: var(--color-raised);
|
||||
|
||||
.label {
|
||||
position: absolute;
|
||||
|
|
@ -28,9 +28,9 @@
|
|||
|
||||
.push {
|
||||
&.on {
|
||||
background: $color-fg;
|
||||
background: var(--color-fg);
|
||||
}
|
||||
border-bottom:4rem solid $color-fg;
|
||||
border-bottom:4rem solid var(--color-fg);
|
||||
.light {
|
||||
position: absolute;
|
||||
left:auto;
|
||||
|
|
|
|||
|
|
@ -39,7 +39,6 @@
|
|||
height:auto;
|
||||
display: block;
|
||||
border-right:0;
|
||||
// margin-bottom: $gutter;
|
||||
.strip {
|
||||
flex-direction: row;
|
||||
> .widget {
|
||||
|
|
@ -59,7 +58,7 @@
|
|||
left:0;
|
||||
top:0;
|
||||
border-bottom:0;
|
||||
border-right:1rem solid $color-bg;
|
||||
border-right:1rem solid var(--color-bg);
|
||||
span {
|
||||
transform: rotate(180deg);
|
||||
display: block;
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
justify-content: center;
|
||||
flex-direction: column;
|
||||
border-top:0;
|
||||
border-right:1rem solid $color-bg;
|
||||
border-right:1rem solid var(--color-bg);
|
||||
&:last-child {
|
||||
border-right:0;
|
||||
}
|
||||
|
|
@ -38,18 +38,18 @@
|
|||
}
|
||||
}
|
||||
.value {
|
||||
background:$color-raised;
|
||||
color:$color-text;
|
||||
background:var(--color-raised);
|
||||
color:var(--color-text);
|
||||
width:100%;
|
||||
height:100%;
|
||||
position: relative;
|
||||
border-top: 1rem solid $color-bg;
|
||||
border-top: 1rem solid var(--color-bg);
|
||||
padding:12rem 12rem 12rem 24rem ;
|
||||
white-space: normal;
|
||||
text-align: left;
|
||||
word-break: break-all;
|
||||
overflow: hidden;
|
||||
border-bottom:2rem solid $color-faded;
|
||||
border-bottom:2rem solid var(--color-faded);
|
||||
|
||||
&:first-child {
|
||||
border-top:0;
|
||||
|
|
@ -66,7 +66,7 @@
|
|||
width:8rem;
|
||||
height:8rem;
|
||||
margin-top: -4rem;
|
||||
background: $color-track;
|
||||
background: var(--color-track);
|
||||
border-radius: 8rem;
|
||||
}
|
||||
&.on:before {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
min-height: 65rem;
|
||||
flex-shrink: 0;
|
||||
padding:0!important;
|
||||
background: $color-raised;
|
||||
background: var(--color-raised);
|
||||
|
||||
.label {
|
||||
position: absolute;
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
border-bottom:4rem solid $color-fg;
|
||||
border-bottom:4rem solid var(--color-fg);
|
||||
|
||||
.light {
|
||||
position: absolute;
|
||||
|
|
@ -44,7 +44,7 @@
|
|||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
background: $color-track;
|
||||
background: var(--color-track);
|
||||
}
|
||||
}
|
||||
&.on .light:after {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue