From ffa468fba23d0fcf778cdfbf916fbd979fe8d0e8 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Wed, 14 Dec 2022 14:30:46 -0800 Subject: [PATCH] add instance styling --- css/instance.css | 5 +++++ scripts/elements.js | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 css/instance.css 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; }