After updating from Bootstrap 3.0 to 3.2 I've noticed problem with navbar when collapsing on smaller devices.
For smaller resolutions than 768px navbar behaviour is ok. But for resolutions between 768px and about 990px (I suppose the next bigger threshold) the collapsible navbar was permanently open. After click on toggle button it begins to animate like when hiding, but on the end of animation the collapsible navbar shows again.
During investigation with firebug it appeared that 'display' attribute for all .collapse is defined in
but for certain conditions (screen width) it is redefined in:
|
display: block !important; |
Due to this, I overrided it with this code in my custom.css:
@media (min-width: 768px) and (max-width: 991px) {
.navbar-collapse.collapse {
display: none !important;
}
.navbar-collapse.collapse.in {
display: block !important;
}
}
and this let it work for all screen sizes.
I think it's a bug :( I'm attaching screenshot from firebug that shows overriding for this styles:

I don't know if just removing L69 in navbar.less is enough, but it appears it is.
So I'm sending this for experts :)
After updating from Bootstrap 3.0 to 3.2 I've noticed problem with navbar when collapsing on smaller devices.
For smaller resolutions than 768px navbar behaviour is ok. But for resolutions between 768px and about 990px (I suppose the next bigger threshold) the collapsible navbar was permanently open. After click on toggle button it begins to animate like when hiding, but on the end of animation the collapsible navbar shows again.
During investigation with firebug it appeared that 'display' attribute for all .collapse is defined in
bootstrap/less/component-animations.less
Line 19 in 94472ee
bootstrap/less/navbar.less
Line 69 in 94472ee
Due to this, I overrided it with this code in my custom.css:
and this let it work for all screen sizes.
I think it's a bug :( I'm attaching screenshot from firebug that shows overriding for this styles:

I don't know if just removing L69 in navbar.less is enough, but it appears it is.
So I'm sending this for experts :)