mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-20 17:54:23 +01:00
Remove support for multiple buttons in input groups because fuck that shit.
This commit is contained in:
parent
4c82dd3645
commit
19a94d08d6
8
docs/assets/css/bootstrap.css
vendored
8
docs/assets/css/bootstrap.css
vendored
@ -1424,22 +1424,22 @@ select:focus:invalid:focus {
|
|||||||
display: table-cell;
|
display: table-cell;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-group-btn:first-child > .btn:last-child,
|
.input-group-btn:first-child > .btn,
|
||||||
.input-group-btn.btn-group:first-child > .btn {
|
.input-group-btn.btn-group:first-child > .btn {
|
||||||
border-right: 0;
|
border-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-group-btn:first-child > .btn:first-child,
|
.input-group-btn:first-child > .btn,
|
||||||
.input-group-btn.btn-group:first-child > .btn {
|
.input-group-btn.btn-group:first-child > .btn {
|
||||||
border-radius: 4px 0 0 4px;
|
border-radius: 4px 0 0 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-group-btn:last-child > .btn:first-child,
|
.input-group-btn:last-child > .btn,
|
||||||
.input-group-btn.btn-group:last-child > .btn:first-child {
|
.input-group-btn.btn-group:last-child > .btn:first-child {
|
||||||
border-left: 0;
|
border-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-group-btn:last-child > .btn:last-child,
|
.input-group-btn:last-child > .btn,
|
||||||
.input-group-btn.btn-group:last-child > .btn {
|
.input-group-btn.btn-group:last-child > .btn {
|
||||||
border-radius: 0 4px 4px 0;
|
border-radius: 0 4px 4px 0;
|
||||||
}
|
}
|
||||||
|
@ -1357,40 +1357,6 @@ For example, <code><section></code> should be wrapped as inlin
|
|||||||
<button class="btn" type="button">Go!</button>
|
<button class="btn" type="button">Go!</button>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
|
||||||
<form class="bs-docs-example">
|
|
||||||
<div class="input-group span7">
|
|
||||||
<input type="text">
|
|
||||||
<span class="input-group-btn">
|
|
||||||
<button class="btn" type="button">Search</button>
|
|
||||||
<button class="btn" type="button">Options</button>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
<div class="input-group span7">
|
|
||||||
<span class="input-group-btn">
|
|
||||||
<button class="btn" type="button">Search</button>
|
|
||||||
<button class="btn" type="button">Options</button>
|
|
||||||
</span>
|
|
||||||
<input type="text">
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
<pre class="prettyprint linenums">
|
|
||||||
<div class="input-group span7">
|
|
||||||
<input type="text">
|
|
||||||
<span class="input-group-btn">
|
|
||||||
<button class="btn" type="button">Search</button>
|
|
||||||
<button class="btn" type="button">Options</button>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group span7">
|
|
||||||
<span class="input-group-btn">
|
|
||||||
<button class="btn" type="button">Search</button>
|
|
||||||
<button class="btn" type="button">Options</button>
|
|
||||||
</span>
|
|
||||||
<input type="text">
|
|
||||||
</div>
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<h4>Button dropdowns</h4>
|
<h4>Button dropdowns</h4>
|
||||||
@ -1471,6 +1437,8 @@ For example, <code><section></code> should be wrapped as inlin
|
|||||||
<input type="text" class="span3">
|
<input type="text" class="span3">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
<div class="input-group span7">
|
<div class="input-group span7">
|
||||||
<input type="text">
|
<input type="text">
|
||||||
<div class="input-group-btn btn-group">
|
<div class="input-group-btn btn-group">
|
||||||
|
34
docs/templates/pages/css.mustache
vendored
34
docs/templates/pages/css.mustache
vendored
@ -1297,40 +1297,6 @@ For example, <code><section></code> should be wrapped as inlin
|
|||||||
<button class="btn" type="button">Go!</button>
|
<button class="btn" type="button">Go!</button>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
|
||||||
<form class="bs-docs-example">
|
|
||||||
<div class="input-group span7">
|
|
||||||
<input type="text">
|
|
||||||
<span class="input-group-btn">
|
|
||||||
<button class="btn" type="button">Search</button>
|
|
||||||
<button class="btn" type="button">Options</button>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
<div class="input-group span7">
|
|
||||||
<span class="input-group-btn">
|
|
||||||
<button class="btn" type="button">Search</button>
|
|
||||||
<button class="btn" type="button">Options</button>
|
|
||||||
</span>
|
|
||||||
<input type="text">
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
<pre class="prettyprint linenums">
|
|
||||||
<div class="input-group span7">
|
|
||||||
<input type="text">
|
|
||||||
<span class="input-group-btn">
|
|
||||||
<button class="btn" type="button">Search</button>
|
|
||||||
<button class="btn" type="button">Options</button>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group span7">
|
|
||||||
<span class="input-group-btn">
|
|
||||||
<button class="btn" type="button">Search</button>
|
|
||||||
<button class="btn" type="button">Options</button>
|
|
||||||
</span>
|
|
||||||
<input type="text">
|
|
||||||
</div>
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<h4>Button dropdowns</h4>
|
<h4>Button dropdowns</h4>
|
||||||
|
@ -510,22 +510,22 @@ select:focus:invalid {
|
|||||||
}
|
}
|
||||||
// Prepend
|
// Prepend
|
||||||
.input-group-btn {
|
.input-group-btn {
|
||||||
&:first-child > .btn:last-child,
|
&:first-child > .btn,
|
||||||
&.btn-group:first-child > .btn {
|
&.btn-group:first-child > .btn {
|
||||||
border-right: 0;
|
border-right: 0;
|
||||||
}
|
}
|
||||||
&:first-child > .btn:first-child,
|
&:first-child > .btn,
|
||||||
&.btn-group:first-child > .btn {
|
&.btn-group:first-child > .btn {
|
||||||
border-radius: @border-radius-base 0 0 @border-radius-base;
|
border-radius: @border-radius-base 0 0 @border-radius-base;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Append
|
// Append
|
||||||
.input-group-btn {
|
.input-group-btn {
|
||||||
&:last-child > .btn:first-child,
|
&:last-child > .btn,
|
||||||
&.btn-group:last-child > .btn:first-child {
|
&.btn-group:last-child > .btn:first-child {
|
||||||
border-left: 0;
|
border-left: 0;
|
||||||
}
|
}
|
||||||
&:last-child > .btn:last-child,
|
&:last-child > .btn,
|
||||||
&.btn-group:last-child > .btn {
|
&.btn-group:last-child > .btn {
|
||||||
border-radius: 0 @border-radius-base @border-radius-base 0;
|
border-radius: 0 @border-radius-base @border-radius-base 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user