-
Notifications
You must be signed in to change notification settings - Fork 368
/
Copy pathnav.css
167 lines (160 loc) · 3.63 KB
/
nav.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
/*
-----------------------------------------------
Navigation
----------------------------------------------- */
/* navigation (horizontal subnavigation)
----------------------------------------------- */
ul.nav,
ul.nav * { margin:0;padding:0;}
ul.nav {
position:relative;
background:#666;
max-width:100%;
height:2.5em;
}
ul.nav li {
cursor:pointer;
float:left;
text-align:center;
list-style-type:none;
font-weight:400;
}
ul.nav li ul {
cursor:default;
width:100%;
max-width:100%;
position:absolute;
height:auto;
top:2.5em;
background-position:0 0 !important;
left:-9000px;
}
ul.nav li ul li {
padding:0;
border:none;
width:auto;
max-width:none;
}
ul.nav li a {
color:#fff;
background:#666;
font-weight:bold;
text-decoration:none;
display:block;
float:left;
padding:0 1em;
height:2.4em;
line-height:2.5em;
}
ul.nav li ul li a {
position:relative !important; /* ie Mac */
cursor:pointer !important;
white-space:nowrap;
line-height:2em;
height:2em;
font-weight:normal;
color:#666;
background-position:0 50% !important;
}
ul.nav li:hover a,
ul.nav li a:hover,
ul.nav li a:focus {color:#000; background:#ccc;}
ul.nav li a:active {color:#666; background:#fff;}
ul.nav li:hover ul {left:0;z-index:10}
ul.nav li ul,
ul.nav li {background:#ccc !important}
ul.nav li:hover ul li a {color:#444;}
ul.nav li:hover ul li a:hover {color:#000; background:#fff;}
ul.nav li:hover ul li a:active {color:#666; background:#fff;}
ul.nav li.current a {color:#666; background:#fff; cursor:default; font-weight:700;}
ul.nav li.current ul {left:0;z-index:5}
ul.nav li.current ul,
ul.nav li.current {background:#ccc !important}
ul.nav li.current ul li a {color:#444; background:#ccc; font-weight:normal;}
ul.nav li.current ul li a:hover {color:#000; background:#fff;}
ul.nav li ul li.current a,
ul.nav li ul li.current a:hover,
ul.nav li.current:hover ul li a:active {color:#666; background:#fff;}
/* navigation (vertical subnavigation)
----------------------------------------------- */
ul.nav {
background:#666;
}
ul.main li {
position:relative;
top:0;
left:0;
}
ul.main li ul {
border-top:0;
}
ul.main li ul li {
float:left;
}
ul.main li a {
height:2.5em;
line-height:2.5em;
border:0;
color:#fff;
background:#666;
}
ul.main li ul li a {
width:12em;
line-height:2em;
height:2em;
text-align:left;
color:#fff;
border-top:1px solid #444;
background:#444;
}
ul.main li a:focus {color:#fff; background:#666;}
ul.main li ul li a:hover {
color:#fff;
background:#555;
}
ul.main li:hover a {
color:#fff;
background:#555;
}
ul.main li:hover ul li a {color:#fff;}
ul.main li:hover ul li a:hover {color:#fff; background:#444;}
ul.main li:hover a:active {background:#444;}
ul.main li:hover ul li a:active {color:#fff; background:#222;}
/* secondary list
----------------------------------------------- */
ul.nav li.secondary {
float:right;
color:#cde;
background:transparent !important;
}
ul.nav li.secondary span.status {
float:left;
padding:0 1em;
line-height:2.77em;
height:2.77em;
font-size:0.9em;
}
ul.nav li.secondary span.status a {
float:none;
display:inline;
padding:0;
height:auto;
line-height:auto;
color:#ccddee;
background:transparent;
}
ul.nav li.secondary span.status a:hover {
color:#fff;
background:transparent;
}
ul.nav li.secondary span.status span {
text-transform:capitalize;
}
ul.nav li.secondary:hover a {
color:#fff;
background:#666;
}
ul.nav li.secondary:hover a:hover {
background:#555;
}
ul.nav li.secondary:hover a:active {background:#444;}