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
9f732e90
Commit
9f732e90
authored
Jan 15, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make horizontal form labels map to default grid sizing
parent
fe160261
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
18 deletions
+10
-18
bootstrap.css
bootstrap.css
+4
-7
bootstrap.min.css
bootstrap.min.css
+3
-4
lib/forms.less
lib/forms.less
+3
-7
No files found.
bootstrap.css
View file @
9f732e90
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Date: Sun Jan 15 11:
29:00
PST 2012
* Date: Sun Jan 15 11:
32:55
PST 2012
*/
*/
html
,
body
{
html
,
body
{
margin
:
0
;
margin
:
0
;
...
@@ -963,20 +963,17 @@ input::-webkit-input-placeholder {
...
@@ -963,20 +963,17 @@ input::-webkit-input-placeholder {
.control-group
{
.control-group
{
margin-bottom
:
18px
;
margin-bottom
:
18px
;
}
}
.control-group
>
label
{
font-weight
:
bold
;
}
.form-horizontal
.control-group
>
label
{
.form-horizontal
.control-group
>
label
{
float
:
left
;
float
:
left
;
width
:
1
3
0px
;
width
:
1
2
0px
;
padding-top
:
5px
;
padding-top
:
5px
;
text-align
:
right
;
text-align
:
right
;
}
}
.form-horizontal
.controls
{
.form-horizontal
.controls
{
margin-left
:
1
5
0px
;
margin-left
:
1
4
0px
;
}
}
.form-horizontal
.form-actions
{
.form-horizontal
.form-actions
{
padding-left
:
1
5
0px
;
padding-left
:
1
4
0px
;
}
}
table
{
table
{
width
:
100%
;
width
:
100%
;
...
...
bootstrap.min.css
View file @
9f732e90
...
@@ -172,10 +172,9 @@ input::-webkit-input-placeholder{color:#999999;}
...
@@ -172,10 +172,9 @@ input::-webkit-input-placeholder{color:#999999;}
.form-search
input
,
.form-inline
input
,
.form-horizontal
input
,
.form-search
textarea
,
.form-inline
textarea
,
.form-horizontal
textarea
,
.form-search
select
,
.form-inline
select
,
.form-horizontal
select
,
.form-search
.uneditable-input
,
.form-inline
.uneditable-input
,
.form-horizontal
.uneditable-input
{
display
:
inline-block
;
margin-bottom
:
0
;}
.form-search
input
,
.form-inline
input
,
.form-horizontal
input
,
.form-search
textarea
,
.form-inline
textarea
,
.form-horizontal
textarea
,
.form-search
select
,
.form-inline
select
,
.form-horizontal
select
,
.form-search
.uneditable-input
,
.form-inline
.uneditable-input
,
.form-horizontal
.uneditable-input
{
display
:
inline-block
;
margin-bottom
:
0
;}
.form-search
label
,
.form-inline
label
{
display
:
inline-block
;}
.form-search
label
,
.form-inline
label
{
display
:
inline-block
;}
.control-group
{
margin-bottom
:
18px
;}
.control-group
{
margin-bottom
:
18px
;}
.control-group
>
label
{
font-weight
:
bold
;}
.form-horizontal
.control-group
>
label
{
float
:
left
;
width
:
120px
;
padding-top
:
5px
;
text-align
:
right
;}
.form-horizontal
.control-group
>
label
{
float
:
left
;
width
:
130px
;
padding-top
:
5px
;
text-align
:
right
;}
.form-horizontal
.controls
{
margin-left
:
140px
;}
.form-horizontal
.controls
{
margin-left
:
150px
;}
.form-horizontal
.form-actions
{
padding-left
:
140px
;}
.form-horizontal
.form-actions
{
padding-left
:
150px
;}
table
{
width
:
100%
;
margin-bottom
:
18px
;}
table
{
width
:
100%
;
margin-bottom
:
18px
;}
th
,
td
{
padding
:
8px
;
line-height
:
18px
;
text-align
:
left
;
border-top
:
1px
solid
#ddd
;}
th
,
td
{
padding
:
8px
;
line-height
:
18px
;
text-align
:
left
;
border-top
:
1px
solid
#ddd
;}
th
{
font-weight
:
bold
;
vertical-align
:
bottom
;}
th
{
font-weight
:
bold
;
vertical-align
:
bottom
;}
...
...
lib/forms.less
View file @
9f732e90
...
@@ -461,10 +461,6 @@ input::-webkit-input-placeholder {
...
@@ -461,10 +461,6 @@ input::-webkit-input-placeholder {
.control-group {
.control-group {
margin-bottom: @baseLineHeight;
margin-bottom: @baseLineHeight;
}
}
// Bold the labels so they stand out
.control-group > label {
font-weight: bold;
}
// Horizontal-specific styles
// Horizontal-specific styles
// --------------------------
// --------------------------
...
@@ -473,16 +469,16 @@ input::-webkit-input-placeholder {
...
@@ -473,16 +469,16 @@ input::-webkit-input-placeholder {
// Float the labels left
// Float the labels left
.control-group > label {
.control-group > label {
float: left;
float: left;
width: 1
3
0px;
width: 1
2
0px;
padding-top: 5px;
padding-top: 5px;
text-align: right;
text-align: right;
}
}
// Move over all input controls and content
// Move over all input controls and content
.controls {
.controls {
margin-left: 1
5
0px;
margin-left: 1
4
0px;
}
}
// Move over buttons in .form-actions to align with .controls
// Move over buttons in .form-actions to align with .controls
.form-actions {
.form-actions {
padding-left: 1
5
0px;
padding-left: 1
4
0px;
}
}
}
}
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