Top and Bottom Padding should be removed from navbar-brand

When using a theme other than 'default', a custom logo that is too
big won't be sized to fit inside of the header exactly perfectly.
The 'default' theme does this.  The style just needs to be moved
outside of 'default' theme to be global.

Change-Id: I241e49ad94cba24592209f5f4f23eedeb0e592a6
Closes-Bug: #1518123
This commit is contained in:
Diana Whitten 2015-11-19 16:20:28 -07:00
parent 7e357e7507
commit 171f835fc4
2 changed files with 13 additions and 15 deletions

View File

@ -1,4 +1,14 @@
.navbar-brand img {
max-height: $navbar-height;
vertical-align: middle;
.navbar-brand {
padding: 0 $padding-small-horizontal;
margin: 0;
display: block;
// These allow the vertical centering to work properly
line-height: $navbar-height;
font-size: 0;
img {
max-height: $navbar-height;
vertical-align: middle;
}
}

View File

@ -1,15 +1,3 @@
.navbar-brand {
display: block;
padding: 0 $padding-small-horizontal;
&:before {
content: '';
display: inline-block;
height: 100%;
vertical-align: middle;
}
}
.navbar {
margin-bottom: 0;
border-top: none;