]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fix segmented buttons (#21716)
authorGijs Boddeus <botje_gijs@hotmail.com>
Sat, 21 Jan 2017 20:25:24 +0000 (21:25 +0100)
committerMark Otto <markd.otto@gmail.com>
Sat, 21 Jan 2017 20:25:24 +0000 (12:25 -0800)
* 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

scss/_input-group.scss

index ab44883bd1960ff63a5dcd58226f6ddc33c618c0..49cdf2830063cba3783af28339a8e3bc3bb1df7d 100644 (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);
   // element above the siblings.
   > .btn {
     position: relative;
-    // Vertically stretch the button and center its content
-    flex: 1;
 
     + .btn {
       margin-left: (-$input-btn-border-width);