inject styles of stylus-addon in shadowRoot
当前为
:hostTo apply styles only to the content within a shadowRoot, use the :host pseudo-selector in your Stylus styles. :host refers to the element that contains the shadowRoot (the shadow host).
/* All elements */
* {
border: 1px violet;
}
/* Only elements inside the shadowRoot */
:host * {
border: 1px solid mediumpurple;
}
Similar forms: