Update style of accessibility.js

This commit is contained in:
Adam Iannazzone 2024-09-23 19:56:49 -04:00
parent c2db42ea37
commit 645b855120

View file

@ -1,10 +1,10 @@
function pixelFontToggle() { function pixelFontToggle() {
const pixelFontDefault = "\"Upheaval TT\", monospace;" const pixelFontDefault = '\"Upheaval TT\", monospace;'
const pixelFontSwitchElem = document.getElementById("pixel-font-switch"); const pixelFontSwitchElem = document.getElementById('pixel-font-switch');
if (pixelFontSwitchElem.checked) { if (pixelFontSwitchElem.checked) {
document.documentElement.style.cssText = "--pixel-font: \"Upheaval TT\", monospace"; document.documentElement.style.cssText = '--pixel-font: \"Upheaval TT\", monospace';
} else { } else {
document.documentElement.style.cssText = "--pixel-font: \"Source Sans 3\", sans-serif"; document.documentElement.style.cssText = '--pixel-font: \"Source Sans 3\", sans-serif';
} }
} }