1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-30 16:50:00 +02:00

fixes #3665: ensure inputs in a fluid row maintain grid sizing

This commit is contained in:
Mark Otto
2012-07-30 15:38:36 -07:00
parent be8d5243f4
commit 364dbb7931
3 changed files with 27 additions and 0 deletions

View File

@@ -1165,6 +1165,10 @@ textarea[class*="span"],
.input-append .uneditable-input[class*="span"], .input-append .uneditable-input[class*="span"],
.input-prepend input[class*="span"], .input-prepend input[class*="span"],
.input-prepend .uneditable-input[class*="span"], .input-prepend .uneditable-input[class*="span"],
.row-fluid input[class*="span"],
.row-fluid select[class*="span"],
.row-fluid textarea[class*="span"],
.row-fluid .uneditable-input[class*="span"],
.row-fluid .input-prepend [class*="span"], .row-fluid .input-prepend [class*="span"],
.row-fluid .input-append [class*="span"] { .row-fluid .input-append [class*="span"] {
display: inline-block; display: inline-block;

View File

@@ -279,6 +279,10 @@ textarea[class*="span"],
.input-append .uneditable-input[class*="span"], .input-append .uneditable-input[class*="span"],
.input-prepend input[class*="span"], .input-prepend input[class*="span"],
.input-prepend .uneditable-input[class*="span"], .input-prepend .uneditable-input[class*="span"],
.row-fluid input[class*="span"],
.row-fluid select[class*="span"],
.row-fluid textarea[class*="span"],
.row-fluid .uneditable-input[class*="span"],
.row-fluid .input-prepend [class*="span"], .row-fluid .input-prepend [class*="span"],
.row-fluid .input-append [class*="span"] { .row-fluid .input-append [class*="span"] {
display: inline-block; display: inline-block;

View File

@@ -796,6 +796,25 @@
</div><!--/span--> </div><!--/span-->
</div><!--/row--> </div><!--/row-->
</div> </div>
<br>
<h4>Inline form in fluid row</h4>
<div class="row-fluid">
<div class="span12">
<form class="form-inline">
<input type="text" class="span3" placeholder="Email">
<input type="password" class="span3" placeholder="Password">
<label class="checkbox">
<input type="checkbox"> Remember me
</label>
<button type="submit" class="btn">Sign in</button>
</form>
</div>
</div>
<br> <br>