|
153 | 153 | height: globals.$ion-scale-1000; |
154 | 154 | } |
155 | 155 |
|
156 | | -// Avatar Empty Badge (hint) |
| 156 | +// Avatar Badge Empty (hint) |
157 | 157 | // -------------------------------------------------- |
158 | 158 |
|
159 | 159 | :host ::slotted(ion-badge.badge-vertical-top:empty) { |
160 | | - transform: translate(globals.$ion-scale-050, calc(globals.$ion-scale-050 * -1)); |
| 160 | + @include globals.transform(translate(globals.$ion-scale-050, calc(globals.$ion-scale-050 * -1))); |
161 | 161 | } |
162 | 162 |
|
163 | 163 | :host(.avatar-xxsmall) ::slotted(ion-badge.badge-vertical-top:empty) { |
164 | | - transform: translate(globals.$ion-scale-100, calc(globals.$ion-scale-100 * -1)); |
| 164 | + @include globals.transform(translate(globals.$ion-scale-100, calc(globals.$ion-scale-100 * -1))); |
165 | 165 | } |
166 | 166 |
|
167 | 167 | :host ::slotted(ion-badge.badge-vertical-bottom:empty) { |
168 | | - transform: translate(0, globals.$ion-scale-100); |
| 168 | + @include globals.transform(translate(0, globals.$ion-scale-100)); |
169 | 169 | } |
170 | 170 |
|
171 | 171 | :host(.avatar-xxsmall) ::slotted(ion-badge.badge-vertical-bottom:empty) { |
172 | | - transform: translate(globals.$ion-scale-100, calc(globals.$ion-scale-100)); |
| 172 | + @include globals.transform(translate(globals.$ion-scale-100, globals.$ion-scale-100)); |
| 173 | +} |
| 174 | + |
| 175 | +// Avatar Badge Bottom (hint) |
| 176 | +// -------------------------------------------------- |
| 177 | + |
| 178 | +:host ::slotted(ion-badge.badge-vertical-bottom:not(:empty)) { |
| 179 | + @include globals.transform(translate(50%, 50%)); |
| 180 | +} |
| 181 | + |
| 182 | +:host(.avatar-xxsmall) ::slotted(ion-badge.badge-vertical-bottom:not(:empty)) { |
| 183 | + @include globals.position(null, globals.$ion-scale-100, globals.$ion-scale-100, null); |
| 184 | + @include globals.transform(translate(100%, 100%)); |
| 185 | +} |
| 186 | + |
| 187 | +:host(.avatar-xsmall) ::slotted(ion-badge.badge-vertical-bottom:not(:empty)) { |
| 188 | + @include globals.position(null, calc(globals.$ion-scale-050 * -1), calc(globals.$ion-scale-050 * -1), null); |
| 189 | +} |
| 190 | + |
| 191 | +:host(.avatar-small) ::slotted(ion-badge.badge-vertical-bottom:not(:empty)), |
| 192 | +:host(.avatar-medium) ::slotted(ion-badge.badge-vertical-bottom:not(:empty)), |
| 193 | +:host(.avatar-large) ::slotted(ion-badge.badge-vertical-bottom:not(:empty)) { |
| 194 | + @include globals.position(null, globals.$ion-scale-050, globals.$ion-scale-050, null); |
| 195 | +} |
| 196 | + |
| 197 | +:host(.avatar-xlarge) ::slotted(ion-badge.badge-vertical-bottom:not(:empty)) { |
| 198 | + @include globals.position(null, globals.$ion-scale-150, globals.$ion-scale-150, null); |
| 199 | +} |
| 200 | + |
| 201 | +// Avatar Badge Top (hint) |
| 202 | +// -------------------------------------------------- |
| 203 | + |
| 204 | +:host ::slotted(ion-badge.badge-vertical-top:not(:empty)) { |
| 205 | + @include globals.transform(translate(50%, -50%)); |
| 206 | +} |
| 207 | + |
| 208 | +:host(.avatar-xxsmall) ::slotted(ion-badge.badge-vertical-top:not(:empty)) { |
| 209 | + @include globals.position(globals.$ion-scale-050, 0, null, null); |
| 210 | +} |
| 211 | + |
| 212 | +:host(.avatar-xsmall) ::slotted(ion-badge.badge-vertical-top:not(:empty)) { |
| 213 | + @include globals.position(globals.$ion-scale-100, calc(globals.$ion-scale-050 * -1), null, null); |
| 214 | +} |
| 215 | + |
| 216 | +:host(.avatar-small) ::slotted(ion-badge.badge-vertical-top:not(:empty)), |
| 217 | +:host(.avatar-medium) ::slotted(ion-badge.badge-vertical-top:not(:empty)) { |
| 218 | + @include globals.position(globals.$ion-scale-150, 0, null, null); |
| 219 | +} |
| 220 | + |
| 221 | +:host(.avatar-large) ::slotted(ion-badge.badge-vertical-top:not(:empty)) { |
| 222 | + @include globals.position(globals.$ion-scale-150, globals.$ion-scale-050, null, null); |
| 223 | +} |
| 224 | + |
| 225 | +:host(.avatar-xlarge) ::slotted(ion-badge.badge-vertical-top:not(:empty)) { |
| 226 | + @include globals.position(globals.$ion-scale-150, globals.$ion-scale-150, null, null); |
173 | 227 | } |
174 | 228 |
|
175 | 229 | // Avatar Disabled |
|
0 commit comments