mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-10-18 17:08:11 +00:00
[Web] Update Bootstrap to 5.3.8, add theme support
This commit is contained in:
18 files changed
+4120
-3095
No files matched your search
@@ -10,6 +10,7 @@
|
||||
|
||||
<link rel="stylesheet" href="{{ css_path }}">
|
||||
<script>
|
||||
var mailcow_dark_css = '{{ dark_css_path }}';
|
||||
// check if darkmode is preferred by OS or set by localStorage
|
||||
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches && localStorage.getItem("mailcow_theme") !== "light" ||
|
||||
localStorage.getItem("mailcow_theme") === "dark") {
|
||||
@@ -18,7 +19,7 @@
|
||||
link.id = 'dark-mode-theme';
|
||||
link.rel = 'stylesheet';
|
||||
link.type = 'text/css';
|
||||
link.href = '/css/themes/mailcow-darkmode.css';
|
||||
link.href = mailcow_dark_css;
|
||||
head.appendChild(link);
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in new issue
Block a user