Skip to content

Commit 2c3846d

Browse files
committed
Finishing Sidebar
1 parent 17eb457 commit 2c3846d

File tree

3 files changed

+42
-2
lines changed

3 files changed

+42
-2
lines changed

css/style.css

+21-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,27 @@ body {
7474
.sidebar {
7575
background-color: #c69963;
7676
grid-row: 1 / -1;
77-
grid-column: sidebar-start / sidebar-end; }
77+
grid-column: sidebar-start / sidebar-end;
78+
display: flex;
79+
justify-content: center; }
80+
81+
.nav-btn {
82+
border: none;
83+
border-radius: 0;
84+
background-color: #fff;
85+
height: 2px;
86+
width: 4.5rem;
87+
margin-top: 4rem; }
88+
.nav-btn::before, .nav-btn::after {
89+
content: "";
90+
display: block;
91+
width: 4.5rem;
92+
height: 2px;
93+
background-color: #fff; }
94+
.nav-btn::before {
95+
transform: translateY(-1.5rem); }
96+
.nav-btn::after {
97+
transform: translateY(1.3rem); }
7898

7999
.header {
80100
background-color: violet;

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</head>
1414
<body class="container">
1515
<div class="sidebar">
16-
Sidebar
16+
<button class="nav-btn"></button>
1717
</div>
1818
<header class="header">
1919
Header

sass/_sidebar.scss

+20
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,24 @@
22
background-color: $color-primary;
33
grid-row: 1 / -1;
44
grid-column: sidebar-start / sidebar-end;
5+
display: flex;
6+
justify-content: center;
7+
}
8+
.nav-btn {
9+
border: none;
10+
border-radius: 0;
11+
background-color: #fff;
12+
height: 2px;
13+
width: 4.5rem;
14+
margin-top: 4rem;
15+
&::before,
16+
&::after {
17+
content: "";
18+
display: block;
19+
width: 4.5rem;
20+
height: 2px;
21+
background-color: #fff;
22+
}
23+
&::before{transform: translateY(-1.5rem)}
24+
&::after{transform: translateY(1.3rem)}
525
}

0 commit comments

Comments
 (0)