mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
fix(list): added properties to inset list so the border will be cropped
references #600
This commit is contained in:
@ -18,6 +18,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.list[inset] {
|
.list[inset] {
|
||||||
|
overflow: hidden;
|
||||||
|
transform: translateZ(0);
|
||||||
|
|
||||||
ion-header {
|
ion-header {
|
||||||
background-color: $list-background-color;
|
background-color: $list-background-color;
|
||||||
}
|
}
|
||||||
|
@ -139,19 +139,12 @@ $list-ios-border-color: $list-border-color !default;
|
|||||||
}
|
}
|
||||||
|
|
||||||
> .item:first-child,
|
> .item:first-child,
|
||||||
ion-header {
|
> ion-item-sliding:first-child .item {
|
||||||
border-top-right-radius: $list-inset-ios-border-radius;
|
|
||||||
border-top-left-radius: $list-inset-ios-border-radius;
|
|
||||||
}
|
|
||||||
|
|
||||||
> .item:first-child {
|
|
||||||
border-top: none;
|
border-top: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
> .item:last-child,
|
> .item:last-child,
|
||||||
> ion-item-sliding:last-child .item {
|
> ion-item-sliding:last-child .item {
|
||||||
border-bottom-right-radius: $list-inset-ios-border-radius;
|
|
||||||
border-bottom-left-radius: $list-inset-ios-border-radius;
|
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user