|
12 | 12 | --knob-handle-size: #{globals.$ion-scale-1000}; |
13 | 13 | --bar-height: #{globals.$ion-scale-200}; |
14 | 14 | --bar-background: #{globals.$ion-primitives-neutral-100}; |
15 | | - --bar-background-active: #{ion-color(primary, base)}; |
| 15 | + --bar-background-active: #{globals.ion-color(primary, base)}; |
16 | 16 | --bar-border-radius: #{globals.$ion-border-radius-400}; |
17 | 17 | --height: 42px; |
18 | 18 |
|
|
31 | 31 |
|
32 | 32 | :host(.ion-color) .range-bar-active, |
33 | 33 | :host(.ion-color) .range-tick-active { |
34 | | - background: current-color(base); |
| 34 | + background: globals.current-color(base); |
35 | 35 | } |
36 | 36 |
|
37 | 37 | ::slotted(ion-icon[slot]) { |
|
63 | 63 | * overlapping the range. The buffer is added to the |
64 | 64 | * bottom of the range label instead of the host. |
65 | 65 | */ |
66 | | - @include padding(calc(#{globals.$ion-space-200} + dynamic-font(12px)), null, null, null); |
| 66 | + @include padding(calc(globals.$ion-space-200 + globals.dynamic-font(12px)), null, null, null); |
67 | 67 | } |
68 | 68 |
|
69 | 69 | :host(.range-has-pin.range-label-placement-stacked) .label-text-wrapper { |
|
72 | 72 | * margin to the bottom of the label, it provides a buffer |
73 | 73 | * for the pin to move into when it is pressed. |
74 | 74 | */ |
75 | | - @include margin(null, null, calc(#{globals.$ion-space-200} + dynamic-font(12px)), null); |
| 75 | + @include margin(null, null, calc(globals.$ion-space-200 + globals.dynamic-font(12px)), null); |
76 | 76 | } |
77 | 77 |
|
78 | 78 | .range-bar-active { |
|
84 | 84 |
|
85 | 85 | &.has-ticks { |
86 | 86 | @include border-radius(0); |
87 | | - @include margin(null, calc(-1 * #{globals.$ion-scale-100} * 0.5), null, calc(-1 * #{globals.$ion-scale-100} * 0.5)); |
| 87 | + @include margin(null, calc(-1 * globals.$ion-scale-100 * 0.5), null, calc(-1 * globals.$ion-scale-100 * 0.5)); |
88 | 88 | } |
89 | 89 | } |
90 | 90 |
|
91 | 91 | .range-tick { |
92 | | - @include margin-horizontal(calc(#{globals.$ion-scale-100} * -0.5), null); |
| 92 | + @include margin-horizontal(calc(globals.$ion-scale-100 * -0.5), null); |
93 | 93 | @include border-radius(globals.$ion-border-radius-0); |
94 | 94 |
|
95 | 95 | position: absolute; |
96 | | - top: calc((42px * 0.5) - (#{globals.$ion-scale-300} * 0.5)); |
| 96 | + top: calc((42px * 0.5) - (globals.$ion-scale-300 * 0.5)); |
97 | 97 |
|
98 | 98 | width: globals.$ion-scale-100; |
99 | 99 | height: globals.$ion-scale-300; |
|
113 | 113 |
|
114 | 114 | background: transparent; |
115 | 115 |
|
116 | | - font-size: dynamic-font(12px); |
| 116 | + font-size: globals.dynamic-font(12px); |
117 | 117 |
|
118 | 118 | text-align: center; |
119 | 119 |
|
|
123 | 123 | .range-knob { |
124 | 124 | border-width: globals.$ion-border-size-025; |
125 | 125 | border-style: solid; |
126 | | - border-color: #{ion-color(primary, base)}; |
| 126 | + border-color: globals.ion-color(primary, base); |
127 | 127 | } |
128 | 128 |
|
129 | 129 | // Ionic Range: Disabled (based on iOS Range) |
|
0 commit comments