0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-03-15 15:29:22 +01:00

fix #2990: text wrapping in .uneditable-input

This commit is contained in:
Mark Otto 2012-04-15 00:35:30 -07:00
parent cad8f2b43a
commit 13e4d1d5ac
2 changed files with 5 additions and 0 deletions

View File

@ -977,6 +977,8 @@ select:focus:required:invalid:focus {
-moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);
cursor: not-allowed; cursor: not-allowed;
overflow: hidden;
white-space: nowrap;
} }
:-moz-placeholder { :-moz-placeholder {
color: #999999; color: #999999;

View File

@ -331,6 +331,9 @@ select:focus:required:invalid {
border-color: #eee; border-color: #eee;
.box-shadow(inset 0 1px 2px rgba(0,0,0,.025)); .box-shadow(inset 0 1px 2px rgba(0,0,0,.025));
cursor: not-allowed; cursor: not-allowed;
// prevent text from wrapping, but still cut it off like an input does
overflow: hidden;
white-space: nowrap;
} }
// Placeholder text gets special styles; can't be bundled together though for some reason // Placeholder text gets special styles; can't be bundled together though for some reason