From 42d529083edee0ac56aa14d908a40988d453ae7b Mon Sep 17 00:00:00 2001
From: Sergey Kovalenko <kvlsrg@gmail.com>
Date: Thu, 22 Feb 2018 19:56:49 +0200
Subject: [PATCH] Fix one-by-one flush lists items borders

Also fixes issue with first/last item top/bottom border if list used with other content
---
 scss/_list-group.scss | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/scss/_list-group.scss b/scss/_list-group.scss
index 9f145c1d30..71aeab98a5 100644
--- a/scss/_list-group.scss
+++ b/scss/_list-group.scss
@@ -89,16 +89,16 @@
     border-right: 0;
     border-left: 0;
     @include border-radius(0);
-  }
 
-  &:first-child {
-    .list-group-item:first-child {
-      border-top: 0;
+    &:first-child {
+      border-top-width: 0;
+
+      .list-group-flush + & {
+        border-top-width: $list-group-border-width;
+      }
     }
-  }
 
-  &:last-child {
-    .list-group-item:last-child {
+    &:last-child {
       border-bottom: 0;
     }
   }
-- 
GitLab