aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/static/js/base/themes.js (follow)
Commit message (Collapse)AuthorAgeLines
* Dark: Fix switch toggle when system preference is usedGravatar hedy2024-01-20-2/+4
| | | | Thanks to wookie for finding the bug.
* Optimistic fix for FOUC on initial site loadGravatar hedy2024-01-18-0/+4
|
* Temporary fix to theme-switching FOUC problemGravatar hedy2024-01-18-6/+3
|
* Dark: Possibly fix FOUC during theme switchGravatar hedy2024-01-18-4/+4
|
* Dark: Set correct theme immediately when the script loadsGravatar hedy2024-01-18-10/+10
| | | | | | | | | | This fixes the latency previously observed on page loads. We still have to put switch toggling after page loads though. Genius idea by wookie. Co-authored-by: wookie184 <[email protected]>
* Dark: Improve order of switching stylesheetsGravatar hedy2024-01-18-1/+1
|
* Dark: Name JS & CSS files according to their contentGravatar hedy2024-01-05-0/+91
We have the CSS for the navbar in base.css, the relevant files only contain code for the theme toggle, so they should be named as such. If we ever implement CSS variables per-theme, they could then be done in `themes.css`.