mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-24 14:58:36 +08:00
refactor(css): scope component css to mode
This commit is contained in:

committed by
Adam Bradley

parent
a154d837a0
commit
750cde38e2
@ -1,5 +1,4 @@
|
||||
@import "../../globals.wp";
|
||||
@import "./segment";
|
||||
@import "../../themes/ionic.globals.wp";
|
||||
|
||||
// Windows Segment
|
||||
// --------------------------------------------------
|
||||
@ -22,11 +21,11 @@ $segment-button-wp-opacity-disabled: .3 !default;
|
||||
|
||||
$segment-button-wp-buttons-justify-content: flex-start !default;
|
||||
|
||||
ion-segment {
|
||||
.segment-wp {
|
||||
justify-content: $segment-button-wp-buttons-justify-content;
|
||||
}
|
||||
|
||||
.segment-button {
|
||||
.segment-wp .segment-button {
|
||||
padding: $segment-button-wp-padding;
|
||||
|
||||
height: $segment-button-wp-height;
|
||||
@ -51,7 +50,7 @@ ion-segment {
|
||||
}
|
||||
}
|
||||
|
||||
.segment-button-disabled {
|
||||
.segment-wp .segment-button-disabled {
|
||||
opacity: $segment-button-wp-opacity-disabled;
|
||||
|
||||
pointer-events: none;
|
||||
@ -59,7 +58,7 @@ ion-segment {
|
||||
|
||||
.toolbar {
|
||||
|
||||
ion-segment {
|
||||
.segment-wp {
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
@ -70,7 +69,7 @@ ion-segment {
|
||||
|
||||
@mixin wp-segment-button($color-name, $color-base) {
|
||||
|
||||
.segment-#{$color-name} .segment-button {
|
||||
.segment-wp-#{$color-name} .segment-button {
|
||||
color: $color-base;
|
||||
|
||||
&.activated,
|
||||
|
Reference in New Issue
Block a user