diff --git a/css/instance.css b/css/instance.css new file mode 100644 index 0000000..70fa182 --- /dev/null +++ b/css/instance.css @@ -0,0 +1,5 @@ +article { + border-top: solid white 1px; + border-bottom: solid white 1px; + margin: 0px; +} \ No newline at end of file diff --git a/scripts/elements.js b/scripts/elements.js index 2da33d9..5a4dc3e 100644 --- a/scripts/elements.js +++ b/scripts/elements.js @@ -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; }