Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
b81a082c
Commit
b81a082c
authored
Mar 25, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add navbarheight support to .brand and .nav links in navbar
parent
6c5c29ad
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
docs/assets/bootstrap.zip
docs/assets/bootstrap.zip
+0
-0
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+2
-1
less/navbar.less
less/navbar.less
+8
-2
No files found.
docs/assets/bootstrap.zip
View file @
b81a082c
No preview for this file type
docs/assets/css/bootstrap.css
View file @
b81a082c
...
...
@@ -2804,6 +2804,7 @@ input[type="submit"].btn.btn-mini {
margin-bottom
:
18px
;
}
.navbar-inner
{
height
:
40px
;
padding-left
:
20px
;
padding-right
:
20px
;
background-color
:
#2c2c2c
;
...
...
@@ -3030,7 +3031,7 @@ input[type="submit"].btn.btn-mini {
}
.navbar
.nav
>
li
>
a
{
float
:
none
;
padding
:
10
px
10px
11px
;
padding
:
9
px
10px
11px
;
line-height
:
19px
;
color
:
#999999
;
text-decoration
:
none
;
...
...
less/navbar.less
View file @
b81a082c
...
...
@@ -16,6 +16,7 @@
// Gradient is applied to it's own element because overflow visible is not honored by IE when filter is present
.navbar-inner {
height: @navbarHeight;
padding-left: 20px;
padding-right: 20px;
#gradient > .vertical(@navbarBackgroundHighlight, @navbarBackground);
...
...
@@ -69,7 +70,10 @@
.brand {
float: left;
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
font-size: 20px;
font-weight: 200;
...
...
@@ -225,7 +229,9 @@
// Links
.navbar .nav > li > a {
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;
color: @navbarLinkColor;
text-decoration: none;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment