mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-11 08:04:59 +02:00
fixes #10495 by forcing .navbar-brand height to prevent it's inner content from increasing navbar height
This commit is contained in:
6
dist/css/bootstrap.css
vendored
6
dist/css/bootstrap.css
vendored
@@ -3739,16 +3739,12 @@ textarea.input-group-sm > .input-group-btn > .btn {
|
|||||||
padding: 15px 15px;
|
padding: 15px 15px;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
|
height: 20px;
|
||||||
}
|
}
|
||||||
.navbar-brand:hover,
|
.navbar-brand:hover,
|
||||||
.navbar-brand:focus {
|
.navbar-brand:focus {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
.navbar-brand > .glyphicon {
|
|
||||||
float: left;
|
|
||||||
margin-top: -2px;
|
|
||||||
margin-right: 5px;
|
|
||||||
}
|
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
.navbar > .container .navbar-brand,
|
.navbar > .container .navbar-brand,
|
||||||
.navbar > .container-fluid .navbar-brand {
|
.navbar > .container-fluid .navbar-brand {
|
||||||
|
2
dist/css/bootstrap.min.css
vendored
2
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -155,19 +155,13 @@
|
|||||||
padding: @navbar-padding-vertical @navbar-padding-horizontal;
|
padding: @navbar-padding-vertical @navbar-padding-horizontal;
|
||||||
font-size: @font-size-large;
|
font-size: @font-size-large;
|
||||||
line-height: @line-height-computed;
|
line-height: @line-height-computed;
|
||||||
|
height: @line-height-computed;
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&:focus {
|
&:focus {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Prevent Glyphicons from increasing height of navbar
|
|
||||||
> .glyphicon {
|
|
||||||
float: left;
|
|
||||||
margin-top: -2px;
|
|
||||||
margin-right: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: @grid-float-breakpoint) {
|
@media (min-width: @grid-float-breakpoint) {
|
||||||
.navbar > .container &,
|
.navbar > .container &,
|
||||||
.navbar > .container-fluid & {
|
.navbar > .container-fluid & {
|
||||||
|
Reference in New Issue
Block a user