Default to light theme and bump version to 0.5.3
This commit is contained in:
parent
0e1660970e
commit
ffd16f0fd5
4 changed files with 8 additions and 8 deletions
|
|
@ -1,3 +1,3 @@
|
|||
"""Single source of truth for the SharedDocsLib package version."""
|
||||
|
||||
__version__ = "0.5.2"
|
||||
__version__ = "0.5.3"
|
||||
|
|
|
|||
|
|
@ -850,7 +850,7 @@
|
|||
}
|
||||
|
||||
async function start() {
|
||||
applyTheme(localStorage.getItem("docslib-theme") || "dark");
|
||||
applyTheme(localStorage.getItem("docslib-theme") || "light");
|
||||
loadAccessibilityPreferences();
|
||||
renderAll();
|
||||
announceRendered();
|
||||
|
|
|
|||
|
|
@ -3,15 +3,15 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
|
||||
<meta name="color-scheme" content="dark light">
|
||||
<meta name="color-scheme" content="light">
|
||||
<title>{{DOCSLIB_TITLE}}</title>
|
||||
<script>
|
||||
try { document.documentElement.dataset.theme = localStorage.getItem("docslib-theme") || "dark"; }
|
||||
catch (_) { document.documentElement.dataset.theme = "dark"; }
|
||||
try { document.documentElement.dataset.theme = localStorage.getItem("docslib-theme") || "light"; }
|
||||
catch (_) { document.documentElement.dataset.theme = "light"; }
|
||||
</script>
|
||||
<style id="docslib-loader-style">
|
||||
:root { --docslib-loader-bg: #000000; --docslib-loader-text: #f4f4f4; color-scheme: dark; }
|
||||
:root[data-theme="light"] { --docslib-loader-bg: #ffffff; --docslib-loader-text: #111111; color-scheme: light; }
|
||||
:root { --docslib-loader-bg: #ffffff; --docslib-loader-text: #111111; color-scheme: light; }
|
||||
:root[data-theme="dark"] { --docslib-loader-bg: #000000; --docslib-loader-text: #f4f4f4; color-scheme: dark; }
|
||||
html, body { width: 100%; height: 100dvh; min-height: 100dvh; margin: 0; overflow: hidden; background: var(--docslib-loader-bg); }
|
||||
#docslib-loading { position: fixed; inset: 0; z-index: 2147483647; display: grid; width: 100vw; height: 100dvh; place-items: center; color: var(--docslib-loader-text); background: var(--docslib-loader-bg); }
|
||||
.docslib-loading-spinner { width: 48px; height: 48px; box-sizing: border-box; border: solid 4px currentColor; border-top: solid 4px transparent; border-radius: 9999px; animation: docslib-loader-spin .8s linear infinite; }
|
||||
|
|
|
|||
|
|
@ -287,7 +287,7 @@ def test_all_endpoints_and_self_contained_build(tmp_path):
|
|||
|
||||
|
||||
def test_build_writes_static_bundle(tmp_path):
|
||||
assert __version__ == "0.5.2"
|
||||
assert __version__ == "0.5.3"
|
||||
|
||||
@Page("1", "Static page")
|
||||
def static_page():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue