mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
54 lines
1.1 KiB
SCSS
54 lines
1.1 KiB
SCSS
@import "./item.common";
|
|
@import "./item.vars";
|
|
|
|
// Item
|
|
// --------------------------------------------------
|
|
|
|
:host {
|
|
font-family: $font-family-base;
|
|
}
|
|
|
|
// Item: Color
|
|
// --------------------------------------------------
|
|
|
|
:host(.ion-color) .item-native {
|
|
background: current-color(base);
|
|
color: current-color(contrast);
|
|
}
|
|
|
|
:host(.ion-color) .item-native,
|
|
:host(.ion-color) .item-inner {
|
|
border-color: current-color(shade);
|
|
}
|
|
|
|
// Item: Activated
|
|
// --------------------------------------------------
|
|
|
|
:host(.ion-color.ion-activated) .item-native {
|
|
color: current-color(contrast);
|
|
}
|
|
|
|
// Item: Focused
|
|
// --------------------------------------------------
|
|
|
|
:host(.ion-color.ion-focused) .item-native {
|
|
color: current-color(contrast);
|
|
|
|
&::after {
|
|
background: current-color(contrast);
|
|
}
|
|
}
|
|
|
|
// Item: Hover
|
|
// --------------------------------------------------
|
|
|
|
@media (any-hover: hover) {
|
|
:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native {
|
|
color: #{current-color(contrast)};
|
|
|
|
&::after {
|
|
background: #{current-color(contrast)};
|
|
}
|
|
}
|
|
}
|