ui: vars clean, meter fixes, + misc and use former color scheme

This commit is contained in:
jean-emmanuel 2017-06-21 01:21:06 +02:00
parent 59a33283b0
commit 99c6f5d466
4 changed files with 19 additions and 63 deletions

View file

@ -1,67 +1,30 @@
$base: #528bff;
$accent: adjust_hue($base, -10);
:root {
/*
--color-text:rgba(white,.8);
--color-text-fade:rgba(white,0.5);
--color-accent:$accent;
--color-custom:var(--color-accent);
--color-grid: transparentize($accent, 0.9);
--color-fg: darken(desaturate($base,75%),45%);
--color-bg: darken(desaturate($base,75%),53%);
--color-light:rgba(lighten($accent,10%),.1);
--color-raised: mix(darken(desaturate($base,75%),45%), lighten($accent,10%), 90%);
--color-faded: darken(desaturate($base,70%),46%);
// deprecated
--color-raised:var(--color-light);
--color-track: var(--color-bg);
--nav-height:40rem;
--sidepanel-size:300rem;
--scrollbar-size:20rem;
--pixel-scale:1;
--grid-width:10;
--display-input:none; // Hides widgets' numeric inputs
*/
////////////////////// COLOR SCHEME
--color-text:rgba(white,.8);
--color-text-fade:rgba(white,0.5);
$accent:#52a8ff;
--color-fg: #283143;
--color-bg: #191f2a;
--color-raised: #313f55;
--color-track: #20293a;
// --color-accent:#13dbe2;
--color-accent:$accent;
--color-custom:var(--color-accent);
--color-grid: transparentize($accent, 0.9);
--color-fg: #313c49;
--color-bg: #1e2833;
--color-raised: #3d4956;
--color-track: #222d38;
--color-light:rgba(white, .06);
////////////////////// AUTO
--color-custom:var(--color-accent);
--color-accent:$accent;
--color-grid: transparentize($accent, 0.9);
////////////////////// DEPRECATED
--color-raised-2: red;
--color-faded: pink;
////////////////////// MISC
--nav-height:40rem;
--sidepanel-size:300rem;

View file

@ -139,7 +139,7 @@ i {
text-transform: uppercase;
letter-spacing: 2.5rem;
box-shadow: 0 1rem 0 0 var(--color-light) inset;
box-shadow: 0 0 0 1rem var(--color-light) inset;
}
.footer {
background: var(--color-fg);

View file

@ -50,7 +50,7 @@
.pips {
width: 3rem;
background-color: var(--color-raised);
background-color: var(--color-light);
position: relative;
margin: 16rem 12rem 16rem 5rem;

View file

@ -50,19 +50,12 @@
.meter-container {
@extend .fader-container;
--color-custom:var(--color-accent);
--color-gauge: var(--color-custom);
--color-knob: transparent;
width:100rem;
padding:1rem;
&.horizontal {
height: 130rem;
}
.fader {
border:1rem solid var(--color-bg);
}
canvas {
image-rendering:pixelated;
.wrapper {
pointer-events: none;
}
}