提交 | 用户 | 时间
|
58d006
|
1 |
//the .navbar.navbar-collapse |
A |
2 |
@media only screen and (max-width: @grid-float-breakpoint-max) { |
|
3 |
.navbar.navbar-collapse { |
|
4 |
max-height: none; |
|
5 |
} |
|
6 |
|
|
7 |
.navbar { |
|
8 |
.navbar-header, .navbar-collapse { |
|
9 |
margin-left: 0 !important; |
|
10 |
margin-right: 0 !important |
|
11 |
} |
|
12 |
} |
|
13 |
|
|
14 |
|
|
15 |
//.navbar.navbar-collapse .nav-brand |
|
16 |
.navbar.navbar-collapse .navbar-header { |
|
17 |
float: none !important; |
|
18 |
min-height: @navbar-min-height; |
|
19 |
} |
|
20 |
|
|
21 |
//will become hidden and a .navbar-toggle button toggles it |
|
22 |
.navbar.navbar-collapse .navbar-buttons { |
|
23 |
min-height: 0;//the above @navbar-min-height will interfere with CSS3 transition |
|
24 |
|
|
25 |
padding-left: 0; |
|
26 |
padding-right: 0; |
|
27 |
|
|
28 |
border: 1px solid @ace-nav-border; |
|
29 |
border-width: 1px 0 0; |
|
30 |
|
|
31 |
width: 100%; |
|
32 |
|
|
33 |
&.in { |
|
34 |
overflow: visible !important; |
|
35 |
} |
|
36 |
|
|
37 |
> .ace-nav { |
|
38 |
display: block; |
|
39 |
float: none !important; |
|
40 |
text-align: center; |
|
41 |
|
|
42 |
background-color: transparent !important; |
|
43 |
|
|
44 |
border-width:0; |
|
45 |
|
|
46 |
letter-spacing: -3px; |
|
47 |
> li { |
|
48 |
display: inline-block; |
|
49 |
float:none !important; |
|
50 |
text-align: left; |
|
51 |
|
|
52 |
letter-spacing: normal; |
|
53 |
|
|
54 |
&:first-child { |
|
55 |
border-left: 1px solid @ace-nav-border; |
|
56 |
} |
|
57 |
&:last-child { |
|
58 |
border-right: 1px solid @ace-nav-border; |
|
59 |
} |
|
60 |
} |
|
61 |
} |
|
62 |
} |
|
63 |
} |
|
64 |
.container > .navbar-buttons, .container-fluid > .navbar-buttons { |
|
65 |
padding-right: 0 !important; |
|
66 |
} |
|
67 |
|
|
68 |
|
|
69 |
|
|
70 |
//make fixed navbar-collapse smaller so scrollbars show all content when needed |
|
71 |
@media only screen and (max-height: 400px) { |
|
72 |
.navbar-fixed-top .navbar-collapse { |
|
73 |
max-height: 280px; |
|
74 |
} |
|
75 |
} |
|
76 |
@media only screen and (max-height: 360px) { |
|
77 |
.navbar-fixed-top .navbar-collapse { |
|
78 |
max-height: 240px; |
|
79 |
} |
|
80 |
} |
|
81 |
@media only screen and (max-height: 320px) { |
|
82 |
.navbar-fixed-top .navbar-collapse { |
|
83 |
max-height: 200px; |
|
84 |
} |
|
85 |
} |
|
86 |
@media only screen and (max-height: 280px) { |
|
87 |
.navbar-fixed-top .navbar-collapse { |
|
88 |
max-height: 160px; |
|
89 |
} |
|
90 |
} |
|
91 |
@media only screen and (max-height: 240px) { |
|
92 |
.navbar-fixed-top .navbar-collapse { |
|
93 |
max-height: 120px; |
|
94 |
} |
|
95 |
} |