aboutsummaryrefslogtreecommitdiff
path: root/scss/_list-group.scss
diff options
context:
space:
mode:
authorStarsam80 <[email protected]>2016-10-15 13:57:36 -0600
committerStarsam80 <[email protected]>2016-10-15 14:12:19 -0600
commit9e5a02c606aae3de62feede1fd43b2d4c2289a4c (patch)
tree92a805b93fd21d3eb07407bed250887a5079bd19 /scss/_list-group.scss
parentcf5d94f6d5685c371dcb157af74a3c6b14ec8d8e (diff)
downloadbootstrap-9e5a02c606aae3de62feede1fd43b2d4c2289a4c.tar.xz
bootstrap-9e5a02c606aae3de62feede1fd43b2d4c2289a4c.zip
Remove borders on the top and/or bottom when .list-group-flush is the first and/or last child
Fully fixes #20395
Diffstat (limited to 'scss/_list-group.scss')
-rw-r--r--scss/_list-group.scss12
1 files changed, 12 insertions, 0 deletions
diff --git a/scss/_list-group.scss b/scss/_list-group.scss
index 1e0d1121d..f17fb9bb1 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;
+ }
+ }
}