From: Starsam80 Date: Sat, 15 Oct 2016 19:57:36 +0000 (-0600) Subject: Remove borders on the top and/or bottom when .list-group-flush is the first and/or... X-Git-Tag: v4.0.0-alpha.6~494^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F20903%2Fhead;p=thirdparty%2Fbootstrap.git Remove borders on the top and/or bottom when .list-group-flush is the first and/or last child Fully fixes #20395 --- 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; + } + } }