]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix border for single card in accordion (#29453)
authorMartijn Cuppens <martijn.cuppens@gmail.com>
Thu, 3 Oct 2019 07:43:45 +0000 (09:43 +0200)
committerGitHub <noreply@github.com>
Thu, 3 Oct 2019 07:43:45 +0000 (09:43 +0200)
scss/_card.scss

index d055ca31012963f4809a0ce06e1f2d5d71650ab0..542220b4051c0e4ce4fd3d30e416869173805c1e 100644 (file)
   > .card {
     overflow: hidden;
 
-    &:not(:first-of-type) {
-      .card-header:first-child {
-        @include border-radius(0);
-      }
-
-      &:not(:last-of-type) {
-        border-bottom: 0;
-        @include border-radius(0);
-      }
-    }
-
-    &:first-of-type:not(:last-of-type) {
+    &:not(:last-of-type) {
       border-bottom: 0;
       @include border-bottom-radius(0);
     }
 
-    &:last-of-type {
+    &:not(:first-of-type) {
       @include border-top-radius(0);
     }
 
-    .card-header {
+    > .card-header {
+      @include border-radius(0);
       margin-bottom: -$card-border-width;
     }
   }