mirror of
https://github.com/osmarks/website
synced 2025-07-17 01:12:50 +00:00
oops, rectangles
This commit is contained in:
parent
ebcee20c5b
commit
b7fe83cb58
@ -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"))
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user