add instance styling

This commit is contained in:
Arthur Lu 2022-12-14 14:30:46 -08:00
parent 5c0176dc98
commit 8ef1cc3344
2 changed files with 11 additions and 0 deletions

5
css/instance.css Normal file
View File

@ -0,0 +1,5 @@
article {
border-top: solid white 1px;
border-bottom: solid white 1px;
margin: 0px;
}

View File

@ -12,6 +12,12 @@ class Instance extends HTMLElement {
styleLink.type = "text/css"; styleLink.type = "text/css";
shadowRoot.append(styleLink); shadowRoot.append(styleLink);
let instanceLink = document.createElement("link");
instanceLink.rel = "stylesheet";
instanceLink.href = "css/instance.css";
instanceLink.type = "text/css";
shadowRoot.append(instanceLink);
this.shadowElement = shadowRoot; this.shadowElement = shadowRoot;
} }