slight tweaks
This commit is contained in:
parent
b25eb372d2
commit
3b4716d695
2 changed files with 20 additions and 0 deletions
|
@ -90,6 +90,14 @@ ol {
|
||||||
padding-left: 15px;
|
padding-left: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
background: none;
|
||||||
|
border: 1px solid var(--accent);
|
||||||
|
outline: none;
|
||||||
|
width: 90vw;
|
||||||
|
max-width: 500px;
|
||||||
|
}
|
||||||
|
|
||||||
input[type="submit"]:focus,
|
input[type="submit"]:focus,
|
||||||
button:focus {
|
button:focus {
|
||||||
outline-color: var(--accent);
|
outline-color: var(--accent);
|
||||||
|
@ -109,6 +117,11 @@ button:active {
|
||||||
.block { display: block; }
|
.block { display: block; }
|
||||||
.inline-block { display: inline-block; }
|
.inline-block { display: inline-block; }
|
||||||
|
|
||||||
|
.no-margin { margin: 0; }
|
||||||
|
.no-padding { padding: 0; }
|
||||||
|
.no-border { border: none; }
|
||||||
|
.no-outline { outline: none; }
|
||||||
|
|
||||||
#container {
|
#container {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
|
|
@ -3,10 +3,17 @@ let light, useAutoTheme;
|
||||||
light = _themeMM.matches;
|
light = _themeMM.matches;
|
||||||
|
|
||||||
function setTheme() {
|
function setTheme() {
|
||||||
|
let favicon = document.getElementById("favicon");
|
||||||
|
let fLink = favicon.href.split("/");
|
||||||
|
|
||||||
if (light) {
|
if (light) {
|
||||||
document.documentElement.setAttribute("data-light", "");
|
document.documentElement.setAttribute("data-light", "");
|
||||||
|
fLink[fLink.length - 3] = "light";
|
||||||
|
favicon.href = fLink.join("/");
|
||||||
} else {
|
} else {
|
||||||
document.documentElement.removeAttribute("data-light");
|
document.documentElement.removeAttribute("data-light");
|
||||||
|
fLink[fLink.length - 3] = "dark";
|
||||||
|
favicon.href = fLink.join("/");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue