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
e27b1355
Commit
e27b1355
authored
Aug 28, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #4771: widen .form-horizontal labels and .dl-horizontal terms given larger font-size of 2.1.0
parent
545edf54
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
13 deletions
+18
-13
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+6
-6
docs/assets/js/bootstrap.min.js
docs/assets/js/bootstrap.min.js
+1
-1
less/forms.less
less/forms.less
+4
-4
less/type.less
less/type.less
+2
-2
less/variables.less
less/variables.less
+5
-0
No files found.
docs/assets/css/bootstrap.css
View file @
e27b1355
...
@@ -743,7 +743,7 @@ dd {
...
@@ -743,7 +743,7 @@ dd {
.dl-horizontal
dt
{
.dl-horizontal
dt
{
float
:
left
;
float
:
left
;
width
:
1
2
0px
;
width
:
1
6
0px
;
overflow
:
hidden
;
overflow
:
hidden
;
clear
:
left
;
clear
:
left
;
text-align
:
right
;
text-align
:
right
;
...
@@ -752,7 +752,7 @@ dd {
...
@@ -752,7 +752,7 @@ dd {
}
}
.dl-horizontal
dd
{
.dl-horizontal
dd
{
margin-left
:
1
3
0px
;
margin-left
:
1
8
0px
;
}
}
hr
{
hr
{
...
@@ -1775,7 +1775,7 @@ legend + .control-group {
...
@@ -1775,7 +1775,7 @@ legend + .control-group {
.form-horizontal
.control-label
{
.form-horizontal
.control-label
{
float
:
left
;
float
:
left
;
width
:
1
4
0px
;
width
:
1
6
0px
;
padding-top
:
5px
;
padding-top
:
5px
;
text-align
:
right
;
text-align
:
right
;
}
}
...
@@ -1783,12 +1783,12 @@ legend + .control-group {
...
@@ -1783,12 +1783,12 @@ legend + .control-group {
.form-horizontal
.controls
{
.form-horizontal
.controls
{
*
display
:
inline-block
;
*
display
:
inline-block
;
*
padding-left
:
20px
;
*
padding-left
:
20px
;
margin-left
:
1
6
0px
;
margin-left
:
1
8
0px
;
*
margin-left
:
0
;
*
margin-left
:
0
;
}
}
.form-horizontal
.controls
:first-child
{
.form-horizontal
.controls
:first-child
{
*
padding-left
:
1
6
0px
;
*
padding-left
:
1
8
0px
;
}
}
.form-horizontal
.help-block
{
.form-horizontal
.help-block
{
...
@@ -1802,7 +1802,7 @@ legend + .control-group {
...
@@ -1802,7 +1802,7 @@ legend + .control-group {
}
}
.form-horizontal
.form-actions
{
.form-horizontal
.form-actions
{
padding-left
:
1
6
0px
;
padding-left
:
1
8
0px
;
}
}
table
{
table
{
...
...
docs/assets/js/bootstrap.min.js
View file @
e27b1355
This diff is collapsed.
Click to expand it.
less/forms.less
View file @
e27b1355
...
@@ -615,7 +615,7 @@ legend + .control-group {
...
@@ -615,7 +615,7 @@ legend + .control-group {
// Float the labels left
// Float the labels left
.control-label {
.control-label {
float: left;
float: left;
width:
140px
;
width:
@horizontalComponentOffset - 20
;
padding-top: 5px;
padding-top: 5px;
text-align: right;
text-align: right;
}
}
...
@@ -625,10 +625,10 @@ legend + .control-group {
...
@@ -625,10 +625,10 @@ legend + .control-group {
// don't inherit the margin of the parent, in this case .controls
// don't inherit the margin of the parent, in this case .controls
*display: inline-block;
*display: inline-block;
*padding-left: 20px;
*padding-left: 20px;
margin-left:
160px
;
margin-left:
@horizontalComponentOffset
;
*margin-left: 0;
*margin-left: 0;
&:first-child {
&:first-child {
*padding-left:
160px
;
*padding-left:
@horizontalComponentOffset
;
}
}
}
}
// Remove bottom margin on block level help text since that's accounted for on .control-group
// Remove bottom margin on block level help text since that's accounted for on .control-group
...
@@ -645,6 +645,6 @@ legend + .control-group {
...
@@ -645,6 +645,6 @@ legend + .control-group {
}
}
// 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:
160px
;
padding-left:
@horizontalComponentOffset
;
}
}
}
}
less/type.less
View file @
e27b1355
...
@@ -119,13 +119,13 @@ dd {
...
@@ -119,13 +119,13 @@ dd {
.clearfix(); // Ensure dl clears floats if empty dd elements present
.clearfix(); // Ensure dl clears floats if empty dd elements present
dt {
dt {
float: left;
float: left;
width:
120px
;
width:
@horizontalComponentOffset - 20
;
clear: left;
clear: left;
text-align: right;
text-align: right;
.text-overflow();
.text-overflow();
}
}
dd {
dd {
margin-left:
130px
;
margin-left:
@horizontalComponentOffset
;
}
}
}
}
...
...
less/variables.less
View file @
e27b1355
...
@@ -144,6 +144,11 @@
...
@@ -144,6 +144,11 @@
@hrBorder: @grayLighter;
@hrBorder: @grayLighter;
// Horizontal forms & lists
// -------------------------
@horizontalComponentOffset: 180px;
// Wells
// Wells
// -------------------------
// -------------------------
@wellBackground: #f5f5f5;
@wellBackground: #f5f5f5;
...
...
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