refactor(frontend): prefix css variables (#14725)
* wip * Update index.d.ts * remove unnecessary codes
This commit is contained in:
parent
0ad31bd5d4
commit
4a356f1ba7
280 changed files with 1076 additions and 1093 deletions
|
|
@ -21,7 +21,7 @@ export default {
|
|||
const myBg = window.getComputedStyle(src).backgroundColor;
|
||||
|
||||
if (parentBg === myBg) {
|
||||
src.style.backgroundColor = 'var(--bg)';
|
||||
src.style.backgroundColor = 'var(--MI_THEME-bg)';
|
||||
} else {
|
||||
src.style.backgroundColor = myBg;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ export default {
|
|||
const myBg = window.getComputedStyle(src).backgroundColor;
|
||||
|
||||
if (parentBg === myBg) {
|
||||
src.style.borderColor = 'var(--divider)';
|
||||
src.style.borderColor = 'var(--MI_THEME-divider)';
|
||||
} else {
|
||||
src.style.borderColor = myBg;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,12 +18,12 @@ export default {
|
|||
|
||||
const parentBg = getBgColor(src.parentElement);
|
||||
|
||||
const myBg = getComputedStyle(document.documentElement).getPropertyValue('--panel');
|
||||
const myBg = getComputedStyle(document.documentElement).getPropertyValue('--MI_THEME-panel');
|
||||
|
||||
if (parentBg === myBg) {
|
||||
src.style.backgroundColor = 'var(--bg)';
|
||||
src.style.backgroundColor = 'var(--MI_THEME-bg)';
|
||||
} else {
|
||||
src.style.backgroundColor = 'var(--panel)';
|
||||
src.style.backgroundColor = 'var(--MI_THEME-panel)';
|
||||
}
|
||||
},
|
||||
} as Directive;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue