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:
Brandy Carney
2015-11-20 15:03:10 -05:00
parent 10672b062e
commit 6f45378452
3 changed files with 2 additions and 15 deletions

View File

@ -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;
}
}

View File

@ -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 {

View File

@ -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;