diff options
| author | Mark Otto <[email protected]> | 2017-08-20 12:14:18 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2017-08-20 12:21:24 -0700 |
| commit | 834ee9b433aa123b74016c91dd403cdfd53e3fc5 (patch) | |
| tree | 193170bb815b4ee5cb3c5ee833373ae108aa5f27 | |
| parent | bb32e9115490b142d7a6684cd508a48a1589f1c6 (diff) | |
| download | bootstrap-834ee9b433aa123b74016c91dd403cdfd53e3fc5.tar.xz bootstrap-834ee9b433aa123b74016c91dd403cdfd53e3fc5.zip | |
Simplify selector and only override what we set
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`.
| -rw-r--r-- | scss/_card.scss | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scss/_card.scss b/scss/_card.scss index 7f1811def..40fa42510 100644 --- a/scss/_card.scss +++ b/scss/_card.scss @@ -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; } } |
