diff options
| author | Mark Otto <[email protected]> | 2015-04-04 01:35:13 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2015-04-04 01:35:13 -0700 |
| commit | 6d2599be92dfbbfb685c7eb8ab308a31bea2fa0b (patch) | |
| tree | ea192f00596d22ca2c488ce2a1ac3ffcf62e5df1 /less | |
| parent | f76d1a0e87d3544de323d48a5ce2b3794d09b99f (diff) | |
| parent | 27da9b290a657ed4ab299943c59e133286fef9fd (diff) | |
| download | bootstrap-6d2599be92dfbbfb685c7eb8ab308a31bea2fa0b.tar.xz bootstrap-6d2599be92dfbbfb685c7eb8ab308a31bea2fa0b.zip | |
Merge pull request #16176 from twbs/input_group_sizing
Static form control sizing in input groups, again
Diffstat (limited to 'less')
| -rw-r--r-- | less/forms.less | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/less/forms.less b/less/forms.less index 94c0e7fce..6dc1641b6 100644 --- a/less/forms.less +++ b/less/forms.less @@ -338,10 +338,10 @@ input[type="checkbox"] { } .form-control-static { height: @input-height-small; - padding: @padding-small-vertical @padding-small-horizontal; + min-height: (@line-height-computed + @font-size-small); + padding: (@padding-small-vertical + 1) @padding-small-horizontal; font-size: @font-size-small; line-height: @line-height-small; - min-height: (@line-height-computed + @font-size-small); } } @@ -366,10 +366,10 @@ input[type="checkbox"] { } .form-control-static { height: @input-height-large; - padding: @padding-large-vertical @padding-large-horizontal; + min-height: (@line-height-computed + @font-size-large); + padding: (@padding-large-vertical + 1) @padding-large-horizontal; font-size: @font-size-large; line-height: @line-height-large; - min-height: (@line-height-computed + @font-size-large); } } @@ -587,6 +587,7 @@ input[type="checkbox"] { @media (min-width: @screen-sm-min) { .control-label { padding-top: ((@padding-large-vertical * @line-height-large) + 1); + font-size: @font-size-large; } } } @@ -594,6 +595,7 @@ input[type="checkbox"] { @media (min-width: @screen-sm-min) { .control-label { padding-top: (@padding-small-vertical + 1); + font-size: @font-size-small; } } } |
