aboutsummaryrefslogtreecommitdiff
path: root/less/forms.less
diff options
context:
space:
mode:
authorZac Echola <[email protected]>2015-04-28 09:45:16 -0500
committerZac Echola <[email protected]>2015-04-28 09:45:16 -0500
commit407e8dc9d8d8e28d456a37d9d69e1d3c89d6fbb4 (patch)
treed841221f51dd9852fbce1c562127158d35b8812d /less/forms.less
parente46c998316359f3368d80736d7eb750d85dc4da5 (diff)
parente6438592e9ea28324ba1a4344e724cab28032208 (diff)
downloadbootstrap-407e8dc9d8d8e28d456a37d9d69e1d3c89d6fbb4.tar.xz
bootstrap-407e8dc9d8d8e28d456a37d9d69e1d3c89d6fbb4.zip
Merge branch 'master' of https://github.com/twbs/bootstrap into list_group_buttons
Diffstat (limited to 'less/forms.less')
-rw-r--r--less/forms.less19
1 files changed, 11 insertions, 8 deletions
diff --git a/less/forms.less b/less/forms.less
index 94c0e7fce..cea6f669b 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -56,7 +56,6 @@ input[type="checkbox"] {
line-height: normal;
}
-// Set the height of file controls to match text inputs
input[type="file"] {
display: block;
}
@@ -338,10 +337,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 +365,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);
}
}
@@ -401,13 +400,15 @@ input[type="checkbox"] {
pointer-events: none;
}
.input-lg + .form-control-feedback,
-.input-group-lg + .form-control-feedback {
+.input-group-lg + .form-control-feedback,
+.form-group-lg .form-control + .form-control-feedback {
width: @input-height-large;
height: @input-height-large;
line-height: @input-height-large;
}
.input-sm + .form-control-feedback,
-.input-group-sm + .form-control-feedback {
+.input-group-sm + .form-control-feedback,
+.form-group-sm .form-control + .form-control-feedback {
width: @input-height-small;
height: @input-height-small;
line-height: @input-height-small;
@@ -576,7 +577,7 @@ input[type="checkbox"] {
// Reposition the icon because it's now within a grid column and columns have
// `position: relative;` on them. Also accounts for the grid gutter padding.
.has-feedback .form-control-feedback {
- right: (@grid-gutter-width / 2);
+ right: floor((@grid-gutter-width / 2));
}
// Form group sizes
@@ -587,6 +588,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 +596,7 @@ input[type="checkbox"] {
@media (min-width: @screen-sm-min) {
.control-label {
padding-top: (@padding-small-vertical + 1);
+ font-size: @font-size-small;
}
}
}