2603.11 added dark/light mode
This commit is contained in:
@@ -54,6 +54,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
.login-box form { max-width: 100%; }
|
||||
.login-box button[type=submit] { width: 100%; margin-top: .25rem; }
|
||||
</style>
|
||||
<script>document.documentElement.setAttribute('data-theme',localStorage.getItem('theme')||'dark')</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="login-wrap">
|
||||
@@ -75,6 +76,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
<button type="submit">Sign in</button>
|
||||
</form>
|
||||
</div>
|
||||
<div style="text-align:center;margin-top:.75rem">
|
||||
<?php include __DIR__ . '/includes/theme_toggle.php'; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php include __DIR__ . '/includes/footer.php'; ?>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user