Skip to content

Commit

Permalink
Port frontend to Bootstrap 5.3, split components
Browse files Browse the repository at this point in the history
Signed-off-by: Knut Ahlers <knut@ahlers.me>
  • Loading branch information
Luzifer committed Sep 30, 2023
1 parent b8fd877 commit 8c0807d
Show file tree
Hide file tree
Showing 14 changed files with 814 additions and 831 deletions.
5 changes: 2 additions & 3 deletions frontend/index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<!doctype html>
<html lang="en">
<html lang="en" data-bs-theme="light">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

{{ range (list "webfonts/fa-solid-900.woff2" "webfonts/fa-brands-400.woff2" "lato-v20-latin-ext_latin-regular.woff2" "lato-v20-latin-ext_latin-700.woff2") }}
Expand Down Expand Up @@ -35,7 +34,7 @@
window.getTheme = () => localStorage.getItem('set-color-scheme') || (window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark')

window.refreshTheme = () => {
document.querySelector('html').setAttribute('mode', window.getTheme())
document.querySelector('html').setAttribute('data-bs-theme', window.getTheme())
}

window.setTheme = (theme) => {
Expand Down
Loading

0 comments on commit 8c0807d

Please sign in to comment.