1 | .navbar { |
---|
2 | margin-bottom:0; |
---|
3 | } |
---|
4 | |
---|
5 | .navbar { |
---|
6 | padding-left:0; padding-right:0; |
---|
7 | margin-left:0; margin-right:0; |
---|
8 | |
---|
9 | //.navbar-inner { |
---|
10 | border:none; |
---|
11 | .box-shadow(none); |
---|
12 | .border-radius(0); |
---|
13 | |
---|
14 | margin:0; |
---|
15 | padding-left:0; padding-right:0; |
---|
16 | |
---|
17 | min-height:@navbar-mh; |
---|
18 | position:relative; |
---|
19 | |
---|
20 | background:@navbar-bg; |
---|
21 | // } |
---|
22 | |
---|
23 | > .container { |
---|
24 | padding-left:0; |
---|
25 | padding-right:0; |
---|
26 | } |
---|
27 | |
---|
28 | .navbar-text, .navbar-link { |
---|
29 | color:@navbar-text-color; |
---|
30 | } |
---|
31 | .navbar-brand { |
---|
32 | color:@navbar-text-color; |
---|
33 | font-size:@brand-size; |
---|
34 | text-shadow:none; |
---|
35 | padding-top: 10px; |
---|
36 | padding-bottom: 10px; |
---|
37 | &:hover , &:focus { |
---|
38 | color: @navbar-text-color; |
---|
39 | } |
---|
40 | } |
---|
41 | |
---|
42 | .navbar-header { |
---|
43 | margin:0 !important; |
---|
44 | } |
---|
45 | |
---|
46 | |
---|
47 | .navbar-nav { |
---|
48 | > li { |
---|
49 | > a { |
---|
50 | & , &:hover , &:focus { |
---|
51 | font-size:13px; |
---|
52 | text-shadow:none; |
---|
53 | color:@navbar-text-color; |
---|
54 | } |
---|
55 | } |
---|
56 | }//li |
---|
57 | }//.nav |
---|
58 | |
---|
59 | } |
---|
60 | .navbar-fixed-top, .navbar-fixed-bottom { |
---|
61 | position: fixed; |
---|
62 | } |
---|
63 | |
---|
64 | .navbar-container { |
---|
65 | padding-left:10px; |
---|
66 | padding-right:20px; |
---|
67 | } |
---|
68 | .navbar-container.container { |
---|
69 | padding-left:0; |
---|
70 | padding-right:0; |
---|
71 | } |
---|
72 | |
---|
73 | |
---|
74 | |
---|
75 | /* ace-nav */ |
---|
76 | .ace-nav { |
---|
77 | height:100%; |
---|
78 | margin:0 !important; |
---|
79 | |
---|
80 | > li { |
---|
81 | line-height:@navbar-mh; |
---|
82 | height:@navbar-mh; |
---|
83 | |
---|
84 | border-left:1px solid #DDD; |
---|
85 | padding:0; |
---|
86 | |
---|
87 | position:relative; |
---|
88 | float:left !important; |
---|
89 | |
---|
90 | &:first-child { |
---|
91 | border-left:none; |
---|
92 | } |
---|
93 | |
---|
94 | > a { |
---|
95 | background-color: @ace-nav-default; |
---|
96 | color: #FFF; |
---|
97 | |
---|
98 | display: block; |
---|
99 | line-height: inherit; |
---|
100 | text-align: center; |
---|
101 | |
---|
102 | height: 100%; |
---|
103 | width: auto; |
---|
104 | min-width: 50px; |
---|
105 | padding: 0 8px; |
---|
106 | |
---|
107 | position: relative; |
---|
108 | |
---|
109 | > [class*="icon-"] { |
---|
110 | font-size: 16px; |
---|
111 | color: #FFF; |
---|
112 | display: inline-block; |
---|
113 | width: 20px; |
---|
114 | text-align: center; |
---|
115 | } |
---|
116 | |
---|
117 | > .badge { |
---|
118 | position: relative; |
---|
119 | top: -4px; |
---|
120 | left: 2px; |
---|
121 | |
---|
122 | padding-right: 5px; |
---|
123 | padding-left: 5px; |
---|
124 | } |
---|
125 | } |
---|
126 | |
---|
127 | |
---|
128 | > a:hover , > a:focus { |
---|
129 | background-color: desaturate(darken(@ace-nav-default, 4%), 4%); |
---|
130 | } |
---|
131 | &.open > a { |
---|
132 | background-color: desaturate(darken(@ace-nav-default, 4%), 4%) !important; |
---|
133 | } |
---|
134 | |
---|
135 | /* different colors */ |
---|
136 | .ace-nav-color(@color) { |
---|
137 | @ace-nav-class: ~`"ace-nav-@{color}"`; |
---|
138 | @ace-nav-bg: ~`"ace-nav-@{color}"`; |
---|
139 | @ace-nav-cl: @@ace-nav-bg; |
---|
140 | |
---|
141 | &.@{color} > a { |
---|
142 | background-color:@ace-nav-cl; |
---|
143 | &:hover , &:focus { |
---|
144 | background-color: desaturate(darken(@ace-nav-cl, 4%), 4%); |
---|
145 | } |
---|
146 | } |
---|
147 | &.open.@{color} > a { |
---|
148 | background-color: desaturate(darken(@ace-nav-cl, 4%), 4%) !important; |
---|
149 | } |
---|
150 | } |
---|
151 | &.open > a { |
---|
152 | color:#FFF !important; |
---|
153 | } |
---|
154 | .ace-nav-color(~"grey"); |
---|
155 | .ace-nav-color(~"purple"); |
---|
156 | .ace-nav-color(~"green"); |
---|
157 | .ace-nav-color(~"light-blue"); |
---|
158 | .ace-nav-color(~"light-blue2"); |
---|
159 | .ace-nav-color(~"red"); |
---|
160 | .ace-nav-color(~"light-green"); |
---|
161 | .ace-nav-color(~"light-purple"); |
---|
162 | .ace-nav-color(~"light-orange"); |
---|
163 | .ace-nav-color(~"light-pink"); |
---|
164 | .ace-nav-color(~"dark"); |
---|
165 | .ace-nav-color(~"white-opaque"); |
---|
166 | .ace-nav-color(~"dark-opaque"); |
---|
167 | |
---|
168 | |
---|
169 | |
---|
170 | |
---|
171 | //margins |
---|
172 | .marginX (@index) when (@index > 0) { |
---|
173 | &.margin-@{index} { margin-left: unit(@index,px); } |
---|
174 | .marginX(@index - 1); |
---|
175 | } |
---|
176 | .marginX(4); |
---|
177 | |
---|
178 | &.no-border { |
---|
179 | border: none !important; |
---|
180 | } |
---|
181 | |
---|
182 | |
---|
183 | /// |
---|
184 | .dropdown-menu { |
---|
185 | z-index: @zindex-navbar-fixed + 1; |
---|
186 | } |
---|
187 | } |
---|
188 | |
---|
189 | .nav-user-photo { |
---|
190 | margin: -4px 8px 0 0; |
---|
191 | |
---|
192 | border-radius: 100%; |
---|
193 | border: 2px solid #FFF; |
---|
194 | |
---|
195 | max-width: 40px; |
---|
196 | } |
---|
197 | |
---|
198 | |
---|
199 | li:last-child a [class^="icon-"] {/* the arrow indicating "See more" on each dropdown , and the icons of user menu */ |
---|
200 | display: inline-block; |
---|
201 | width: 1.25em; |
---|
202 | text-align: center; |
---|
203 | } |
---|
204 | |
---|
205 | } |
---|
206 | |
---|
207 | |
---|
208 | |
---|
209 | |
---|
210 | /* ace-nav responsive */ |
---|
211 | @media only screen and (max-width: @screen-xs-max) { |
---|
212 | .navbar-container { |
---|
213 | padding-left:0; |
---|
214 | padding-right:0; |
---|
215 | } |
---|
216 | } |
---|
217 | @media only screen and (max-width: @screen-xs-max) { |
---|
218 | .ace-nav > li:nth-last-child(4) > .dropdown-menu.pull-right { |
---|
219 | right:-80px; |
---|
220 | } |
---|
221 | .ace-nav > li:nth-last-child(4) > .dropdown-menu.pull-right:before, |
---|
222 | .ace-nav > li:nth-last-child(4) > .dropdown-menu.pull-right:after { |
---|
223 | right:100px; |
---|
224 | } |
---|
225 | |
---|
226 | .ace-nav > li:nth-last-child(3) > .dropdown-menu.pull-right { |
---|
227 | right:-40px; |
---|
228 | } |
---|
229 | .ace-nav > li:nth-last-child(3) > .dropdown-menu.pull-right:before, |
---|
230 | .ace-nav > li:nth-last-child(3) > .dropdown-menu.pull-right:after { |
---|
231 | right:60px; |
---|
232 | } |
---|
233 | |
---|
234 | .user-menu.dropdown-close.pull-right { |
---|
235 | right: 0 !important; |
---|
236 | } |
---|
237 | } |
---|
238 | |
---|
239 | @media only screen and (max-width: @screen-xs) { |
---|
240 | .ace-nav > li:nth-last-child(4) > .dropdown-menu.pull-right { |
---|
241 | right:-120px; |
---|
242 | } |
---|
243 | .ace-nav > li:nth-last-child(4) > .dropdown-menu.pull-right:before, |
---|
244 | .ace-nav > li:nth-last-child(4) > .dropdown-menu.pull-right:after { |
---|
245 | right:140px; |
---|
246 | } |
---|
247 | |
---|
248 | .ace-nav > li:nth-last-child(3) > .dropdown-menu.pull-right { |
---|
249 | right:-80px; |
---|
250 | } |
---|
251 | .ace-nav > li:nth-last-child(3) > .dropdown-menu.pull-right:before, |
---|
252 | .ace-nav > li:nth-last-child(3) > .dropdown-menu.pull-right:after { |
---|
253 | right:100px; |
---|
254 | } |
---|
255 | |
---|
256 | .ace-nav > li:nth-last-child(2) > .dropdown-menu.pull-right { |
---|
257 | right:-50px; |
---|
258 | } |
---|
259 | .ace-nav > li:nth-last-child(2) > .dropdown-menu.pull-right:before, |
---|
260 | .ace-nav > li:nth-last-child(2) > .dropdown-menu.pull-right:after { |
---|
261 | right:70px; |
---|
262 | } |
---|
263 | } |
---|
264 | |
---|
265 | |
---|
266 | @media only screen and (max-width: @screen-topbar-down) { |
---|
267 | .ace-nav > li:nth-last-child(4) > .dropdown-menu.pull-right { |
---|
268 | left:-5px; |
---|
269 | right:auto; |
---|
270 | } |
---|
271 | .ace-nav > li:nth-last-child(4) > .dropdown-menu.pull-right:before, |
---|
272 | .ace-nav > li:nth-last-child(4) > .dropdown-menu.pull-right:after { |
---|
273 | right:auto; |
---|
274 | left:25px; |
---|
275 | } |
---|
276 | |
---|
277 | .ace-nav > li:nth-last-child(3) > .dropdown-menu.pull-right { |
---|
278 | left:-60px; |
---|
279 | right:auto; |
---|
280 | } |
---|
281 | .ace-nav > li:nth-last-child(3) > .dropdown-menu.pull-right:before, |
---|
282 | .ace-nav > li:nth-last-child(3) > .dropdown-menu.pull-right:after { |
---|
283 | left:80px; |
---|
284 | right:auto; |
---|
285 | } |
---|
286 | |
---|
287 | .ace-nav > li:nth-last-child(2) > .dropdown-menu.pull-right { |
---|
288 | left:-110px; |
---|
289 | right:auto; |
---|
290 | } |
---|
291 | .ace-nav > li:nth-last-child(2) > .dropdown-menu.pull-right:before, |
---|
292 | .ace-nav > li:nth-last-child(2) > .dropdown-menu.pull-right:after { |
---|
293 | left:130px; |
---|
294 | right:auto; |
---|
295 | } |
---|
296 | } |
---|
297 | |
---|
298 | |
---|
299 | /* move the icons to the line below */ |
---|
300 | @media only screen and (max-width: @screen-topbar-down) { |
---|
301 | .navbar .navbar-header.pull-left { |
---|
302 | display:block; |
---|
303 | float:none !important; |
---|
304 | } |
---|
305 | .navbar .navbar-header.pull-right { |
---|
306 | display:block; |
---|
307 | float:none !important; |
---|
308 | } |
---|
309 | |
---|
310 | /*.navbar .navbar-inner { |
---|
311 | border-bottom-width:0; |
---|
312 | }*/ |
---|
313 | .ace-nav { |
---|
314 | display:block; |
---|
315 | float:none !important; |
---|
316 | text-align:center; |
---|
317 | |
---|
318 | background-color:#404040; |
---|
319 | |
---|
320 | border:1px solid #DDD; |
---|
321 | border-width:1px 0; |
---|
322 | |
---|
323 | letter-spacing: -3px; |
---|
324 | } |
---|
325 | .ace-nav > li{ |
---|
326 | display:inline-block; |
---|
327 | float:none !important; |
---|
328 | text-align:left; |
---|
329 | |
---|
330 | letter-spacing: normal; |
---|
331 | } |
---|
332 | .ace-nav > li:first-child{ |
---|
333 | border-left:1px solid #DDD; |
---|
334 | } |
---|
335 | .ace-nav > li:last-child{ |
---|
336 | border-right:1px solid #DDD; |
---|
337 | } |
---|
338 | } |
---|
339 | |
---|
340 | @media only screen and (max-width: @screen-tiny) { |
---|
341 | .ace-nav > li > a { |
---|
342 | padding:0 5px !important; |
---|
343 | } |
---|
344 | } |
---|
345 | |
---|
346 | |
---|
347 | |
---|
348 | |
---|
349 | |
---|
350 | |
---|
351 | .user-menu > li > a { |
---|
352 | padding:4px 12px; |
---|
353 | |
---|
354 | > [class*="icon-"] { |
---|
355 | margin-right:6px; |
---|
356 | font-size:120%; |
---|
357 | } |
---|
358 | } |
---|
359 | |
---|
360 | .user-info { |
---|
361 | max-width:100px; |
---|
362 | display:inline-block; |
---|
363 | overflow:hidden; |
---|
364 | text-overflow:ellipsis; |
---|
365 | white-space:nowrap; |
---|
366 | text-align:left; |
---|
367 | |
---|
368 | vertical-align:top; |
---|
369 | line-height:15px; |
---|
370 | position:relative; top:6px; |
---|
371 | |
---|
372 | small { |
---|
373 | display:block; |
---|
374 | } |
---|
375 | } |
---|
376 | |
---|
377 | @media (min-width: @screen-topbar-down-min) and (max-width: @screen-xs) , (max-width: 360px) { |
---|
378 | .user-menu { |
---|
379 | padding-top:42px !important; |
---|
380 | } |
---|
381 | .ace-nav .nav-user-photo { |
---|
382 | margin-right:0; |
---|
383 | } |
---|
384 | .user-info { |
---|
385 | position:absolute !important; |
---|
386 | margin-top:40px; margin-left:1px; right:2px; |
---|
387 | |
---|
388 | z-index:1032; |
---|
389 | color:#777; font-size:14px; |
---|
390 | width:156px; |
---|
391 | max-width:156px; |
---|
392 | |
---|
393 | padding-left:8px; |
---|
394 | padding-right:8px; |
---|
395 | height:32px; |
---|
396 | line-height:26px !important; |
---|
397 | |
---|
398 | |
---|
399 | display:none; |
---|
400 | |
---|
401 | border-bottom:1px solid #E5E5E5; |
---|
402 | |
---|
403 | text-align:center; |
---|
404 | |
---|
405 | vertical-align:none; |
---|
406 | line-height:normal; |
---|
407 | } |
---|
408 | |
---|
409 | .user-info > small { |
---|
410 | display:inline; |
---|
411 | opacity:1; |
---|
412 | } |
---|
413 | |
---|
414 | li.open .user-info { |
---|
415 | display:inline-block; |
---|
416 | } |
---|
417 | } |
---|
418 | |
---|