-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added color theme support - Added `neon-dark` and `custom-dark` color themes - Added `/settings` endpoint to change color themes client-side
- Loading branch information
Showing
72 changed files
with
2,110 additions
and
1,631 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
a:link { | ||
text-decoration: none; | ||
@font-face { | ||
font-family: "JetBrains Mono"; | ||
src: url("/static/fonts/JetBrainsMono-Light.woff2") format("woff"); | ||
} | ||
|
||
body { | ||
font-family: "JetBrains Mono", serif; | ||
} | ||
|
||
.vertical-navbar { | ||
min-height: 100vh; | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/*! | ||
* Color mode toggler for Bootstrap's docs (https://getbootstrap.com/) | ||
* Copyright 2011-2022 The Bootstrap Authors | ||
* Licensed under the Creative Commons Attribution 3.0 Unported License. | ||
*/ | ||
|
||
(() => { | ||
'use strict'; | ||
|
||
const storedTheme = localStorage.getItem('theme'); | ||
|
||
const getPreferredTheme = function () { | ||
if (storedTheme) { | ||
return storedTheme; | ||
} | ||
|
||
return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'custom-dark' : 'light'; | ||
} | ||
|
||
const setTheme = function (theme) { | ||
if (theme === 'auto' && window.matchMedia('(prefers-color-scheme: dark)').matches) { | ||
document.documentElement.setAttribute('data-bs-theme', 'custom-dark'); | ||
} else { | ||
document.documentElement.setAttribute('data-bs-theme', theme); | ||
} | ||
} | ||
|
||
setTheme(getPreferredTheme()); | ||
|
||
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', () => { | ||
if (storedTheme !== 'light' || storedTheme !== 'custom-dark') { | ||
setTheme(getPreferredTheme()); | ||
} | ||
}); | ||
})() |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.