-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmenu.css
More file actions
80 lines (66 loc) · 1.53 KB
/
Copy pathmenu.css
File metadata and controls
80 lines (66 loc) · 1.53 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
html, body {
margin: 0;
padding: 0;
font-family: Helvetica, Arial, sans-serif;
height: 100%;
}
#page-wrapper {
position: relative;
z-index: 20; /* Should be greater than menu z-index */
padding: 10px 20px;
background: #fff;
height: 100%;
}
#page-wrapper h1 {
margin: 0;
}
#cool-menu-toggle {
position: absolute;
top: 10px;
right: 10px;
padding: 10px;
border: 1px solid #333;
border-radius: 3px;
}
#cool-menu {
display: none;
height: 100%;
position: absolute;
top: 0;
right: 0;
width: 190px;
padding: 15px 25px;
margin: 0;
list-style: none;
background: #333;
z-index: 10; /* Should be lower than menu z-index */
}
#cool-menu a {
display: block;
color: #fff;
padding: 15px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
/* Animations */
#page-wrapper, #cool-menu {
-webkit-backface-visibility: hidden;
-webkit-perspective: 1000;
}
.animating #cool-menu, .menu-visible #cool-menu {
display: block;
}
.animating #page-wrapper {
transition: transform .25s ease-in-out; /* 250ms transition to page */
-webkit-transition: -webkit-transform .25s ease-in-out;
}
.animating.left #page-wrapper {
transform: translate3d(-240px, 0, 0); /* move page to left */
-webkit-transform: translate3d(-240px, 0, 0);
}
.animating.right #page-wrapper {
transform: translate3d(240px, 0, 0); /* move page to right */
-webkit-transform: translate3d(240px, 0, 0);
}
.menu-visible #page-wrapper {
right: 240px;
}