diff options
| author | Mark Otto <[email protected]> | 2012-08-28 10:12:04 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-08-28 10:12:04 -0700 |
| commit | e27b1355b58331eeb24915bee3e1c9dde4977f17 (patch) | |
| tree | 747ec5fb499b1fa304986a0df9334360a15b547b /less | |
| parent | 545edf5459d0bdc25b65ba7ee9983cb6562c2842 (diff) | |
| download | bootstrap-e27b1355b58331eeb24915bee3e1c9dde4977f17.tar.xz bootstrap-e27b1355b58331eeb24915bee3e1c9dde4977f17.zip | |
fixes #4771: widen .form-horizontal labels and .dl-horizontal terms given larger font-size of 2.1.0
Diffstat (limited to 'less')
| -rw-r--r-- | less/forms.less | 8 | ||||
| -rw-r--r-- | less/type.less | 4 | ||||
| -rw-r--r-- | less/variables.less | 5 |
3 files changed, 11 insertions, 6 deletions
diff --git a/less/forms.less b/less/forms.less index 2864bff0d..17fbaf857 100644 --- a/less/forms.less +++ b/less/forms.less @@ -615,7 +615,7 @@ legend + .control-group { // Float the labels left .control-label { float: left; - width: 140px; + width: @horizontalComponentOffset - 20; padding-top: 5px; text-align: right; } @@ -625,10 +625,10 @@ legend + .control-group { // don't inherit the margin of the parent, in this case .controls *display: inline-block; *padding-left: 20px; - margin-left: 160px; + margin-left: @horizontalComponentOffset; *margin-left: 0; &:first-child { - *padding-left: 160px; + *padding-left: @horizontalComponentOffset; } } // Remove bottom margin on block level help text since that's accounted for on .control-group @@ -645,6 +645,6 @@ legend + .control-group { } // Move over buttons in .form-actions to align with .controls .form-actions { - padding-left: 160px; + padding-left: @horizontalComponentOffset; } } diff --git a/less/type.less b/less/type.less index 5557b7e4a..14f65f2fa 100644 --- a/less/type.less +++ b/less/type.less @@ -119,13 +119,13 @@ dd { .clearfix(); // Ensure dl clears floats if empty dd elements present dt { float: left; - width: 120px; + width: @horizontalComponentOffset - 20; clear: left; text-align: right; .text-overflow(); } dd { - margin-left: 130px; + margin-left: @horizontalComponentOffset; } } diff --git a/less/variables.less b/less/variables.less index 1bdacd7d4..7d6efe005 100644 --- a/less/variables.less +++ b/less/variables.less @@ -144,6 +144,11 @@ @hrBorder: @grayLighter; +// Horizontal forms & lists +// ------------------------- +@horizontalComponentOffset: 180px; + + // Wells // ------------------------- @wellBackground: #f5f5f5; |
