mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +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] {
|
||||
overflow: hidden;
|
||||
transform: translateZ(0);
|
||||
|
||||
ion-header {
|
||||
background-color: $list-background-color;
|
||||
}
|
||||
|
@ -139,19 +139,12 @@ $list-ios-border-color: $list-border-color !default;
|
||||
}
|
||||
|
||||
> .item:first-child,
|
||||
ion-header {
|
||||
border-top-right-radius: $list-inset-ios-border-radius;
|
||||
border-top-left-radius: $list-inset-ios-border-radius;
|
||||
}
|
||||
|
||||
> .item:first-child {
|
||||
> ion-item-sliding:first-child .item {
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
> .item:last-child,
|
||||
> 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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user