-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix flicker on navigation in docs when using dark mode
- Loading branch information
1 parent
6830e8d
commit 7e65086
Showing
2 changed files
with
7 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
<!-- sets correct theme on page refresh --> | ||
<!-- <script> | ||
dbcdStoredTheme = localStorage.getItem('theme') | ||
document.documentElement.setAttribute('data-bs-theme', dbcdStoredTheme) | ||
</script> --> | ||
<script src="/static/js/docs-theme-change.js"></script> | ||
|
||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/styles/tomorrow-night-eighties.min.css" /> | ||
<link rel="stylesheet" href="/static/docs.css" /> | ||
<link rel="shortcut icon" type="image/png" href="/static/images/dbciconwhite16.png" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" /> | ||
|
||
<!-- sets correct theme on page refresh --> | ||
<script> | ||
dbcdStoredTheme = localStorage.getItem('theme') | ||
document.documentElement.setAttribute('data-bs-theme', dbcdStoredTheme) | ||
</script> |
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,6 +1,5 @@ | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script> | ||
<script src="/static/js/highlight.min.js"></script> | ||
<script src="/static/js/docs-theme-change.js"></script> | ||
<script> | ||
hljs.configure({ignoreUnescapedHTML: true}) | ||
hljs.highlightAll() | ||
|