|
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 + globals.dynamic-font(12px)), null, null, null); |
| 66 | + @include padding(calc(globals.$ion-space-100 + globals.$ion-scale-600), null, null, null); |
67 | 67 | } |
68 | 68 |
|
69 | 69 | :host(.range-has-pin.range-label-placement-stacked) .label-text-wrapper { |
|
107 | 107 | } |
108 | 108 |
|
109 | 109 | .range-pin { |
110 | | - @include transform(translate3d(0, 100%, 0), scale(0.01)); |
111 | | - @include padding(globals.$ion-space-200, globals.$ion-space-200, globals.$ion-space-200, globals.$ion-space-200); |
| 110 | + @include padding(null, null, globals.$ion-space-100, null); |
112 | 111 |
|
113 | 112 | min-width: globals.$ion-scale-700; |
114 | 113 |
|
115 | | - transition: transform 120ms ease; |
| 114 | + transform: translate3d(0, calc(-100%), 0); |
116 | 115 |
|
117 | 116 | background: transparent; |
118 | 117 |
|
|
128 | 127 | box-sizing: border-box; |
129 | 128 | } |
130 | 129 |
|
131 | | -/** |
132 | | - * The -100% ensures the pin sits on top |
133 | | - * of the range-knob-handle container. |
134 | | - * We apply 11px so that the pin |
135 | | - * text is closer to the knob inside of the container. |
136 | | - * We also apply the 11px here instead of using "top" |
137 | | - * otherwise the pin text will translate below the knob |
138 | | - * when the text is scaled. |
139 | | - */ |
140 | | -.range-knob-pressed .range-pin, |
141 | | -.range-knob-handle.ion-focused .range-pin { |
142 | | - transform: translate3d(0, calc(-100% + 11px), 0) scale(1); |
143 | | -} |
144 | | - |
145 | 130 | // Ionic Range: Disabled (based on iOS Range) |
146 | 131 | // -------------------------------------------------- |
147 | 132 | // When the range is disabled, the entire range, |
|
0 commit comments