Skip to content

Commit

Permalink
Stil fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KTuff committed Oct 24, 2023
1 parent 230d858 commit ba1ec60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@
<script src="https://cdn.jsdelivr.net/npm/vue-router/dist/vue-router.js"></script>
<script src="app.js"></script>
<script>
const html = document.documentElement;
const button = document.getElementById('theme-button');
button.addEventListener('click', () => {
const themeName = localStorage.getItem('theme') || 'light';
Expand All @@ -184,6 +183,7 @@
theme = 'dark';
}

const html = document.documentElement;
html.setAttribute('class', theme);
localStorage.setItem('theme', theme);
});
Expand Down
3 changes: 2 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ table {
body {
print-color-adjust: exact;
height: 100vh;
background: rgb(24, 24, 24);
background: var(--background-color);
}

#app {
Expand Down Expand Up @@ -137,6 +137,7 @@ body {
}

#theme-button {
font-size: inherit;
margin-bottom: 3em;
padding: 0.5em 1em;
margin-left: auto;
Expand Down

0 comments on commit ba1ec60

Please sign in to comment.