iframe widget pooling (experimental)

This commit is contained in:
Zef Hemel
2023-11-12 11:50:49 +01:00
parent 1b242dea55
commit f3d72ca6f4
5 changed files with 188 additions and 102 deletions
+3 -9
View File
@@ -1,9 +1,8 @@
/* Reset SB styles */
html,
body {
height: initial !important;
overflow: initial !important;
background-color: var(--root-background-color);
font-family: var(--editor-font);
color: var(--root-color);
}
#sb-main {
@@ -26,11 +25,6 @@ body {
height: initial !important;
}
body {
font-family: var(--editor-font);
color: var(--root-color);
}
ul,
ol {
margin-top: 0;
@@ -33,8 +33,6 @@ export async function wrapHTML(html: string): Promise<string> {
const css = await asset.readAsset("assets/markdown_widget.css");
return `
<!-- Load SB's own CSS here too -->
<link rel="stylesheet" href="/.client/main.css" />
<!-- In addition to some custom CSS -->
<style>${css}</style>
<!-- Wrap the whole thing in something SB-like to get access to styles -->