diff options
Diffstat (limited to 'themes/hugo-pt2021')
-rw-r--r-- | themes/hugo-pt2021/assets/script.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/themes/hugo-pt2021/assets/script.js b/themes/hugo-pt2021/assets/script.js index 8eb527c..1ab4045 100644 --- a/themes/hugo-pt2021/assets/script.js +++ b/themes/hugo-pt2021/assets/script.js @@ -6,18 +6,18 @@ // - set theme on page load // - bind theme switcher and burger menu event handlers // +// current sizes (2025-04-01): +// - minified: 699 bytes +// - minified/compressed: 508 bytes +// +// notes below are slightly out of date... +// // theme switcher (2024-05-27) // --------------------------- // does the following: // // 1. checks for user setting and use that, if present. -// 2. otherwise check browser for preferred color scheme and use that. -// -// this works in conjunction with the styles in `assets/dark.sass` and -// has one minor quirk: there is a brief flash when the user transitions -// to a new page and has dark mode enabled. this can be removed by -// uncommenting the block at the top of `dark.sass`, but doing this -// currently breaks the light color scheme :/. +// 2. otherwise default to dark mode. // // refs: // https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme |