updated for mobile view and dark theme

This commit is contained in:
2026-06-10 12:29:53 +05:30
parent 735e022294
commit c8d2e53a0f
10 changed files with 205 additions and 81 deletions

View File

@@ -6,6 +6,18 @@
<link rel="icon" type="image/png" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>NearleXpress Developer Docs</title>
<script>
// Apply persisted theme before paint to avoid a flash of the wrong theme
(function () {
try {
var stored = localStorage.getItem('theme');
var prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
if (stored === 'dark' || (!stored && prefersDark)) {
document.documentElement.classList.add('dark');
}
} catch (e) {}
})();
</script>
</head>
<body>