From 9e5a02c606aae3de62feede1fd43b2d4c2289a4c Mon Sep 17 00:00:00 2001 From: Starsam80 Date: Sat, 15 Oct 2016 13:57:36 -0600 Subject: [PATCH] Remove borders on the top and/or bottom when .list-group-flush is the first and/or last child Fully fixes #20395 --- scss/_list-group.scss | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scss/_list-group.scss b/scss/_list-group.scss index 1e0d1121d4..f17fb9bb11 100644 --- a/scss/_list-group.scss +++ b/scss/_list-group.scss @@ -74,6 +74,18 @@ border-left: 0; border-radius: 0; } + + &:first-child { + .list-group-item:first-child { + border-top: 0; + } + } + + &:last-child { + .list-group-item:last-child { + border-bottom: 0; + } + } }