Use :host instead of :host-context
This commit is contained in:
parent
4e133e7d8a
commit
e9928f9126
@ -26,7 +26,7 @@ p {
|
||||
}
|
||||
}
|
||||
|
||||
:host-context(.nightMode) * {
|
||||
:host(.nightMode) * {
|
||||
@include scrollbar.night-mode;
|
||||
}
|
||||
|
||||
|
@ -27,6 +27,10 @@ export class EditingArea extends HTMLDivElement {
|
||||
this.attachShadow({ mode: "open" });
|
||||
this.className = "field";
|
||||
|
||||
if (document.documentElement.classList.contains("night-mode")) {
|
||||
this.classList.add("night-mode");
|
||||
}
|
||||
|
||||
const rootStyle = document.createElement("link");
|
||||
rootStyle.setAttribute("rel", "stylesheet");
|
||||
rootStyle.setAttribute("href", "./_anki/css/editable.css");
|
||||
|
Loading…
Reference in New Issue
Block a user