mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-14 09:34:36 +02:00
add navbarheight support to .brand and .nav links in navbar
This commit is contained in:
Binary file not shown.
3
docs/assets/css/bootstrap.css
vendored
3
docs/assets/css/bootstrap.css
vendored
@@ -2804,6 +2804,7 @@ input[type="submit"].btn.btn-mini {
|
|||||||
margin-bottom: 18px;
|
margin-bottom: 18px;
|
||||||
}
|
}
|
||||||
.navbar-inner {
|
.navbar-inner {
|
||||||
|
height: 40px;
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
background-color: #2c2c2c;
|
background-color: #2c2c2c;
|
||||||
@@ -3030,7 +3031,7 @@ input[type="submit"].btn.btn-mini {
|
|||||||
}
|
}
|
||||||
.navbar .nav > li > a {
|
.navbar .nav > li > a {
|
||||||
float: none;
|
float: none;
|
||||||
padding: 10px 10px 11px;
|
padding: 9px 10px 11px;
|
||||||
line-height: 19px;
|
line-height: 19px;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
@@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
// Gradient is applied to it's own element because overflow visible is not honored by IE when filter is present
|
// Gradient is applied to it's own element because overflow visible is not honored by IE when filter is present
|
||||||
.navbar-inner {
|
.navbar-inner {
|
||||||
|
height: @navbarHeight;
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
#gradient > .vertical(@navbarBackgroundHighlight, @navbarBackground);
|
#gradient > .vertical(@navbarBackgroundHighlight, @navbarBackground);
|
||||||
@@ -69,7 +70,10 @@
|
|||||||
.brand {
|
.brand {
|
||||||
float: left;
|
float: left;
|
||||||
display: block;
|
display: block;
|
||||||
padding: 8px 20px 12px;
|
// Vertically center the text given @navbarHeight
|
||||||
|
@elementHeight: 20px;
|
||||||
|
padding: ((@navbarHeight - @elementHeight) / 2 - 2) 20px ((@navbarHeight - @elementHeight) / 2 + 2);
|
||||||
|
|
||||||
margin-left: -20px; // negative indent to left-align the text down the page
|
margin-left: -20px; // negative indent to left-align the text down the page
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-weight: 200;
|
font-weight: 200;
|
||||||
@@ -225,7 +229,9 @@
|
|||||||
// Links
|
// Links
|
||||||
.navbar .nav > li > a {
|
.navbar .nav > li > a {
|
||||||
float: none;
|
float: none;
|
||||||
padding: 10px 10px 11px;
|
// Vertically center the text given @navbarHeight
|
||||||
|
@elementHeight: 20px;
|
||||||
|
padding: ((@navbarHeight - @elementHeight) / 2 - 1) 10px ((@navbarHeight - @elementHeight) / 2 + 1);
|
||||||
line-height: 19px;
|
line-height: 19px;
|
||||||
color: @navbarLinkColor;
|
color: @navbarLinkColor;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
Reference in New Issue
Block a user