]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Merge branch 'v4-flex-list-group' of https://github.com/rosskevin/bootstrap into...
authorMark Otto <markdotto@gmail.com>
Sun, 30 Oct 2016 20:49:46 +0000 (13:49 -0700)
committerMark Otto <markdotto@gmail.com>
Sun, 30 Oct 2016 20:49:46 +0000 (13:49 -0700)
1  2 
scss/_list-group.scss

index f17fb9bb1197ca2bfd838335db00a1b403d3dbb4,21a43eb7701170b46a4d0c369ad0d6858d625d54..ce1eee12980054ca07679aea895bd30e1a789bc6
  // Use on `li`s or `div`s within the `.list-group` parent.
  
  .list-group-item {
+   @if $enable-flex {
+     display: flex;
+     flex-flow: row wrap;
+     align-items: center;
+   } @else {
+     display: block;
+   }
++  
    position: relative;
-   display: block;
 -  padding: .75rem 1.25rem;
 +  padding: $list-group-item-padding-y $list-group-item-padding-x;
    // Place the border on the list items and negative margin up for better styling
    margin-bottom: -$list-group-border-width;
    background-color: $list-group-bg;