summaryrefslogtreecommitdiff
path: root/ext/mixed/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-05-10 14:07:25 -0400
committerGitHub <noreply@github.com>2020-05-10 14:07:25 -0400
commit9742d5662bde1340a12c343599cc962e2b175803 (patch)
tree1949c8f38fe1fa2cd70f64529a3831b68a497496 /ext/mixed/js
parent5752b23a8e802d556851eff8f6ea60785f93e0b3 (diff)
Use CSS variables for themes (#528)
* Update formatting * Merge default tag color with category-less tags * Use CSS variables for colors * Add dark theme colors * Move color variables into display.css * Remove old stylesheets * Update headings * Bump minimum Firefox version to support CSS var() * Revert popular kanji text color
Diffstat (limited to 'ext/mixed/js')
-rw-r--r--ext/mixed/js/display.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index 783af7d8..2e59b4ff 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -399,12 +399,6 @@ class Display {
updateTheme(themeName) {
document.documentElement.dataset.yomichanTheme = themeName;
-
- const stylesheets = document.querySelectorAll('link[data-yomichan-theme-name]');
- for (const stylesheet of stylesheets) {
- const match = (stylesheet.dataset.yomichanThemeName === themeName);
- stylesheet.rel = (match ? 'stylesheet' : 'stylesheet alternate');
- }
}
setCustomCss(css) {