11@use ' ../utils/api' ;
22
3+ @mixin scaled-transform ($translate-x ) {
4+ transform : scale (1.56 , 1.47 ) translateX (calc (#{$translate-x } * -0.1 )) translateZ (0 ) !important ;
5+ -webkit-transform : scale (1.56 , 1.47 ) translateX (calc (#{$translate-x } * -0.1 )) translateZ (0 ) !important ;
6+ }
7+
38ion-range .ios :not (.ios26-disabled ) {
49 --knob-size : 20px ;
10+ --knob-width : 38px ;
511 --knob-border-radius : 24px ;
612 & .range-label-placement-start ::part (label ) {
713 margin-inline : 0 24px ;
@@ -17,18 +23,39 @@ ion-range.ios:not(.ios26-disabled) {
1723 }
1824
1925 & ::part(knob) {
20- width : 38 px ;
26+ width : var ( --knob-width ) ;
2127 margin-inline-start : -8px ;
22- transition : transform 300ms ease ;
28+ transition :
29+ transform 300ms ease ,
30+ margin 300ms ease ,
31+ box-shadow 200ms ease ;
2332 }
2433 & .range-pressed ::part(knob) {
25- transform : scale ( 1.4 , 1.6 ) translateX ( calc ( 38 px * -0.1 )) translateZ ( 0 );
26- -webkit-transform : scale ( 1.4 , 1.6 ) translateX ( calc ( 38 px * - 0.1)) translateZ ( 0 );
27- @include api . glass-background ( 0.1 , 0.5 px , 120 % ) ;
34+ @include scaled-transform ( 0 px );
35+ @include api . glass-background ( 0.1 , 0 , 120 % );
36+ border : none ;
2837 box-shadow :
29- inset 0 8px 8px -8px var (--bar-background ),
30- inset 0 -8px 8px -8px var (--bar-background ),
31- inset 8px 0 8px -8px var (--bar-background ),
32- inset -8px 0 8px -8px var (--bar-background );
38+ 0 0.5px 4px rgba (0 , 0 , 0 , 0.12 ),
39+ 0 6px 4px rgba (0 , 0 , 0 , 0.05 ),
40+ inset 0.4px 0.4px 1px 0 var (--bar-background-active );
41+ }
42+
43+ & :not ([dual-knobs = ' true' ]).range-pressed.range-value-min {
44+ & ::part (knob ) {
45+ @include scaled-transform (calc (var (--knob-width ) * -2 ));
46+ box-shadow :
47+ 0 0.5px 4px rgba (0 , 0 , 0 , 0.12 ),
48+ 0 6px 4px rgba (0 , 0 , 0 , 0.05 );
49+ }
50+ }
51+
52+ & :not ([dual-knobs = ' true' ]).range-pressed.range-value-max {
53+ & ::part (knob ) {
54+ @include scaled-transform (calc (var (--knob-width ) * 2 ));
55+ box-shadow :
56+ 0 0.5px 4px rgba (0 , 0 , 0 , 0.12 ),
57+ 0 6px 4px rgba (0 , 0 , 0 , 0.05 ),
58+ inset 0.4px 0.4px 1px 0.2px var (--bar-background-active );
59+ }
3360 }
3461}
0 commit comments