feat(cc-dark-theme): use sass instead of static css
In order to despaghettify the dark theme styles, this CL introduces Sass
compilation for the dark theme styles.
Bug: twpowertools:21
Change-Id: Ibbae3f85f355fab690f42f2bae9cf7766d9d43a3
diff --git a/src/contentScripts/communityConsole/start.js b/src/contentScripts/communityConsole/start.js
index 2bac9a3..a597aaa 100644
--- a/src/contentScripts/communityConsole/start.js
+++ b/src/contentScripts/communityConsole/start.js
@@ -68,11 +68,11 @@
switch (options.ccdarktheme_mode) {
case 'switch':
if (options.ccdarktheme_switch_status == true)
- injectStylesheet(chrome.runtime.getURL('css/ccdarktheme.css'));
+ injectStylesheet(chrome.runtime.getURL('ccDarkTheme.bundle.css'));
break;
case 'system':
- injectStylesheet(chrome.runtime.getURL('css/ccdarktheme.css'), {
+ injectStylesheet(chrome.runtime.getURL('ccDarkTheme.bundle.css'), {
'media': '(prefers-color-scheme: dark)',
});
break;