-
Notifications
You must be signed in to change notification settings - Fork 0
/
SlideMenu.css
57 lines (46 loc) · 961 Bytes
/
SlideMenu.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
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
body {
padding: 0;
margin: 0;
}
#site-wrapper {
position: relative;
}
.no-overflow {
overflow: hidden;
touch-action: none;
}
#site-canvas {
height: 100%;
position: relative;
-webkit-transform: translateX(0);
transform: translateX(0);
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
padding: 20px;
}
.show-nav #site-canvas {
-webkit-transform: translateX(300px);
transform: translateX(300px);
transform: translate3d(300px, 0, 0);
-webkit-transform: translate3d(300px, 0, 0);
}
#site-menu {
width: 300px;
height: 100%;
position: absolute;
top: 0;
left: -300px;
background: #428bca;
padding: 15px;
}
.ease-in-out {
-webkit-transition: 300ms ease-out all;
transition: 300ms ease-out all;
}