This commit is contained in:
りき萌 2024-02-12 19:56:06 +01:00
parent 81018eeafe
commit f2e9a5f66e
11 changed files with 126 additions and 16 deletions

1
static/css/tairu.css Normal file
View file

@ -0,0 +1 @@

View file

@ -346,4 +346,12 @@ th-bb .branch-date {
background-repeat: no-repeat;
background-position: 0% 50%;
opacity: 80%;
}
}
/* branch-quote class for "air quote branches"; used to separate a subtree from a parent tree
stylistically such that it's interpretable as a form of block quote. */
ul.branch-quote {
padding: 8px;
border: 1px solid var(--border-1);
border-radius: 8px;
}

View file

@ -0,0 +1,13 @@
// A frameworking class assigning some CSS classes to the canvas to make it integrate nicer with CSS.
class Frame extends HTMLCanvasElement {
constructor() {
super();
this.style.cssText = `
`;
}
// Override this!
draw() { }
}

View file

View file

@ -109,6 +109,11 @@ class LinkedBranch extends Branch {
let linkedDocument = parser.parseFromString(text, "text/html");
let main = linkedDocument.getElementsByTagName("main")[0];
let ul = main.getElementsByTagName("ul")[0];
let styles = main.getElementsByTagName("link");
let scripts = main.getElementsByTagName("script");
this.append(...styles);
this.append(...scripts);
this.loadingText.remove();
this.innerUL.innerHTML = ul.innerHTML;