1
0
mirror of https://github.com/osmarks/website synced 2025-07-17 01:12: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 () => {
let css = sass.compile(path.join(srcDir, "style.sass"), {
style: "compressed",
indentedSyntax: true
indentedSyntax: true,
charset: false
}).css
css += "\n"
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 linkRect = link.getBoundingClientRect()
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.top = linkRect.bottom + "px"
item.style.top = linkRect.bottom + window.scrollY + "px"
item.style.display = "none"
}
rendered = false