mirror of
https://github.com/tomfran/typo.git
synced 2025-04-26 13:39:55 +03:00
Theme Update
This commit is contained in:
parent
68f1baa172
commit
303266ac28
3 changed files with 18 additions and 1 deletions
|
@ -308,3 +308,11 @@ footer a {
|
|||
.not-found div h1 {
|
||||
font-size: 6rem;
|
||||
}
|
||||
|
||||
.dark-toggle svg path {
|
||||
fill: var(--background) !important;
|
||||
}
|
||||
|
||||
.dark-toggle svg text {
|
||||
fill: var(--content) !important;
|
||||
}
|
|
@ -27,5 +27,14 @@
|
|||
|
||||
</body>
|
||||
|
||||
<script>
|
||||
|
||||
function toggleTheme() {
|
||||
document.body.classList.toggle('light');
|
||||
document.body.classList.toggle('dark');
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
</html>
|
|
@ -15,6 +15,6 @@
|
|||
</p>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue