-
Notifications
You must be signed in to change notification settings - Fork 0
/
toggleBtn.css
47 lines (41 loc) · 1.28 KB
/
toggleBtn.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
@media (max-width: 750px) {
.sidebar > .icon-space {
position: relative;
}
.sidebar > .icon-space:before {
content: "";
width: 90%;
height: 2px;
background-color: white;
transform: translateY(-8px);
-webkit-transform: translateY(-8px);
box-shadow: 0px 8px 0px white,
1px 1px 1px rgba(0, 0, 0, 0.8),
1px 9px 1px rgba(0, 0, 0, 0.8);
position: absolute;
transition: all var(--animationTime);
-webkit-transition: all var(--animationTime);
}
.sidebar > .icon-space:after {
content: "";
width: 90%;
height: 2px;
background-color: white;
transform: translateY(8px);
-webkit-transform: translateY(8px);
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
position: absolute;
transition: all var(--animationTime);
-webkit-transition: all var(--animationTime);
}
.sidebar.open > .icon-space:before {
transform: rotateZ(-45deg);
-webkit-transform: rotateZ(-45deg);
box-shadow: none;
}
.sidebar.open > .icon-space:after {
transform: rotateZ(45deg);
-webkit-transform: rotateZ(45deg);
box-shadow: none;
}
}