Added light theme support

This commit is contained in:
2025-10-19 00:12:31 +02:00
parent 0cf1d8ad95
commit 402fd81e4e
2 changed files with 6 additions and 2 deletions

View File

@@ -19,6 +19,10 @@
<link rel="stylesheet" href="~/Berufsschule_HAM.styles.css" asp-append-version="true" />
</head>
<body data-bs-theme="dark">
<script>
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
document.body.setAttribute('data-bs-theme', prefersDark ? 'dark' : 'light');
</script>
<header>
<nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar bg border-bottom box-shadow mb-3">
<a href="#main-content" class="skip-link btn btn-primary">@T["Jump to content"]</a>
@@ -98,4 +102,4 @@
<script src="~/js/site.js" asp-append-version="true" defer></script>
@await RenderSectionAsync("Scripts", required: false)
</body>
</html>
</html>