Skip to content

Commit 43ea9eb

Browse files
author
Quarto GHA Workflow Runner
committed
Built site for gh-pages
1 parent c15fb6c commit 43ea9eb

File tree

6 files changed

+145
-108
lines changed

6 files changed

+145
-108
lines changed

.nojekyll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
cd781690
1+
96a38df3

computo-quarto-extension.html

Lines changed: 63 additions & 51 deletions
Large diffs are not rendered by default.

computo-quarto-extension.pdf

-54 Bytes
Binary file not shown.

computo-quarto-extension_files/libs/bootstrap/bootstrap.min.css

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

computo-quarto-extension_files/libs/quarto-html/quarto.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const layoutMarginEls = () => {
99
// Find any conflicting margin elements and add margins to the
1010
// top to prevent overlap
1111
const marginChildren = window.document.querySelectorAll(
12-
".column-margin.column-container > * "
12+
".column-margin.column-container > *, .margin-caption, .aside"
1313
);
1414

1515
let lastBottom = 0;
@@ -19,7 +19,9 @@ const layoutMarginEls = () => {
1919
marginChild.style.marginTop = null;
2020
const top = marginChild.getBoundingClientRect().top + window.scrollY;
2121
if (top < lastBottom) {
22-
const margin = lastBottom - top;
22+
const marginChildStyle = window.getComputedStyle(marginChild);
23+
const marginBottom = parseFloat(marginChildStyle["marginBottom"]);
24+
const margin = lastBottom - top + marginBottom;
2325
marginChild.style.marginTop = `${margin}px`;
2426
}
2527
const styles = window.getComputedStyle(marginChild);
@@ -33,7 +35,15 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
3335
// Recompute the position of margin elements anytime the body size changes
3436
if (window.ResizeObserver) {
3537
const resizeObserver = new window.ResizeObserver(
36-
throttle(layoutMarginEls, 50)
38+
throttle(() => {
39+
layoutMarginEls();
40+
if (
41+
window.document.body.getBoundingClientRect().width < 990 &&
42+
isReaderMode()
43+
) {
44+
quartoToggleReader();
45+
}
46+
}, 50)
3747
);
3848
resizeObserver.observe(window.document.body);
3949
}

index.html

Lines changed: 63 additions & 51 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)