Skip to content

Commit

Permalink
Fix menu size (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
allcaps authored Nov 9, 2023
1 parent 1f4458d commit 7765c8d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions apps/frontend/static_src/scss/components/burger.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
$root: &;
display: inline-block;
position: relative;
width: 40px;
height: 30px;
width: 42px;
height: 40px;
background: transparent;
border: 0;
transform: rotate(0deg);
Expand Down Expand Up @@ -37,21 +37,21 @@
}

&:nth-child(1) {
top: 5px;
top: 10px;

.is-open & {
inset: 10px auto auto 50%;
inset: 15px auto auto 50%;
width: 0%;
}
}

&:nth-child(2),
&:nth-child(3) {
top: 13px;
top: 18px;

.is-open & {
opacity: 1;
inset: 13px auto auto 6px;
inset: 18px auto auto 8px;
}
}

Expand All @@ -68,11 +68,11 @@
}

&:nth-child(4) {
top: 21px;
top: 26px;

.is-open & {
width: 0%;
inset: 10px auto auto 50%;
inset: 15px auto auto 50%;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions apps/frontend/static_src/scss/components/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@

&__burger {
position: absolute;
inset: 17px 12px auto auto;
inset: 15px 12px auto auto;

@include media-query(large) {
display: none;
Expand All @@ -116,7 +116,7 @@
margin: 0;
border: 0;
background-color: transparent;
height: 42px;
height: 40px;
width: 42px;
display: flex;
align-items: center;
Expand Down

0 comments on commit 7765c8d

Please sign in to comment.