Skip to content

Commit

Permalink
fix toc z-index regression in #1736
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Oct 12, 2024
1 parent 63c63e8 commit fa2b5b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/style/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ body {
top: 0;
left: calc(max(0rem, (100vw - var(--observablehq-max-width)) / 2) + var(--observablehq-inset-left) + 2rem);
right: calc(max(0rem, (100vw - var(--observablehq-max-width)) / 2) + var(--observablehq-inset-right) + 2rem);
z-index: 1;
z-index: 2;
display: flex;
align-items: center;
gap: 0.5rem;
Expand Down Expand Up @@ -296,6 +296,7 @@ body {
position: fixed;
color: var(--theme-foreground-muted);
font: 400 14px var(--sans-serif);
z-index: 1;
top: 0;
right: calc(max(0rem, (100% - var(--observablehq-max-width)) / 2) + 1rem);
bottom: 0;
Expand Down

0 comments on commit fa2b5b6

Please sign in to comment.