mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-05-20 01:31:52 +00:00
Add border radius to an image when it's the only card of a card group (#24321)
This commit is contained in:
parent
f7acb278e2
commit
776188ad73
1 changed files with 7 additions and 0 deletions
|
|
@ -215,6 +215,13 @@
|
|||
|
||||
&:only-child {
|
||||
@include border-radius($card-border-radius);
|
||||
|
||||
.card-img-top {
|
||||
@include border-top-radius($card-border-radius);
|
||||
}
|
||||
.card-img-bottom {
|
||||
@include border-bottom-radius($card-border-radius);
|
||||
}
|
||||
}
|
||||
|
||||
&:not(:first-child):not(:last-child):not(:only-child) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue