1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-29 08:10:47 +02:00

in responsive layouts <767px, ensure inputs are not larger than 100% with box-sizing and a max-width

This commit is contained in:
Mark Otto
2012-03-11 14:41:52 -07:00
parent bf6cdff88a
commit a97b9c1122
5 changed files with 23 additions and 0 deletions

Binary file not shown.

View File

@@ -168,6 +168,16 @@
width: auto; width: auto;
margin: 0; margin: 0;
} }
input,
textarea,
select,
.uneditable-input {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
max-width: 100%;
}
} }
@media (min-width: 768px) and (max-width: 979px) { @media (min-width: 768px) and (max-width: 979px) {
.row { .row {

View File

@@ -3678,6 +3678,7 @@ a.thumbnail:hover {
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
-webkit-transition: width 0.6s ease; -webkit-transition: width 0.6s ease;
-moz-transition: width 0.6s ease; -moz-transition: width 0.6s ease;

View File

@@ -252,6 +252,7 @@
.box-sizing(@boxmodel) { .box-sizing(@boxmodel) {
-webkit-box-sizing: @boxmodel; -webkit-box-sizing: @boxmodel;
-moz-box-sizing: @boxmodel; -moz-box-sizing: @boxmodel;
-ms-box-sizing: @boxmodel;
box-sizing: @boxmodel; box-sizing: @boxmodel;
} }

View File

@@ -188,6 +188,17 @@
width: auto; width: auto;
margin: 0; margin: 0;
} }
// FORM FIELDS
// -----------
// Make them behave like divs
input,
textarea,
select,
.uneditable-input {
.box-sizing(border-box);
max-width: 100%;
}
} }