collapsible.less
1.97 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
89
90
91
92
93
94
95
//the .navbar.navbar-collapse
@media only screen and (max-width: @grid-float-breakpoint-max) {
.navbar.navbar-collapse {
max-height: none;
}
.navbar {
.navbar-header, .navbar-collapse {
margin-left: 0 !important;
margin-right: 0 !important
}
}
//.navbar.navbar-collapse .nav-brand {
.navbar.navbar-collapse .navbar-header {
float: none !important;
min-height: @navbar-min-height;
}
//will become hidden and a .navbar-toggle button toggles it
.navbar.navbar-collapse .navbar-buttons {
min-height: 0;//the above @navbar-min-height will interfere with CSS3 transition
padding-left: 0;
padding-right: 0;
border: 1px solid @ace-nav-border;
border-width: 1px 0 0;
width: 100%;
&.in {
overflow: visible !important;
}
> .ace-nav {
display: block;
float: none !important;
text-align: center;
background-color: transparent !important;
border-width:0;
letter-spacing: -3px;
> li {
display: inline-block;
float:none !important;
text-align: left;
letter-spacing: normal;
&:first-child {
border-left: 1px solid @ace-nav-border;
}
&:last-child {
border-right: 1px solid @ace-nav-border;
}
}
}
}
}
.container > .navbar-buttons, .container-fluid > .navbar-buttons {
padding-right: 0 !important;
}
//make fixed navbar-collapse smaller so scrollbars show all content when needed
@media only screen and (max-height: 400px) {
.navbar-fixed-top .navbar-collapse {
max-height: 280px;
}
}
@media only screen and (max-height: 360px) {
.navbar-fixed-top .navbar-collapse {
max-height: 240px;
}
}
@media only screen and (max-height: 320px) {
.navbar-fixed-top .navbar-collapse {
max-height: 200px;
}
}
@media only screen and (max-height: 280px) {
.navbar-fixed-top .navbar-collapse {
max-height: 160px;
}
}
@media only screen and (max-height: 240px) {
.navbar-fixed-top .navbar-collapse {
max-height: 120px;
}
}