|
107 | 107 |
|
108 | 108 | :host ::slotted(ion-badge) { |
109 | 109 | @include globals.position(null, null, null, calc(50% + globals.$ion-scale-300)); |
| 110 | + @include globals.transform(translate(-50%, -50%)); |
110 | 111 | } |
111 | 112 |
|
112 | 113 | :host ::slotted(ion-badge.badge-vertical-top) { |
113 | | - @include globals.position(-2px); |
| 114 | + @include globals.position(globals.$ion-scale-150); |
| 115 | +} |
| 116 | + |
| 117 | +:host ::slotted(ion-badge.badge-vertical-top:empty) { |
| 118 | + @include globals.position(globals.$ion-scale-050, null, null, calc(50% + globals.$ion-scale-250)); |
114 | 119 | } |
115 | 120 |
|
116 | 121 | :host ::slotted(ion-badge.badge-vertical-bottom) { |
117 | | - @include globals.position(calc(50% - globals.$ion-scale-200)); |
| 122 | + @include globals.position(calc(50% - (globals.$ion-scale-050))); |
118 | 123 | } |
119 | 124 |
|
120 | 125 | :host ::slotted(ion-badge.badge-vertical-bottom:empty) { |
121 | | - @include globals.position(calc(50% - globals.$ion-scale-100)); |
| 126 | + @include globals.position(50%, null, null, calc(50% + globals.$ion-scale-250)); |
122 | 127 | } |
123 | 128 |
|
124 | 129 | :host ::slotted(ion-badge[vertical]:not(:empty)) { |
|
131 | 136 | } |
132 | 137 |
|
133 | 138 | :host(.tab-layout-icon-bottom) ::slotted(ion-badge.badge-vertical-top) { |
134 | | - @include globals.position(calc(50% - globals.$ion-scale-100)); |
| 139 | + @include globals.position(calc(50% + globals.$ion-scale-100)); |
| 140 | +} |
| 141 | + |
| 142 | +:host(.tab-layout-icon-bottom) ::slotted(ion-badge.badge-vertical-top:empty) { |
| 143 | + @include globals.position(50%); |
135 | 144 | } |
136 | 145 |
|
137 | 146 | :host(.tab-layout-icon-bottom) ::slotted(ion-badge.badge-vertical-bottom) { |
138 | | - @include globals.position(calc(50% + globals.$ion-scale-100)); |
| 147 | + @include globals.position(calc(100% - globals.$ion-scale-100)); |
139 | 148 | } |
140 | 149 |
|
141 | 150 | :host(.tab-layout-icon-bottom) ::slotted(ion-badge.badge-vertical-bottom:empty) { |
142 | | - @include globals.position(calc(50% + 14px)); |
| 151 | + @include globals.position(calc(100% - globals.$ion-scale-050), null, null, calc(50% + globals.$ion-scale-250)); |
143 | 152 | } |
0 commit comments