1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05: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;
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) {
.row {

View file

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

View file

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

View file

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