mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(label): style color
This commit is contained in:
@ -5,16 +5,12 @@
|
|||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
:host {
|
:host {
|
||||||
--ion-color-base: currentColor;
|
|
||||||
|
|
||||||
@include margin(0);
|
@include margin(0);
|
||||||
|
|
||||||
display: block;
|
display: block;
|
||||||
|
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|
||||||
color: #{current-color(base)};
|
|
||||||
|
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
|
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
@ -25,6 +21,10 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:host(.ion-color) {
|
||||||
|
color: #{current-color(base)};
|
||||||
|
}
|
||||||
|
|
||||||
:host([text-wrap]) {
|
:host([text-wrap]) {
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user