aboutsummaryrefslogtreecommitdiff
path: root/less/forms.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-07-29 17:30:36 -0700
committerMark Otto <[email protected]>2013-07-29 17:30:36 -0700
commit8b5e41d900987aa46f38ec990e1a1170fc69fc00 (patch)
treef6d45752c71a95bec5a496403520b447085df923 /less/forms.less
parent09edfcf8c2525cb9ff397d48d8b6c9990ede30aa (diff)
downloadbootstrap-8b5e41d900987aa46f38ec990e1a1170fc69fc00.tar.xz
bootstrap-8b5e41d900987aa46f38ec990e1a1170fc69fc00.zip
Refactor .input-* sizing a bit by not chaining to .form-control (fixes #8672)
Diffstat (limited to 'less/forms.less')
-rw-r--r--less/forms.less31
1 files changed, 18 insertions, 13 deletions
diff --git a/less/forms.less b/less/forms.less
index e6e54f835..fad9f15e5 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -218,20 +218,19 @@ input[type="number"] {
// horizontal sizing, wrap controls in the predefined grid classes. `<select>`
// element gets special love because it's special, and that's a fact!
-.form-control {
- &.input-large {
- height: @input-height-large;
- padding: @padding-large-vertical @padding-large-horizontal;
- font-size: @font-size-large;
- border-radius: @border-radius-large;
- }
- &.input-small {
- height: @input-height-small;
- padding: @padding-small-vertical @padding-small-horizontal;
- font-size: @font-size-small;
- border-radius: @border-radius-small;
- }
+.input-large {
+ height: @input-height-large;
+ padding: @padding-large-vertical @padding-large-horizontal;
+ font-size: @font-size-large;
+ border-radius: @border-radius-large;
}
+.input-small {
+ height: @input-height-small;
+ padding: @padding-small-vertical @padding-small-horizontal;
+ font-size: @font-size-small;
+ border-radius: @border-radius-small;
+}
+
select {
&.input-large {
height: @input-height-large;
@@ -242,6 +241,12 @@ select {
line-height: @input-height-small;
}
}
+textarea {
+ &.input-large,
+ &.input-small {
+ height: auto;
+ }
+}
// Form control feedback states