mirror of
https://github.com/twbs/bootstrap.git
synced 2025-04-06 23:57:36 +02:00
Fix #11513: Don't always float navbar-text
`navbar-text` should only float when the navbar is expanded on larger screens, otherwise the element might be (hidden) behind `navbar-nav`. Fixes #11513. X-Ref: #8820 #8815
This commit is contained in:
parent
6b547b357a
commit
cdb243706e
@ -340,10 +340,10 @@
|
|||||||
// Add a class to make any element properly align itself vertically within the navbars.
|
// Add a class to make any element properly align itself vertically within the navbars.
|
||||||
|
|
||||||
.navbar-text {
|
.navbar-text {
|
||||||
float: left;
|
|
||||||
.navbar-vertical-align(@line-height-computed);
|
.navbar-vertical-align(@line-height-computed);
|
||||||
|
|
||||||
@media (min-width: @grid-float-breakpoint) {
|
@media (min-width: @grid-float-breakpoint) {
|
||||||
|
float: left;
|
||||||
margin-left: @navbar-padding-horizontal;
|
margin-left: @navbar-padding-horizontal;
|
||||||
margin-right: @navbar-padding-horizontal;
|
margin-right: @navbar-padding-horizontal;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user