diff options
| author | SpicyDwarf <[email protected]> | 2017-09-26 07:11:32 +1000 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2017-09-26 00:11:32 +0300 |
| commit | 272745673eab4d7cf7264ad8499f4553ceac6649 (patch) | |
| tree | b2417f6cb5e9e37e9576c792847bd6a13738e127 | |
| parent | 9b8356ba52d89fd065d6061979b5946b8c5f44fa (diff) | |
| download | bootstrap-272745673eab4d7cf7264ad8499f4553ceac6649.tar.xz bootstrap-272745673eab4d7cf7264ad8499f4553ceac6649.zip | |
Fix no rounded corners if there is only one card in a card-group (#24080)
| -rw-r--r-- | scss/_card.scss | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scss/_card.scss b/scss/_card.scss index 40fa42510..b65279478 100644 --- a/scss/_card.scss +++ b/scss/_card.scss @@ -207,7 +207,7 @@ } } - &:not(:first-child):not(:last-child) { + &:not(:first-child):not(:last-child):not(:only-child) { border-radius: 0; .card-img-top, @@ -215,6 +215,10 @@ border-radius: 0; } } + + &:only-child { + @include border-radius($card-border-radius); + } } } } |
