Merge pull request #25 from LuigiImVector/style-edits

pull/26/head
Brogan Clements 2022-07-04 15:50:08 -04:00 committed by GitHub
commit 25e04a6044
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -102,6 +102,7 @@ th {
img { img {
max-width:100%; max-width:100%;
cursor: pointer;
} }
header { header {
@ -109,6 +110,8 @@ header {
float:left; float:left;
position:fixed; position:fixed;
-webkit-font-smoothing:subpixel-antialiased; -webkit-font-smoothing:subpixel-antialiased;
background-color: white;
z-index: 10;
} }
header ul { header ul {
@ -375,8 +378,13 @@ form {
margin-left: 1em; margin-left: 1em;
width: 1.5em; width: 1.5em;
height: 1.7em; height: 1.7em;
cursor: pointer;
} }
.langFilters { .langFilters {
margin-top: 0.5em; margin-top: 0.5em;
} }
.filters input {
cursor: pointer;
}

View File

@ -11,10 +11,16 @@ export const swapMode = (theme) => {
switch (theme) { switch (theme) {
case themes.light: case themes.light:
document.body.classList.add('dark-content'); document.body.classList.add('dark-content');
setTimeout(() => {
document.getElementsByClassName('header')[0].classList.add('dark-content');
}, 0);
break; break;
case themes.dark: case themes.dark:
default: default:
document.body.classList.remove('dark-content'); document.body.classList.remove('dark-content');
setTimeout(() => {
document.getElementsByClassName('header')[0].classList.remove('dark-content');
}, 0);
break; break;
} }
} }