Minor UI improvements

This commit is contained in:
Daniel 2023-01-15 17:22:09 +01:00
parent a196061d05
commit 6e6cf39e35
3 changed files with 32 additions and 52 deletions

View File

@ -10,10 +10,10 @@ This will be a dashboard hosted on my homeserver with self-hosted stuff. But, fo
- [x] Apply config for the rest stuff (data shown in More page, default user settings) - [x] Apply config for the rest stuff (data shown in More page, default user settings)
- [ ] Make 'Security' module functional - [ ] Make 'Security' module functional
- [ ] Security screen on/off - [ ] Security screen on/off
- [ ] CSS global color variables for easier theming - [x] CSS global color variables for easier theming
- [ ] Fix blur flicker on showing/hiding pages - [ ] Fix blur flicker on showing/hiding pages
- [x] Open in new tab setting - [x] Open in new tab setting
- [ ] Better icon colors in 'More' page - [x] Better icon colors in 'More' page
- [ ] Minor code optimizations - [ ] Minor code optimizations
blah blah blah blah blah blah

View File

@ -1,40 +1,12 @@
body { html {
color: #EEE; --color: #EEE;
} --background: #1118;
a { --bg2: #0008;
color: #BBF; --hover: #FFF1;
}
.wrapper {
background: #1118;
}
.buttons {
background: #1118;
}
.buttons > div:hover {
background: #FFF1;
}
.back {
background: #1118;
}
.back .icon:hover {
background: #FFF1;
}
.box:hover {
background: #FFF1;
} }
.box .icon { .box .icon {
background: hsl(var(--color), 100%, 18%); background: hsl(var(--color), 100%, 80%);
color: hsl(var(--color), 100%, 85%); color: hsl(var(--color), 100%, 28%);
}
.selector {
position: relative;
background: #0008;
}
.selector .bg {
background: #FFF1;
}
.setting {
background: #1118;
} }
.setting:hover { .setting:hover {
background: #2228; background: #2228;

View File

@ -5,9 +5,17 @@
src: url(../font/MaterialSymbolsRounded.woff2) format('woff2'); src: url(../font/MaterialSymbolsRounded.woff2) format('woff2');
} }
html {
--color: #222;
--background: #EEE8;
--bg2: #FFF8;
--hover: #0001;
--scale-factor: 1.15;
}
body { body {
background: #000; background: #000;
color: #222; color: var(--color);
margin: 0; margin: 0;
font-family: Quicksand; font-family: Quicksand;
font-weight: bold; font-weight: bold;
@ -16,7 +24,7 @@ body {
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;
} }
::-webkit-scrollbar { ::-webkit-scrollbar {
display: none; display: none;
} }
a { a {
color: #44F; color: #44F;
@ -53,7 +61,7 @@ a {
transition: transform .4s, opacity .4s !important; transition: transform .4s, opacity .4s !important;
} }
#background.scaled img { #background.scaled img {
transform: scale(1.14); transform: scale(var(--scale-factor));
} }
#background.dark > img:first-child { #background.dark > img:first-child {
opacity: 0; opacity: 0;
@ -64,10 +72,10 @@ a {
transform: none; transform: none;
} }
#background.dark:not(.scaled) > img:first-child { #background.dark:not(.scaled) > img:first-child {
transform: scale(1.14); transform: scale(var(--scale-factor));
} }
#background:not(.dark):not(.scaled) > img:last-child { #background:not(.dark):not(.scaled) > img:last-child {
transform: scale(1.14); transform: scale(var(--scale-factor));
} }
.unloaded { .unloaded {
opacity: 0; opacity: 0;
@ -115,7 +123,7 @@ a {
} }
.wrapper { .wrapper {
box-shadow: 2px 2px 8px #0003; box-shadow: 2px 2px 8px #0003;
background: #EEE8; background: var(--background);
padding: 3px; padding: 3px;
backdrop-filter: blur(16px); backdrop-filter: blur(16px);
border-radius: 24px; border-radius: 24px;
@ -148,7 +156,7 @@ a {
backdrop-filter: blur(16px); backdrop-filter: blur(16px);
border-radius: 24px; border-radius: 24px;
max-width: 480px; max-width: 480px;
background: #EEE8; background: var(--background);
padding: 2px; padding: 2px;
justify-content: space-between; justify-content: space-between;
transition: background .3s; transition: background .3s;
@ -162,7 +170,7 @@ a {
transition: background .2s; transition: background .2s;
} }
.buttons > div:hover { .buttons > div:hover {
background: #0001; background: var(--hover);
} }
.buttons .text { .buttons .text {
margin-top: -2px; margin-top: -2px;
@ -174,7 +182,7 @@ a {
width: 64px; width: 64px;
height: 64px; height: 64px;
border-radius: 24px; border-radius: 24px;
background: #EEE8; background: var(--background);
margin: 20px; margin: 20px;
backdrop-filter: blur(16px); backdrop-filter: blur(16px);
transition: background .2s; transition: background .2s;
@ -189,7 +197,7 @@ a {
transition: background .2s; transition: background .2s;
} }
.back .icon:hover { .back .icon:hover {
background: #0001; background: var(--hover);
} }
.back .icon:after { .back .icon:after {
content: "chevron_left"; content: "chevron_left";
@ -224,12 +232,12 @@ a {
transition: background .2s; transition: background .2s;
} }
.box:hover { .box:hover {
background: #0001; background: var(--hover);
} }
.box .icon { .box .icon {
font-size: 24px; font-size: 24px;
padding: 20px; padding: 20px;
background: hsl(var(--color), 100%, 90%); background: hsl(var(--color), 100%, 89%);
color: hsl(var(--color), 100%, 35%); color: hsl(var(--color), 100%, 35%);
border-radius: 100px; border-radius: 100px;
margin: 2px 12px 2px 2px; margin: 2px 12px 2px 2px;
@ -265,7 +273,7 @@ a.box {
.selector { .selector {
position: relative; position: relative;
background: #FFF8; background: var(--bg2);
margin: 18px auto; margin: 18px auto;
border-radius: 16px; border-radius: 16px;
display: flex; display: flex;
@ -279,7 +287,7 @@ a.box {
position: absolute; position: absolute;
width: calc(100% / var(--screens) - 8px); width: calc(100% / var(--screens) - 8px);
height: calc(100% - 8px); height: calc(100% - 8px);
background: #0001; background: var(--hover);
top: 50%; top: 50%;
left: 0; left: 0;
margin-left: 4px; margin-left: 4px;
@ -344,7 +352,7 @@ a.box {
margin: 12px 16px 32px; margin: 12px 16px 32px;
} }
.setting { .setting {
background: #FFF8; background: var(--bg2);
max-width: 640px; max-width: 640px;
border-radius: 16px; border-radius: 16px;
margin: 8px auto; margin: 8px auto;