-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
67 lines (64 loc) · 1.14 KB
/
style.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
* {
margin:0px;
padding:0px;
box-sizing:border-box;
font-family:"Bree Serif",sans-serif;
}
body {
overflow:hidden;
}
#sidebar {
position:absolute;
top:0px;
left:0px;
width:200px;
height:100vh;
background:#1a1a1a;
text-align:center;
transform-origin:left;
transform:perspective(1200px) rotateY(90deg);
transition:all 400ms ease;
}
#sidebar ul li {
color:#ccc;
font-size:20px;
width:100%;
height:50px;
border-bottom:1px solid #222222;
line-height:50px;
}
#sidebar.active {
transform:perspective(1200px) rotateY(0deg);
}
#toggle-btn {
position:absolute;
left:30px;
top:20px;
transition:left 200ms linear 0ms,transform 300ms ease 100ms;
}
#toggle-btn.active {
left:230px;
transform:rotate(360deg);
}
#toggle-btn span {
position:relative;
top:0px;
display:block;
background:#1a1a1a;
width:30px;
height:5px;
margin:5px 0px;
cursor:pointer;
transition:transform 300ms ease 200ms;
}
#toggle-btn.active span:nth-child(1) {
top:10px;
transform:rotate(45deg);
}
#toggle-btn.active span:nth-child(2) {
opacity:0;
}
#toggle-btn.active span:nth-child(3) {
top:-10px;
transform:rotate(-45deg);
}