Skip to content

Commit 849f911

Browse files
author
wutali
committed
Layout mobile menu
1 parent 9c88c11 commit 849f911

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/components/Burger.tsx

+4-3
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ export default function Burger({ active, onClick }: Props) {
1212
{`
1313
.container {
1414
position: fixed;
15-
width: 28px;
16-
height: 28px;
15+
width: 38px;
16+
height: 38px;
1717
cursor: pointer;
1818
top: 1rem;
19-
left: 1.5rem;
19+
left: 1.25rem;
2020
z-index: 2;
21+
background-color: rgba(255, 255, 255, 0.7);
2122
}
2223
.meat {
2324
position: absolute;

src/components/Layout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default function Layout({ children }: Props) {
3333
.root {
3434
display: flex;
3535
flex: 1;
36-
padding: 3.75em 0;
36+
padding: 4rem 0;
3737
}
3838
main {
3939
display: flex;

src/components/Navigation.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export default function Navigation() {
4949
display: flex;
5050
flex-direction: column;
5151
justify-content: center;
52+
z-index: 1;
5253
}
5354
li {
5455
margin-bottom: 1.75rem;

0 commit comments

Comments
 (0)