fix segmented buttons (#21716)

* fix segmented buttons

changed flex-direction to row
centering is now done by align-items instead of justify-content

this way there is no need for flex property on the .btn inside .btn-group

* Update _input-group.scss
This commit is contained in:
Gijs Boddeus 2017-01-21 21:25:24 +01:00 committed by Mark Otto
parent ade657afee
commit 12b22ebad6
1 changed files with 1 additions and 4 deletions

View File

@ -30,8 +30,7 @@
.input-group .form-control {
// Vertically centers the content of the addons within the input group
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
&:not(:first-child):not(:last-child) {
@include border-radius(0);
@ -144,8 +143,6 @@
// element above the siblings.
> .btn {
position: relative;
// Vertically stretch the button and center its content
flex: 1;
+ .btn {
margin-left: (-$input-btn-border-width);