]> 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)
committerXhmikosR <xhmikosr@gmail.com>
Mon, 14 Oct 2019 09:12:05 +0000 (12:12 +0300)
scss/_card.scss

index c23568f37b597caaea8c3c6383d9e3b96e82d369..313a0f80d77f59f959d78c9a14c0bf3bb0420e91 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;
     }
   }