Skip to content

Commit

Permalink
fix: fix mobile landing section divider and fix hamburger clicking ar…
Browse files Browse the repository at this point in the history
…ea bug
  • Loading branch information
aaronchan32 committed Jun 3, 2024
1 parent ee624a3 commit 2c0f847
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/app/components/Navbar/Hamburger/Hamburger.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
border: none;
padding-block: calc($main-padding-mobile-block/2);
padding-inline: calc($main-padding-mobile-inline/2 - $hamburger-width/2);
z-index: 5;

@media (min-width: $mobile-breakpoint) {
padding-block: calc($main-padding-tablet-block/2);
Expand All @@ -25,7 +26,6 @@
display: flex;
flex-direction: column;
justify-content: space-between;
z-index: 5;
}

.line {
Expand Down
12 changes: 4 additions & 8 deletions src/app/components/Navbar/Navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ nav {
}

.nav-container {
@media (min-width: $mobile-breakpoint) {
border-right: 1.5px solid $outline-gray;
}
padding-inline: $main-padding-mobile-inline;
padding-block: $main-padding-mobile-block;
padding-top: 5rem;
width: 100vw;
max-width: 400px;
background: $primary-white;
Expand All @@ -48,17 +46,15 @@ nav {
transform: translateX(-100%);
}

@media (max-width: $mobile-breakpoint) {
padding-inline: clamp(34px, 12px + 1.2vw, 40px);
padding-top: 5rem;
}

@media (min-width: $mobile-breakpoint) {
border-right: 1.5px solid $outline-gray;
padding-inline: $main-padding-desktop-inline;
padding-block: $main-padding-desktop-block;
padding-top: $main-padding-tablet-block;
}

@media (min-width: $tablet-breakpoint) {
padding-top: $main-padding-desktop-block;
max-width: 500px;
width: $nav-width;
visibility: visible;
Expand Down
4 changes: 4 additions & 0 deletions src/app/pages/Landing/Landing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@
}
}

.mobile-line {
margin-inline: $main-padding-mobile-inline;
}

@media (min-width: $tablet-breakpoint) {
.mobile-header,
.add-me-to-cart {
Expand Down

0 comments on commit 2c0f847

Please sign in to comment.