]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Simplify selector and only override what we set
authorMark Otto <markd.otto@gmail.com>
Sun, 20 Aug 2017 19:14:18 +0000 (12:14 -0700)
committerMark Otto <markd.otto@gmail.com>
Sun, 20 Aug 2017 19:21:24 +0000 (12:21 -0700)
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`.

scss/_card.scss

index 7f1811def604d5f2c3db9ff75ec6fc66633ae2dd..40fa4251077ecb131f2dcb5fe4fe933e0be62018 100644 (file)
@@ -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;
   }
 }