diff options
author | 2021-07-19 19:36:09 -0500 | |
---|---|---|
committer | 2021-07-19 19:36:09 -0500 | |
commit | 325e8cba2d63eae909a8f6ca1f92722ed2f514db (patch) | |
tree | af7fcf9452364ec0dea03de66d9b9618b5d3c0bd /docs/public/theme.js | |
parent | 7f57651686fb63e2158aa512a0b00dc262ee7425 (diff) | |
download | astro-325e8cba2d63eae909a8f6ca1f92722ed2f514db.tar.gz astro-325e8cba2d63eae909a8f6ca1f92722ed2f514db.tar.zst astro-325e8cba2d63eae909a8f6ca1f92722ed2f514db.zip |
Improve docs theme (#717)
* Revert "Revert "New getting started guide (#715)""
This reverts commit dc4ba25b01254ed1c2088c081e8c861172ae58a4.
* style: update docs theme
* style: implement feedback
* feat: remove FOUC
* Update docs/src/pages/404.astro
Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
* Fix 404 title prop
* chore: implement feedback
* fix: ul, ol styles
* fix: center logo on mobile
* fix: improve navbar header contrast
* fix: improve logo overlap
* fix: `.nav-link` radius
* fix: small mobile tweaks
* feat: improve nav styles
* feat: improve embed styles
* fix: feedback items
* fix: make header sticky on mobile
Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
Diffstat (limited to 'docs/public/theme.js')
-rw-r--r-- | docs/public/theme.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/docs/public/theme.js b/docs/public/theme.js deleted file mode 100644 index 91abd5504..000000000 --- a/docs/public/theme.js +++ /dev/null @@ -1,12 +0,0 @@ -(() => { - const root = document.documentElement; - if ( - localStorage.theme === 'dark' || - (!('theme' in localStorage) && - window.matchMedia('(prefers-color-scheme: dark)').matches) - ) { - root.classList.add('theme-dark'); - } else { - root.classList.remove('theme-dark'); - } -})(); |