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

View File

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