Repository navigation
Expand file tree
/
Copy pathnav.css
More file actions
88 lines (88 loc) · 1.59 KB
/
Copy pathnav.css
File metadata and controls
88 lines (88 loc) · 1.59 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
81
82
83
84
85
86
87
88
.nav {
position: relative;
margin: 0;
padding: 0 0.5em;
background: #33363b;
-webkit-box-shadow: 0 -0.5em 1em 0.5em rgba(0,0,0,0.19);
box-shadow: 0 -0.5em 1em 0.5em rgba(0,0,0,0.19);
border-top-left-radius: 0.3em;
border-top-right-radius: 0.3em;
display: block;
}
.nav ul {
display: block;
list-style: none;
padding: 0;
margin: 0;
overflow: auto;
white-space: nowrap;
}
.nav ul li {
line-height: 2em;
position: relative;
text-align: center;
display: inline-block;
margin: 0 0.1em;
}
.nav ul li a {
position: relative;
display: block;
font-size: 1.5em;
padding: 0.75em;
color: #ddd;
text-decoration: none;
text-shadow: 0 0.05em rgba(0,0,0,0.2);
-webkit-transition: 0.2s ease-in;
-moz-transition: 0.2s ease-in;
-o-transition: 0.2s ease-in;
-ms-transition: 0.2s ease-in;
transition: 0.2s ease-in;
border-bottom: none;
}
.nav ul li a:hover {
color: #fff;
background: #252525;
}
.nav ul li a:active {
top: 0;
}
.nav ul li a.current {
color: #fff;
background: #222;
}
.nav .nav-toggle {
text-align: center;
font-size: 2em;
position: relative;
cursor: pointer;
color: #ddd;
display: none;
width: 100%;
text-align: center;
border-bottom: none;
}
.nav .nav-toggle:hover {
border-bottom: none;
color: #fff;
}
@media (max-width: 40em) {
.nav .nav-toggle {
display: block;
}
.nav ul {
display: none;
}
.nav ul li {
display: block;
text-align: center;
margin: 0.1em 0;
}
.nav ul li a {
position: relative;
border-bottom: none;
}
.nav ul li a:hover {
color: #fff;
background: #252525;
}
}