mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
segment.wp: display active style outside toolbar
In the iOS and Android styles the segment-activated class lives directly under segment-button. However in the Windows Phone version these styles live only under toolbar, causing the styles to not be applied properly if the ion-segment is used outside of a toolbar.
This commit is contained in:
@ -39,6 +39,11 @@ ion-segment {
|
|||||||
color: $segment-button-wp-text-color-activated;
|
color: $segment-button-wp-text-color-activated;
|
||||||
background-color: $segment-button-wp-background-color;
|
background-color: $segment-button-wp-background-color;
|
||||||
opacity: $segment-button-wp-opacity;
|
opacity: $segment-button-wp-opacity;
|
||||||
|
|
||||||
|
.activated,
|
||||||
|
.segment-activated {
|
||||||
|
opacity: $segment-button-wp-opacity-activated;
|
||||||
|
}
|
||||||
|
|
||||||
ion-icon {
|
ion-icon {
|
||||||
font-size: $segment-button-wp-icon-size;
|
font-size: $segment-button-wp-icon-size;
|
||||||
@ -51,12 +56,6 @@ ion-segment {
|
|||||||
ion-segment {
|
ion-segment {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.segment-button.activated,
|
|
||||||
.segment-button.segment-activated {
|
|
||||||
opacity: $segment-button-wp-opacity-activated;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user