mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-28 20:52:21 +01:00
allow alternate form layouts to hide inputs with .hide on them
This commit is contained in:
parent
9ab843b936
commit
ac98cee609
Binary file not shown.
3
docs/assets/css/bootstrap.css
vendored
3
docs/assets/css/bootstrap.css
vendored
@ -940,6 +940,9 @@ input:focus:required:invalid:focus, textarea:focus:required:invalid:focus, selec
|
||||
display: inline-block;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.form-search .hide, .form-inline .hide, .form-horizontal .hide {
|
||||
display: none;
|
||||
}
|
||||
.form-search label,
|
||||
.form-inline label,
|
||||
.form-search .input-append,
|
||||
|
@ -886,7 +886,7 @@ For example, <code>section</code> should be wrapped as inline.
|
||||
<p>Inputs are block level to start. For <code>.form-inline</code> and <code>.form-horizontal</code>, we use inline-block.</p>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<form class="well form-search">
|
||||
<form class="well form-inline">
|
||||
<input type="text" class="input-small" placeholder="Email">
|
||||
<input type="password" class="input-small" placeholder="Password">
|
||||
<button type="submit" class="btn">Go</button>
|
||||
|
2
docs/templates/pages/base-css.mustache
vendored
2
docs/templates/pages/base-css.mustache
vendored
@ -810,7 +810,7 @@
|
||||
<p>{{_i}}Inputs are block level to start. For <code>.form-inline</code> and <code>.form-horizontal</code>, we use inline-block.{{/i}}</p>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<form class="well form-search">
|
||||
<form class="well form-inline">
|
||||
<input type="text" class="input-small" placeholder="{{_i}}Email{{/i}}">
|
||||
<input type="password" class="input-small" placeholder="{{_i}}Password{{/i}}">
|
||||
<button type="submit" class="btn">{{_i}}Go{{/i}}</button>
|
||||
|
@ -462,6 +462,10 @@ select:focus:required:invalid {
|
||||
display: inline-block;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
// Re-hide hidden elements due to specifity
|
||||
.hide {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.form-search label,
|
||||
.form-inline label,
|
||||
|
Loading…
x
Reference in New Issue
Block a user