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
1cf0a07f
Commit
1cf0a07f
authored
Jul 26, 2013
by
Mark Otto
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'patch-3' of
https://github.com/jholl/bootstrap
into jholl-patch-3
Conflicts: css.html
parents
444973e5
2e7593a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
css.html
css.html
+3
-3
less/forms.less
less/forms.less
+1
-6
No files found.
css.html
View file @
1cf0a07f
...
@@ -1254,13 +1254,13 @@ For example, <code><section></code> should be wrapped as inline.
...
@@ -1254,13 +1254,13 @@ For example, <code><section></code> should be wrapped as inline.
<h3
id=
"forms-horizontal"
>
Horizontal form
</h3>
<h3
id=
"forms-horizontal"
>
Horizontal form
</h3>
<p>
Use Bootstrap's predefined grid classes to align labels and groups of form controls in a horizontal layout.
</p>
<p>
Use Bootstrap's predefined grid classes to align labels and groups of form controls in a horizontal layout.
</p>
<form
class=
"bs-example form-horizontal"
>
<form
class=
"bs-example form-horizontal"
>
<div
class=
"row"
>
<div
class=
"row
form-group
"
>
<label
for=
"inputEmail"
class=
"col-lg-2 control-label"
>
Email
</label>
<label
for=
"inputEmail"
class=
"col-lg-2 control-label"
>
Email
</label>
<div
class=
"col-lg-10"
>
<div
class=
"col-lg-10"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail"
placeholder=
"Email"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail"
placeholder=
"Email"
>
</div>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"row
form-group
"
>
<label
for=
"inputPassword"
class=
"col-lg-2 control-label"
>
Password
</label>
<label
for=
"inputPassword"
class=
"col-lg-2 control-label"
>
Password
</label>
<div
class=
"col-lg-10"
>
<div
class=
"col-lg-10"
>
<input
type=
"password"
class=
"form-control"
id=
"inputPassword"
placeholder=
"Password"
>
<input
type=
"password"
class=
"form-control"
id=
"inputPassword"
placeholder=
"Password"
>
...
@@ -1283,7 +1283,7 @@ For example, <code><section></code> should be wrapped as inline.
...
@@ -1283,7 +1283,7 @@ For example, <code><section></code> should be wrapped as inline.
<input
type=
"text"
class=
"form-control"
id=
"inputEmail"
placeholder=
"Email"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail"
placeholder=
"Email"
>
</div>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"row
form-group
"
>
<label
for=
"inputPassword"
class=
"col-lg-2 control-label"
>
Password
</label>
<label
for=
"inputPassword"
class=
"col-lg-2 control-label"
>
Password
</label>
<div
class=
"col-lg-10"
>
<div
class=
"col-lg-10"
>
<input
type=
"password"
class=
"form-control"
id=
"inputPassword"
placeholder=
"Password"
>
<input
type=
"password"
class=
"form-control"
id=
"inputPassword"
placeholder=
"Password"
>
...
...
less/forms.less
View file @
1cf0a07f
...
@@ -421,13 +421,8 @@ select {
...
@@ -421,13 +421,8 @@ select {
// --------------------------------------------------
// --------------------------------------------------
// Horizontal forms are built on grid classes.
// Horizontal forms are built on grid classes.
.form-horizontal {
.form-horizontal .control-label {
.row + .row {
margin-top: 15px;
}
.control-label {
padding-top: 6px;
padding-top: 6px;
}
}
}
// Only right align form labels here when the columns stop stacking
// Only right align form labels here when the columns stop stacking
...
...
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