Skip to content

Commit

Permalink
fix: adjust margins
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronchan32 committed Jun 2, 2024
1 parent 1cefe60 commit c0ca664
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
6 changes: 5 additions & 1 deletion src/app/Home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@
position: relative;
background-color: $primary-white;
scroll-snap-align: center;
padding-inline: 24px;
padding-block: $main-padding-mobile-block;
padding-inline: $main-padding-mobile-inline;

@media (min-width: 350px) {
padding-inline: $main-padding-mobile-inline;
}
overflow: hidden;
@media (min-width: $mobile-breakpoint) {
padding-block: $main-padding-desktop-block;
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/DesktopFruits/DesktopFruits.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
top: 0;
width: 100%;
height: calc(100vh * $num-pages);
z-index: 0;
z-index: 1;
pointer-events: none;
overflow-x: hidden;
display: none;
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/MyAccordion/MyAccordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
flex-direction: column;
overflow-y: hidden;
overflow-x: hidden;
z-index: 1;
z-index: 2;

.AccordionRoot {
/* variables */
Expand Down
7 changes: 4 additions & 3 deletions src/app/styles/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ $nav-width: clamp(250px, 200px + 11vw, 470px);

// Spacing
$main-padding-mobile-block: clamp(20px, 30px + 1.2vw, 40px);
$main-padding-mobile-inline: clamp(20px, 18px + 5vw, 40px);
$main-padding-desktop-block: clamp(40px, 22px + 1.7vw, 70px);
$main-padding-desktop-inline: clamp(40px, 22px + 1.7vw, 70px);
$main-padding-mobile-inline: clamp(22px, 24px + 5.5vw, 48px);

$main-padding-desktop-block: clamp(52px, 40px + 2.7vw, 80px);
$main-padding-desktop-inline: clamp(52px, 40px + 2.7vw, 80px);

//Font Sizes
$h1-size: clamp(26px, calc(24px + 0.46vw), 40px);
Expand Down

0 comments on commit c0ca664

Please sign in to comment.