aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMickael Perraud <[email protected]>2012-08-15 00:11:57 +0200
committerMickael Perraud <[email protected]>2012-08-15 00:11:57 +0200
commit41093a328edd8b49f68bc1f817506ada11b568ef (patch)
tree98ee903f58ba0280914d94cf14f1995e3bfe2985
parent75e5279e015c20e54308f9b8e8cd346ffc63ed4e (diff)
downloadbootstrap-41093a328edd8b49f68bc1f817506ada11b568ef.tar.xz
bootstrap-41093a328edd8b49f68bc1f817506ada11b568ef.zip
Center text in navbar with change to @baseLineHeight (18 -> 20px)
-rw-r--r--less/navbar.less7
1 files changed, 2 insertions, 5 deletions
diff --git a/less/navbar.less b/less/navbar.less
index 4306047c7..4599d808d 100644
--- a/less/navbar.less
+++ b/less/navbar.less
@@ -47,9 +47,7 @@
float: left;
display: block;
// Vertically center the text given @navbarHeight
- @elementHeight: 20px;
- @heightDifference: @navbarHeight - @elementHeight;
- padding: ((@heightDifference / 2) - 2) 20px ((@heightDifference / 2) + 2);
+ padding: ((@navbarHeight - @baseLineHeight) / 2) 20px ((@navbarHeight - @baseLineHeight) / 2);
margin-left: -20px; // negative indent to left-align the text down the page
font-size: 20px;
font-weight: 200;
@@ -207,8 +205,7 @@
.navbar .nav > li > a {
float: none;
// Vertically center the text given @navbarHeight
- @elementHeight: 20px;
- padding: ((@navbarHeight - @elementHeight) / 2) 15px ((@navbarHeight - @elementHeight) / 2);
+ padding: ((@navbarHeight - @baseLineHeight) / 2) 15px ((@navbarHeight - @baseLineHeight) / 2);
color: @navbarLinkColor;
text-decoration: none;
text-shadow: 0 1px 0 @navbarBackgroundHighlight;