mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
Added light theme support
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user