Skip to content

Commit 8fc7160

Browse files
committed
fix(styles): expand Hypothesis margin override to cover all selectors
The Hypothesis extension injects margin-right: 16px via .headroom-target and header.headroom selectors. The previous fix only targeted #quarto-header. Now all three selectors are covered to ensure the header extends full width.
1 parent 4fbd2a9 commit 8fc7160

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

book/quarto/assets/styles/style.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,9 @@ a {
408408
}
409409

410410
// Fix Hypothesis margin that prevents full-width elements
411-
body.hypothesis-enabled #quarto-header {
411+
body.hypothesis-enabled #quarto-header,
412+
body.hypothesis-enabled .headroom-target,
413+
body.hypothesis-enabled header.headroom {
412414
margin-right: 0 !important;
413415
}
414416

0 commit comments

Comments
 (0)