Skip to content

Commit

Permalink
centre content on wide displays
Browse files Browse the repository at this point in the history
  • Loading branch information
orifu committed Nov 28, 2024
1 parent 7f46bf6 commit 4eaa621
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/style/_prettify.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@
@media (min-width: 50rem) {
:root {
// wider sidebar
--sl-sidebar-width: clamp(
--sl-sidebar-width: max(
17.5rem,
calc(100vw - var(--sl-content-width) - 15rem),
27.5rem
calc(50vw + 40px - (var(--sl-content-width) + 15rem) / 2)
);
--sl-sidebar-pad-x: 2rem;

Expand Down

0 comments on commit 4eaa621

Please sign in to comment.