Skip to content

Commit

Permalink
Fix: whitespace between the main content and progressive sidebar (nod…
Browse files Browse the repository at this point in the history
…ejs#7271)

* Fix whitespace between the main content and progressive sidebar

* Remove .DS_Store files

* Fix scrolling on sidebar
  • Loading branch information
amyy2 authored Dec 13, 2024
1 parent f60d063 commit 19047d0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions apps/site/layouts/layouts.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
mx-auto
block
w-full
overflow-auto
sm:grid
sm:grid-cols-[theme(spacing.52)_1fr]
sm:grid-rows-[1fr]
Expand All @@ -24,21 +23,22 @@
xl:grid-cols-[theme(spacing.80)_1fr_theme(spacing.80)];

> *:nth-child(1) {
@apply grid-in-[sidebar];
@apply grid-in-[sidebar]
lg:sticky
lg:top-0
lg:h-[100vh]
lg:overflow-y-auto;
}

> *:nth-child(2) {
@apply contents
overflow-y-scroll
sm:max-lg:block;

> *:first-child {
@apply grid-in-[main]
sm:bg-gradient-subtle
sm:dark:bg-gradient-subtle-dark
xl:px-18
overflow-y-auto
overflow-x-hidden
p-4
motion-safe:scroll-smooth
sm:bg-fixed
Expand All @@ -50,6 +50,8 @@
mt-8
border-t
sm:mt-0
lg:sticky
lg:top-0
lg:max-w-xs
lg:border-l
lg:border-t-0;
Expand Down

0 comments on commit 19047d0

Please sign in to comment.