|
1 | 1 | @use "../../themes/ionic/ionic.globals.scss" as globals; |
2 | | -@import "./item-option"; |
| 2 | +@use "./item-option.common"; |
3 | 3 |
|
4 | 4 | // Ionic Item Option |
5 | 5 | // -------------------------------------------------- |
|
29 | 29 | } |
30 | 30 |
|
31 | 31 | ::slotted([slot="start"]) { |
32 | | - @include margin(0, globals.$ion-space-100, 0, 0); |
| 32 | + @include globals.margin(0, globals.$ion-space-100, 0, 0); |
33 | 33 | } |
34 | 34 |
|
35 | 35 | ::slotted([slot="end"]) { |
36 | | - @include margin(0, 0, 0, globals.$ion-space-100); |
| 36 | + @include globals.margin(0, 0, 0, globals.$ion-space-100); |
37 | 37 | } |
38 | 38 |
|
39 | 39 | ::slotted(ion-icon), |
|
75 | 75 | :host(.item-option-disabled) .button-native { |
76 | 76 | opacity: 1; |
77 | 77 | } |
| 78 | + |
| 79 | +// Subtle Item Option |
| 80 | +// -------------------------------------------------- |
| 81 | + |
| 82 | +:host(.item-option-subtle) { |
| 83 | + --background: #{globals.ion-color(primary, base, $subtle: true)}; |
| 84 | + --background-activated: #{globals.ion-color(primary, shade, $subtle: true)}; |
| 85 | + --color: #{globals.ion-color(primary, contrast, $subtle: true)}; |
| 86 | +} |
| 87 | + |
| 88 | +:host(.item-option-subtle.ion-color) { |
| 89 | + background: globals.current-color(base, $subtle: true); |
| 90 | + color: globals.current-color(contrast, $subtle: true); |
| 91 | +} |
| 92 | + |
| 93 | +// Bold Item Option |
| 94 | +// -------------------------------------------------- |
| 95 | + |
| 96 | +:host(.item-option-bold) { |
| 97 | + --background: #{globals.ion-color(primary, base)}; |
| 98 | + --background-activated: #{globals.ion-color(primary, shade)}; |
| 99 | + --color: #{globals.ion-color(primary, contrast)}; |
| 100 | +} |
| 101 | + |
| 102 | +:host(.item-option-bold.ion-color) { |
| 103 | + background: globals.current-color(base); |
| 104 | + color: globals.current-color(contrast); |
| 105 | +} |
0 commit comments