Skip to content

Commit

Permalink
Positioning tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonRomano committed Dec 20, 2024
1 parent 4ddc8b4 commit 3ab18e6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/pages/docs/[...path]/DocsPage.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@
}

& .contentWrapper {
margin: 24px auto 88px auto;
--content-wrapper-padding-top: 24px;
margin: var(--content-wrapper-padding-top) auto 88px auto;
display: flex;
flex-grow: 1;
max-width: min(calc(var(--docs-content-max-width) + var(--sidecar-width) + (2 * var(--sidecar-margin))),
Expand Down Expand Up @@ -118,8 +119,12 @@
margin-left: var(--sidecar-margin);
margin-right: var(--sidecar-margin);
width: var(--sidecar-width);
margin-top: 84px;
height: 650px;
--sidecar-margin-top: 84px;
margin-top: var(--sidecar-margin-top);
height: min(
600px,
100vh - var(--header-height) - var(--sidecar-margin-top) - var(--content-wrapper-padding-top) - var(--sidecar-margin)
);
overflow: scroll;

@media(max-width: 1276px) {
Expand Down

0 comments on commit 3ab18e6

Please sign in to comment.