Skip to content

Commit

Permalink
Simplify selector and only override what we set
Browse files Browse the repository at this point in the history
1. Instead of having two selectors, we use the `.list-group-item` class and have coverage for list items and anchors.
2. Rather than override all border values, we only override what we set with `border-top`.
  • Loading branch information
mdo committed Aug 20, 2017
1 parent bb32e91 commit 834ee9b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scss/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,8 @@
}
}

.card-header + .list-group > li:first-child,
.card-header + .list-group > a:first-child {
border: 0;
.card-header + .list-group > .list-group-item:first-child {
border-top: 0;
}
}

Expand Down

0 comments on commit 834ee9b

Please sign in to comment.