mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
fix(item): set ion-item-divider colors per mode
This commit is contained in:
@ -189,6 +189,17 @@ ion-item-divider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Generate iOS Item Divider Colors
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
@each $color-name, $color-value in $colors-ios {
|
||||||
|
ion-item-divider[#{$color-name}] {
|
||||||
|
background-color: $color-value;
|
||||||
|
color: inverse($color-value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// iOS Item Sliding
|
// iOS Item Sliding
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
@ -163,6 +163,17 @@ ion-item-divider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Generate Material Design Item Divider Colors
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
@each $color-name, $color-value in $colors-md {
|
||||||
|
ion-item-divider[#{$color-name}] {
|
||||||
|
background-color: $color-value;
|
||||||
|
color: inverse($color-value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Material Design Item Sliding
|
// Material Design Item Sliding
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
@ -88,12 +88,5 @@ ion-item-content + ion-item-content[cnt] {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@each $color-name, $color-value in $colors {
|
|
||||||
ion-item-divider[#{$color-name}] {
|
|
||||||
background-color: $color-value;
|
|
||||||
color: inverse($color-value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@import "item-media";
|
@import "item-media";
|
||||||
@import "item-sliding";
|
@import "item-sliding";
|
||||||
|
Reference in New Issue
Block a user