mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Fix no rounded corners if there is only one card in a card-group (#24080)
This commit is contained in:
parent
9b8356ba52
commit
272745673e
1 changed files with 5 additions and 1 deletions
|
@ -207,7 +207,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:not(:first-child):not(:last-child) {
|
&:not(:first-child):not(:last-child):not(:only-child) {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
|
|
||||||
.card-img-top,
|
.card-img-top,
|
||||||
|
@ -215,6 +215,10 @@
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:only-child {
|
||||||
|
@include border-radius($card-border-radius);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue