aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2015-03-28 22:43:33 -0700
committerMark Otto <[email protected]>2015-03-28 22:43:33 -0700
commit27da9b290a657ed4ab299943c59e133286fef9fd (patch)
tree8675168a20c19eadf99e83eb6aabbcae6841afab /less
parent93bf800e1f00861525688007ae7aaf6f3daeda47 (diff)
downloadbootstrap-27da9b290a657ed4ab299943c59e133286fef9fd.tar.xz
bootstrap-27da9b290a657ed4ab299943c59e133286fef9fd.zip
Fixes #15536: Resize .control-label's font-size and account for border on static form control in form groups
Diffstat (limited to 'less')
-rw-r--r--less/forms.less10
1 files changed, 6 insertions, 4 deletions
diff --git a/less/forms.less b/less/forms.less
index e4b50629e..0f42e8ac0 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -326,10 +326,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);
}
}
@@ -342,10 +342,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);
}
}
@@ -561,6 +561,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;
}
}
}
@@ -568,6 +569,7 @@ input[type="checkbox"] {
@media (min-width: @screen-sm-min) {
.control-label {
padding-top: (@padding-small-vertical + 1);
+ font-size: @font-size-small;
}
}
}