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
7fa99fb1
Commit
7fa99fb1
authored
Jul 30, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix navbar form alignment, and update examples to show these cases
parent
6bf661ac
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
17 deletions
+18
-17
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+2
-2
docs/examples/fluid.html
docs/examples/fluid.html
+3
-11
docs/examples/hero.html
docs/examples/hero.html
+5
-0
less/navbar.less
less/navbar.less
+3
-2
less/tests/css-tests.html
less/tests/css-tests.html
+5
-2
No files found.
docs/assets/css/bootstrap.css
View file @
7fa99fb1
...
...
@@ -4018,7 +4018,7 @@ input[type="submit"].btn.btn-mini {
.navbar
.brand
{
display
:
block
;
float
:
left
;
padding
:
10px
20px
10
px
;
padding
:
8px
20px
12
px
;
margin-left
:
-20px
;
font-size
:
20px
;
font-weight
:
200
;
...
...
@@ -4072,7 +4072,7 @@ input[type="submit"].btn.btn-mini {
.navbar-form
select
,
.navbar-form
.radio
,
.navbar-form
.checkbox
{
margin-top
:
6
px
;
margin-top
:
5
px
;
}
.navbar-form
input
,
...
...
docs/examples/fluid.html
View file @
7fa99fb1
...
...
@@ -44,18 +44,10 @@
<span
class=
"icon-bar"
></span>
</a>
<a
class=
"brand"
href=
"#"
>
Project name
</a>
<div
class=
"btn-group pull-right"
>
<a
class=
"btn dropdown-toggle"
data-toggle=
"dropdown"
href=
"#"
>
<i
class=
"icon-user"
></i>
Username
<span
class=
"caret"
></span>
</a>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"#"
>
Profile
</a></li>
<li
class=
"divider"
></li>
<li><a
href=
"#"
>
Sign Out
</a></li>
</ul>
</div>
<div
class=
"nav-collapse collapse"
>
<p
class=
"navbar-text pull-right"
>
Logged in as
<a
href=
"#"
class=
"navbar-link"
>
Username
</a>
</p>
<ul
class=
"nav"
>
<li
class=
"active"
><a
href=
"#"
>
Home
</a></li>
<li><a
href=
"#about"
>
About
</a></li>
...
...
docs/examples/hero.html
View file @
7fa99fb1
...
...
@@ -47,6 +47,11 @@
<li><a
href=
"#about"
>
About
</a></li>
<li><a
href=
"#contact"
>
Contact
</a></li>
</ul>
<form
class=
"navbar-form pull-right"
>
<input
class=
"span2"
type=
"text"
placeholder=
"Email"
>
<input
class=
"span2"
type=
"password"
placeholder=
"Password"
>
<button
type=
"submit"
class=
"btn"
>
Sign in
</button>
</form>
</div>
<!--/.nav-collapse -->
</div>
</div>
...
...
less/navbar.less
View file @
7fa99fb1
...
...
@@ -48,7 +48,8 @@
display: block;
// Vertically center the text given @navbarHeight
@elementHeight: 20px;
padding: ((@navbarHeight - @elementHeight) / 2) 20px ((@navbarHeight - @elementHeight) / 2);
@heightDifference: @navbarHeight - @elementHeight;
padding: ((@heightDifference / 2) - 2) 20px ((@heightDifference / 2) + 2);
margin-left: -20px; // negative indent to left-align the text down the page
font-size: 20px;
font-weight: 200;
...
...
@@ -93,7 +94,7 @@
select,
.radio,
.checkbox {
.navbarVerticalAlign(
28
px); // Vertically center in navbar
.navbarVerticalAlign(
30
px); // Vertically center in navbar
}
input,
select,
...
...
less/tests/css-tests.html
View file @
7fa99fb1
...
...
@@ -34,7 +34,7 @@
<!-- Navbar
================================================== -->
<div
class=
"navbar navbar-fixed-top"
>
<div
class=
"navbar navbar-
inverse navbar-
fixed-top"
>
<div
class=
"navbar-inner"
>
<div
class=
"container"
>
<a
class=
"brand"
href=
"../../docs/index.html"
>
Bootstrap
</a>
...
...
@@ -53,7 +53,9 @@
</header>
<div
class=
"container"
>
<div
class=
"bs-docs-canvas"
>
<div
class=
"container"
>
...
...
@@ -1096,6 +1098,7 @@
</div>
</footer>
</div>
<!-- Le javascript
...
...
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