Skip to content

Commit

Permalink
fix: add smooth scrolling and add padding-top for themes page past mo…
Browse files Browse the repository at this point in the history
…bile breakpoint
  • Loading branch information
aaronchan32 committed May 29, 2024
1 parent 36bf415 commit 895c046
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/Home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
margin-inline: auto;

@media (min-width: $tablet-breakpoint) {
scroll-behavior: smooth;
display: grid;
scroll-snap-type: y mandatory;
}
Expand Down
4 changes: 4 additions & 0 deletions src/app/pages/Themes/Themes.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#themes {
// Overview page will compensate for this padding to allow the squash to be visible
padding-top: 0;

@media (min-width: $tablet-breakpoint) {
padding-top: $main-padding-desktop-block;
}
}

0 comments on commit 895c046

Please sign in to comment.