add instance styling

This commit is contained in:
Arthur Lu 2022-12-14 14:30:46 -08:00
parent b5901cb002
commit ffa468fba2
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";
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;
}