forked from toptal/webdevchecklist.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.css
67 lines (58 loc) · 1.6 KB
/
menu.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
nav {
min-width: 16px;
position: absolute;
top: 1em;
left: 1em;
background: #222;
padding: .5em;
border-radius: 3px;
cursor: default;
z-index: 2;
}
nav span {
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMklEQVQ4y2P8//8/AyWAEWSAs7Mz3JS9e/cyUsUAZDFcAKSWOi6gOAxGA3E0EId+IAIArFBf4TIqIjsAAAAASUVORK5CYII=') no-repeat;
*background: url(/Images/menu.png) no-repeat; /* For IE 6 and 7 */
padding-left: 20px;
line-height: 16px;
display: inline-block;
}
.no-touch nav:hover,
nav.open {
-webkit-box-shadow: rgba(0, 0, 0, 0.79) 5px 5px;
box-shadow: rgba(0, 0, 0, 0.79) 5px 5px;
}
.no-touch nav:hover > ul,
nav.open > ul {
max-height: 300px;
max-width: 200px;
}
nav ul {
list-style: none;
padding: 0 0 0 .8em;
}
nav ul li {
padding: 0;
margin: 0;
}
nav > ul {
padding: 0 0 0 1.2em;
max-height: 0;
max-width: 45px;
margin: 0;
overflow: hidden;
-moz-transition: all .4s ease;
-o-transition: all .4s ease;
-webkit-transition: all .4s ease;
transition: all .4s ease;
}
nav > ul > li > a {
margin: .8em 0;
display: block;
}
nav > ul > li.planned {
margin: 0 .8em;
display: block;
}
nav a + ul > li:last-child {
margin-bottom: .8em;
}