Implement Light Mode (Beige) via alternate SASS compilation and runtime switching
This commit is contained in:
@@ -3,8 +3,14 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
|
||||
<!-- Load resources -->
|
||||
<link rel="stylesheet" href="assets/css/main.min.css" />
|
||||
<noscript><link rel="stylesheet" href="assets/css/noscript.min.css" /></noscript>
|
||||
<link rel="stylesheet" id="theme-style" href="assets/css/main.min.css" />
|
||||
<script>
|
||||
var theme = localStorage.getItem('mischkomposition_theme');
|
||||
if (theme === 'light') {
|
||||
document.getElementById('theme-style').href = 'assets/css/light.min.css';
|
||||
}
|
||||
</script>
|
||||
<noscript><link rel="stylesheet" href="assets/css/main.min.css" /></noscript>
|
||||
<link rel="stylesheet" href="assets/css/custom.min.css" />
|
||||
|
||||
<link rel="stylesheet" href="/assets/css/fontawesome-all.min.css">
|
||||
|
||||
Reference in New Issue
Block a user