mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
fixes #4578: add clearfix to .navbar-inner to clear floats
This commit is contained in:
parent
54e3a26dda
commit
fcd08fce8f
12
docs/assets/css/bootstrap.css
vendored
12
docs/assets/css/bootstrap.css
vendored
@ -4113,11 +4113,23 @@ input[type="submit"].btn.btn-mini {
|
|||||||
-moz-border-radius: 4px;
|
-moz-border-radius: 4px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff2f2f2', GradientType=0);
|
filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff2f2f2', GradientType=0);
|
||||||
|
*zoom: 1;
|
||||||
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
|
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
|
||||||
-moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
|
-moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
|
||||||
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.navbar-inner:before,
|
||||||
|
.navbar-inner:after {
|
||||||
|
display: table;
|
||||||
|
line-height: 0;
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-inner:after {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
|
||||||
.navbar .container {
|
.navbar .container {
|
||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
|
@ -27,6 +27,9 @@
|
|||||||
border: 1px solid @navbarBorder;
|
border: 1px solid @navbarBorder;
|
||||||
.border-radius(4px);
|
.border-radius(4px);
|
||||||
.box-shadow(0 1px 4px rgba(0,0,0,.065));
|
.box-shadow(0 1px 4px rgba(0,0,0,.065));
|
||||||
|
|
||||||
|
// Prevent floats from breaking the navbar
|
||||||
|
.clearfix();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set width to auto for default container
|
// Set width to auto for default container
|
||||||
|
Loading…
x
Reference in New Issue
Block a user