mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-19 11:51:23 +02:00
set min-height for form-control textarea
* set `min-height` for `.form-control` textarea * prevent user from shrink textarea to minimum height
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
.form-control {
|
.form-control {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: $input-height;
|
min-height: $input-height;
|
||||||
padding: $input-padding-y $input-padding-x;
|
padding: $input-padding-y $input-padding-x;
|
||||||
font-family: $input-font-family;
|
font-family: $input-font-family;
|
||||||
@include font-size($input-font-size);
|
@include font-size($input-font-size);
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
// Repeated in `_input_group.scss` to avoid Sass extend issues.
|
// Repeated in `_input_group.scss` to avoid Sass extend issues.
|
||||||
|
|
||||||
.form-control-sm {
|
.form-control-sm {
|
||||||
height: $input-height-sm;
|
min-height: $input-height-sm;
|
||||||
padding: $input-padding-y-sm $input-padding-x-sm;
|
padding: $input-padding-y-sm $input-padding-x-sm;
|
||||||
@include font-size($input-font-size-sm);
|
@include font-size($input-font-size-sm);
|
||||||
line-height: $input-line-height-sm;
|
line-height: $input-line-height-sm;
|
||||||
@@ -104,13 +104,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.form-control-lg {
|
.form-control-lg {
|
||||||
height: $input-height-lg;
|
min-height: $input-height-lg;
|
||||||
padding: $input-padding-y-lg $input-padding-x-lg;
|
padding: $input-padding-y-lg $input-padding-x-lg;
|
||||||
@include font-size($input-font-size-lg);
|
@include font-size($input-font-size-lg);
|
||||||
line-height: $input-line-height-lg;
|
line-height: $input-line-height-lg;
|
||||||
@include border-radius($input-border-radius-lg);
|
@include border-radius($input-border-radius-lg);
|
||||||
}
|
}
|
||||||
|
|
||||||
textarea.form-control {
|
|
||||||
height: auto;
|
|
||||||
}
|
|
||||||
|
@@ -125,7 +125,7 @@
|
|||||||
|
|
||||||
.input-group-lg > .form-control:not(textarea),
|
.input-group-lg > .form-control:not(textarea),
|
||||||
.input-group-lg > .form-select {
|
.input-group-lg > .form-select {
|
||||||
height: $input-height-lg;
|
min-height: $input-height-lg;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-group-lg > .form-control,
|
.input-group-lg > .form-control,
|
||||||
@@ -142,7 +142,7 @@
|
|||||||
|
|
||||||
.input-group-sm > .form-control:not(textarea),
|
.input-group-sm > .form-control:not(textarea),
|
||||||
.input-group-sm > .form-select {
|
.input-group-sm > .form-select {
|
||||||
height: $input-height-sm;
|
min-height: $input-height-sm;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-group-sm > .form-control,
|
.input-group-sm > .form-control,
|
||||||
|
Reference in New Issue
Block a user