]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix no rounded corners if there is only one card in a card-group (#24080)
authorSpicyDwarf <SpicyDwarf@users.noreply.github.com>
Mon, 25 Sep 2017 21:11:32 +0000 (07:11 +1000)
committerXhmikosR <xhmikosr@gmail.com>
Mon, 25 Sep 2017 21:11:32 +0000 (00:11 +0300)
scss/_card.scss

index 40fa4251077ecb131f2dcb5fe4fe933e0be62018..b652794788c391cd5788b2a2dc191f1c2204702d 100644 (file)
           }
         }
 
-        &:not(:first-child):not(:last-child) {
+        &:not(:first-child):not(:last-child):not(:only-child) {
           border-radius: 0;
 
           .card-img-top,
             border-radius: 0;
           }
         }
+
+        &:only-child {
+          @include border-radius($card-border-radius);
+        }
       }
     }
   }