11// stylelint-disable scss/dimension-no-non-numeric-values
22@use " sass:math" ;
3+ @use " sass:meta" ;
4+ @use " sass:string" ;
35
46// SCSS RFS mixin
57//
@@ -31,7 +33,7 @@ $rfs-two-dimensional: false !default;
3133// Factor of decrease
3234$rfs-factor : 10 !default ;
3335
34- @if type-of ($rfs-factor ) != number or $rfs-factor <= 1 {
36+ @if meta . type-of ($rfs-factor ) != number or $rfs-factor <= 1 {
3537 @error " `#{$rfs-factor } ` is not a valid $rfs-factor, it must be greater than 1." ;
3638}
3739
@@ -191,7 +193,7 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
191193// Helper function to get the formatted non-responsive value
192194@function rfs-value ($values ) {
193195 // Convert to list
194- $values : if (type-of ($values ) != list , ($values ,), $values );
196+ $values : if (meta . type-of ($values ) != list , ($values ,), $values );
195197
196198 $val : " " ;
197199
@@ -202,7 +204,7 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
202204 }
203205 @else {
204206 // Cache $value unit
205- $unit : if (type-of ($value ) == " number" , math .unit ($value ), false );
207+ $unit : if (meta . type-of ($value ) == " number" , math .unit ($value ), false );
206208
207209 @if $unit == px {
208210 // Convert to rem if needed
@@ -219,13 +221,13 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
219221 }
220222
221223 // Remove first space
222- @return unquote (str-slice ($val , 2 ));
224+ @return string . unquote (str-slice ($val , 2 ));
223225}
224226
225227// Helper function to get the responsive value calculated by RFS
226228@function rfs-fluid-value ($values ) {
227229 // Convert to list
228- $values : if (type-of ($values ) != list , ($values ,), $values );
230+ $values : if (meta . type-of ($values ) != list , ($values ,), $values );
229231
230232 $val : " " ;
231233
@@ -235,7 +237,7 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
235237 $val : $val + " 0" ;
236238 } @else {
237239 // Cache $value unit
238- $unit : if (type-of ($value ) == " number" , math .unit ($value ), false );
240+ $unit : if (meta . type-of ($value ) == " number" , math .unit ($value ), false );
239241
240242 // If $value isn't a number (like inherit) or $value has a unit (not px or rem, like 1.5em) or $ is 0, just print the value
241243 @if not $unit or $unit != px and $unit != rem {
@@ -275,7 +277,7 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
275277 }
276278
277279 // Remove first space
278- @return unquote (str-slice ($val , 2 ));
280+ @return string . unquote (str-slice ($val , 2 ));
279281}
280282
281283// RFS mixin
0 commit comments