mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(item-sliding): fixed the margin for the option buttons and sliding content
The min-height being too large was causing the issue of showing the button behind the item sliding content and some hairline margins were off. References #295
This commit is contained in:
@@ -167,7 +167,7 @@ $item-ios-sliding-transition: transform 250ms ease-in-out !default;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
|
||||
ion-item-sliding-content {
|
||||
background-color: $item-ios-sliding-content-bg;
|
||||
padding-right: ($item-ios-padding-right / 2);
|
||||
@@ -184,6 +184,7 @@ $item-ios-sliding-transition: transform 250ms ease-in-out !default;
|
||||
}
|
||||
ion-item-options {
|
||||
button, [button] {
|
||||
min-height: calc(100% - 2px);
|
||||
height: calc(100% - 2px);
|
||||
margin: 1px 0 2px 0;
|
||||
|
||||
@@ -237,12 +238,25 @@ ion-card {
|
||||
}
|
||||
}
|
||||
|
||||
&.hairlines .list ion-item-options {
|
||||
button, [button] {
|
||||
min-height: calc(100% - 1px);
|
||||
height: calc(100% - 1px);
|
||||
margin-top: 0.55px;
|
||||
margin-bottom: 0.55px;
|
||||
}
|
||||
}
|
||||
|
||||
&.hairlines .list ion-item-sliding-content {
|
||||
margin-top: 0.55px;
|
||||
margin-bottom: 0.55px;
|
||||
}
|
||||
|
||||
&.hairlines .list .item {
|
||||
margin-top: -0.5px;
|
||||
margin-top: -0.55px;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: -0.5px;
|
||||
margin-bottom: -0.55px;
|
||||
}
|
||||
|
||||
&:before,
|
||||
|
||||
Reference in New Issue
Block a user