comparison src/style.ts @ 150:3ce355e4f388 default tip

bye jest; hi vitest. new working test for styles.ts
author drewp@bigasterisk.com
date Mon, 08 May 2023 17:27:44 -0700
parents 5a1a79f54779
children
comparison
equal deleted inserted replaced
149:5e76bad44a81 150:3ce355e4f388
12 12
13 if (!document.getElementById("allerta-style")) { 13 if (!document.getElementById("allerta-style")) {
14 var head = document.head || document.getElementsByTagName("head")[0], 14 var head = document.head || document.getElementsByTagName("head")[0],
15 style = document.createElement("style"); 15 style = document.createElement("style");
16 style.id = "allerta-style"; 16 style.id = "allerta-style";
17 style.type = "text/css";
18 style.innerText = content; 17 style.innerText = content;
19 head.appendChild(style); 18 head.appendChild(style);
20 } 19 }
21 } 20 }
22 21
43 .served-resources a { 42 .served-resources a {
44 padding-right: 2em; 43 padding-right: 2em;
45 } 44 }
46 `; 45 `;
47 46
48 export const streamedGraphStyle = css` 47 export const streamedGraphStyle = css`
49 :host { 48 :host {
50 display: inline-block; 49 display: inline-block;
51 min-width: 30em; 50 min-width: 30em;
52 padding: 0 0 0 1em; 51 padding: 0 0 0 1em;
53 border: 1px solid #808080; 52 border: 1px solid #808080;