Skip to content

Commit

Permalink
Fix flicker on navigation in docs when using dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tcbegley authored and tbegley-ccmlp committed Apr 22, 2024
1 parent 6830e8d commit b8d0f8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
9 changes: 3 additions & 6 deletions docs/templates/partials/head.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
<!-- sets correct theme on page refresh -->
<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>
1 change: 0 additions & 1 deletion docs/templates/partials/scripts.html
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()
Expand Down

0 comments on commit b8d0f8e

Please sign in to comment.