1
0
mirror of https://github.com/osmarks/website synced 2025-07-20 19:02:50 +00:00

oops, rectangles

This commit is contained in:
osmarks 2025-03-31 10:53:56 +01:00
parent ebcee20c5b
commit b7fe83cb58
2 changed files with 4 additions and 3 deletions

View File

@ -498,7 +498,8 @@ const fetchFeeds = async () => {
const compileCSS = async () => { const compileCSS = async () => {
let css = sass.compile(path.join(srcDir, "style.sass"), { let css = sass.compile(path.join(srcDir, "style.sass"), {
style: "compressed", style: "compressed",
indentedSyntax: true indentedSyntax: true,
charset: false
}).css }).css
css += "\n" css += "\n"
css += await fsp.readFile(path.join(srcDir, "comments.css")) css += await fsp.readFile(path.join(srcDir, "comments.css"))

View File

@ -573,9 +573,9 @@ if (sidenotes && footnotes) {
const link = article.querySelector(`#${item.id.replace(/^fn/, "fnref")}`) const link = article.querySelector(`#${item.id.replace(/^fn/, "fnref")}`)
const linkRect = link.getBoundingClientRect() const linkRect = link.getBoundingClientRect()
item.style.position = "absolute" item.style.position = "absolute"
item.style.left = (articleRect.left + pad) + "px" item.style.left = (articleRect.left + window.scrollX + pad) + "px"
item.style.width = (articleRect.right - articleRect.left - pad * 2) + "px" item.style.width = (articleRect.right - articleRect.left - pad * 2) + "px"
item.style.top = linkRect.bottom + "px" item.style.top = linkRect.bottom + window.scrollY + "px"
item.style.display = "none" item.style.display = "none"
} }
rendered = false rendered = false