Skip to content

Commit 1c9db4b

Browse files
Drawer Component CSS
1 parent 2cfd9c4 commit 1c9db4b

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
@use "../../styles/variables.scss" as *;
2+
3+
.drawer {
4+
position: fixed;
5+
top: 60px;
6+
right: 0;
7+
width: 100vw;
8+
transform: translateX(-100%);
9+
transition: transform 0.3s ease;
10+
height: 100vh;
11+
background-color: rgba(0, 0, 0, 0.5);
12+
color: var(--gray);
13+
z-index: 600;
14+
box-shadow:
15+
rgba(85, 86, 86, 0.48) 6px 2px 16px 0px,
16+
rgba(0, 0, 0, 0.8) -6px -2px 16px 0px;
17+
18+
&.active {
19+
display: block;
20+
transform: translateX(0);
21+
@media all and ($tablet) {
22+
transform: translateX(-100%);
23+
}
24+
25+
@media all and ($desktop) {
26+
transform: translateX(-100%);
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)