settings: refactor settings store

read-only: pass flag with index.html response
theme: clean & remove old themes
This commit is contained in:
bordun 2020-03-20 12:57:47 +01:00
parent 1b73dbfaa5
commit 4a30b98cd0
23 changed files with 203 additions and 418 deletions

View file

@ -1,35 +0,0 @@
.widget.push-container.on .toggle:before,
.widget.modal-container.on > .toggle:before,
.widget.switch-container .value.on:before,
.widget.switcher-container .value.on:before,
.widget.crossfader-container .value.on:before,
.widget.toggle-container.on:not(.led) .toggle:before {
z-index: 1;
opacity: .5;
}
.widget.push-container.on,
.widget.modal-container.on,
.widget.switch-container .value.on,
.widget.switcher-container .value.on,
.widget.crossfader-container .value.on,
.widget.toggle-container.on:not(.led) {
background : var(--color-custom);
color: var(--color-bg);
font-weight: 900;
}
.widget.modal-container.on > .label,
.widget.toggle-container.on:not(.led) > .label {
color: var(--color-bg);
}
.widget.push-container.active:not(.on) > .label {
color: var(--color-custom);
}
.widget.modal-container.on .popup {
color: var(--color-text);
font-weight: 500;
}

View file

@ -1,46 +0,0 @@
$base: #0e1215;
$accent: #1585f6;
$tone: #799;
$text: white;
:root {
////////////////////// COLOR SCHEME
--color-text: #{transparentize($text, .4)};
--color-text-fade: #{transparentize($text, .6)};
--color-accent: #{$accent};
--color-grid: #{transparentize($accent, 0.95)};
--color-bg: #{$base};
--color-track: #{desaturate(mix($base, $tone, 95), 2)};
--color-fg: #161a1d;
--color-raised: #171c20;
--color-light: #{desaturate(transparentize($tone, 0.95), 50)};
--color-white: white;
////////////////////// AUTO
--color-custom: var(--color-accent);
////////////////////// GLASS EFFET
--color-glass: var(--color-accent);
--glass-opacity: 0.03;
////////////////////// MISC
--nav-height:40rem;
--sidepanel-size:300rem;
--scrollbar-size:20rem;
--grid-width:10;
}
.keyboard-container {
--color-black: #555;
}

View file

@ -1,31 +1,15 @@
$base: rgb(25, 31, 42);
$accent: rgb(82, 168, 255);
$tone: rgb(104, 174, 245);
$text: white;
:root {
////////////////////// old colors
--color-text-fade: pink;
--color-bg: pink;
--color-track: pink;
--color-fg: pink;
--color-raised: pink;
--color-light: pink;
--color-custom: pink;
--color-white: white;
////////////////////// MISC
--nav-height: 40rem;
--grid-width: 10;
--color-text: #{transparentize($text, .4)};
--color-accent: #{$accent};
--color-background: #{$base};
--color-ui-background: #{mix($base, black, 85)};
@ -38,14 +22,13 @@ $text: white;
--alpha-scrollbar: 0.25;
--alpha-scrollbar-on: 0.5;
--scrollbar-size:12rem;
--scrollbar-size: 12rem;
--color-text-solid: #{$text};
--color-text: #{transparentize($text, .4)};
--color-accent: #{$accent};
--color-widget: var(--color-accent);
}

View file

@ -1,29 +0,0 @@
.toggle-container,
.push-container,
.modal-container {
> .toggle:not(.on):before {
box-shadow: 0 0 0 1rem var(--color-light) inset!important;
}
}
.switch-container .switch .value,
.switcher-container .switch .value,
.dropdown-container .select select {
box-shadow: 0 0 0 1rem var(--color-light) inset!important;
}
.toggle-container .toggle.on:after,
.modal-container > .toggle.on:after,
.push-container .toggle.active:after,
.switch-container .switch .value.on:after {
background: var(--color-bg)
}
.navigation .tablink.on a:before {
background: var(--color-bg);
}
.widget {
--color-glass-1: var(--color-custom);
--color-glass-2: var(--color-custom);
}

View file

@ -1,51 +0,0 @@
$base: rgb(200, 200, 200);
$accent: rgb(0, 200, 200);
$tone: white;
$text: black;
:root {
////////////////////// COLOR SCHEME
--color-text: #{transparentize($text, .4)};
--color-text-fade: #{transparentize($text, .6)};
--color-accent: #{$accent};
--color-grid: #{transparentize($accent, 0.95)};
--color-bg: #{$base};
--color-track: #{desaturate(mix($base, $tone, 40), 2)};
--color-fg: #{desaturate(mix($base, $tone, 30), 5)};
--color-raised: #{desaturate(mix($base, $tone, 20), 5)};
--color-light: #{desaturate(transparentize($tone, 0.90), 50)};
--color-white: white;
////////////////////// AUTO
--color-custom: var(--color-accent);
////////////////////// GLASS EFFET
--glass-opacity: 0.05;
////////////////////// MISC
--nav-height:40rem;
--sidepanel-size:300rem;
--scrollbar-size:20rem;
--grid-width:10;
}
.widget {
--color-glass: white;
}
.keyboard-container {
--color-black-key: #333;
--color-white-key: #fff;
}

View file

@ -1,36 +0,0 @@
$base: #181818;
$accent: #d98533;
$tone: rgb(200, 200, 200);
$text: white;
:root {
////////////////////// COLOR SCHEME
--color-text: #{transparentize($text, .4)};
--color-text-fade: #{transparentize($text, .6)};
--color-accent: #{$accent};
--color-grid: #{transparentize($accent, 0.95)};
--color-bg: #{$base};
--color-track: #{desaturate(mix($base, $tone, 95), 2)};
--color-fg: #{desaturate(mix($base, $tone, 88), 5)};
--color-raised: #{desaturate(mix($base, $tone, 75), 5)};
--color-light: #{desaturate(transparentize($tone, 0.90), 50)};
--color-white: white;
////////////////////// AUTO
--color-custom: var(--color-accent);
////////////////////// MISC
--nav-height:40rem;
--sidepanel-size:300rem;
--scrollbar-size:20rem;
--grid-width:10;
}

View file

@ -1,11 +0,0 @@
@media screen and (min-width:768px) {
body > * {
font-size: 120%
}
}
@media screen and (min-width:1024px) {
body > * {
font-size: 140%
}
}