mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
fix(card): added properties to a card to clip the inside to the border-radius of the card
fixes #600
This commit is contained in:
@ -5,6 +5,8 @@
|
||||
|
||||
ion-card {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
transform: translateZ(0);
|
||||
}
|
||||
|
||||
ion-card img {
|
||||
@ -22,15 +24,3 @@ ion-card-header {
|
||||
ion-card-content {
|
||||
display: block;
|
||||
}
|
||||
|
||||
ion-card {
|
||||
> .list:first-child {
|
||||
border-top-left-radius: inherit;
|
||||
border-top-right-radius: inherit;
|
||||
}
|
||||
|
||||
> .list:last-child {
|
||||
border-bottom-left-radius: inherit;
|
||||
border-bottom-right-radius: inherit;
|
||||
}
|
||||
}
|
||||
|
@ -38,7 +38,6 @@ ion-card {
|
||||
background: $card-ios-background-color;
|
||||
box-shadow: $card-ios-box-shadow;
|
||||
border-radius: $card-ios-border-radius;
|
||||
overflow: hidden;
|
||||
|
||||
.list {
|
||||
margin-bottom: 0;
|
||||
@ -80,7 +79,6 @@ ion-card {
|
||||
}
|
||||
|
||||
[actions] {
|
||||
border-radius: inherit;
|
||||
padding-right: ($card-ios-padding-right / 2);
|
||||
|
||||
ion-item-content {
|
||||
|
@ -41,7 +41,6 @@ ion-card {
|
||||
background: $card-md-background-color;
|
||||
box-shadow: $card-md-box-shadow;
|
||||
border-radius: $card-md-border-radius;
|
||||
overflow: hidden;
|
||||
|
||||
.list {
|
||||
margin-bottom: 0;
|
||||
|
Reference in New Issue
Block a user