Skip to content

Commit

Permalink
avoid rem in media queries (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock authored Nov 22, 2023
1 parent 102d90e commit 0c0c358
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions public/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ a[href],
}
}

@media (min-width: calc(640px + 4rem + 0.5rem + 240px + 2rem)) {
@media (min-width: calc(640px + 17px * 4 + 240px + 17px * 2)) {
#observablehq-sidebar {
transition: none;
}
Expand All @@ -322,7 +322,7 @@ a[href],
}
}

@media (min-width: calc(640px + 4rem + 0.5rem + 160px + 2rem)) {
@media (min-width: calc(640px + 17px * 4 + 160px + 17px * 2)) {
#observablehq-toc ~ #observablehq-center {
padding-right: calc(160px + 3rem);
}
Expand All @@ -334,14 +334,14 @@ a[href],
}
}

@media (min-width: calc(640px + 4rem + 0.5rem + 240px + 2rem)) {
@media (min-width: calc(640px + 17px * 4 + 240px + 17px * 2)) {
#observablehq-sidebar-toggle:checked ~ #observablehq-toc,
#observablehq-sidebar-toggle:indeterminate ~ #observablehq-toc {
display: none;
}
}

@media (min-width: calc(640px + 4rem + 0.5rem + 240px + 2rem + 160px + 2rem)) {
@media (min-width: calc(640px + 17px * 4 + 240px + 17px * 2 + 160px + 17px * 2)) {
#observablehq-sidebar-toggle:checked ~ #observablehq-toc,
#observablehq-sidebar-toggle:indeterminate ~ #observablehq-toc,
#observablehq-toc {
Expand All @@ -358,7 +358,7 @@ a[href],
#observablehq-sidebar-toggle:not(:checked):not(:hover)::before {
content: "";
}
@media (min-width: calc(640px + 4rem + 0.5rem + 240px + 2rem)) {
@media (min-width: calc(640px + 17px * 4 + 240px + 17px * 2)) {
#observablehq-sidebar-toggle:indeterminate:not(:checked):not(:hover)::before {
content: "⟨";
}
Expand Down

0 comments on commit 0c0c358

Please sign in to comment.