From a22d2fb5a5a702997509f29d86dc37ba917a103a Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 7 Dec 2015 10:05:53 -0800 Subject: [PATCH] fixes #17433: improve borders on .list-group-flush to remove dupe borders when appropro --- docs/components/card.md | 10 ++++++++++ scss/_list-group.scss | 12 ++++++++++++ 2 files changed, 22 insertions(+) diff --git a/docs/components/card.md b/docs/components/card.md index 3d112c501f..9be52fd2f5 100644 --- a/docs/components/card.md +++ b/docs/components/card.md @@ -51,6 +51,16 @@ Cards support a wide variety of content, including images, text, list groups, li {% endexample %} +{% example html %} +
+ +
+{% endexample %} + {% example html %}
Card image cap diff --git a/scss/_list-group.scss b/scss/_list-group.scss index 8b940adefc..5115e56fa2 100644 --- a/scss/_list-group.scss +++ b/scss/_list-group.scss @@ -37,6 +37,18 @@ border-width: $list-group-border-width 0; border-radius: 0; } + + &:first-child { + .list-group-item:first-child { + border-top: 0; + } + } + + &:last-child { + .list-group-item:last-child { + border-bottom: 0; + } + } }