mirror of
https://github.com/locomotivemtl/locomotive-boilerplate.git
synced 2026-01-15 00:55:08 +08:00
Strip breakpoint unit from responsive-type
This commit is contained in:
@@ -184,5 +184,5 @@ $context: 'frontend' !default;
|
||||
* @return {Number} - Clamped font size based on breakpoint
|
||||
*/
|
||||
@function responsive-type($min-size, $max-size, $breakpoint) {
|
||||
@return clamp($min-size, calc(#{strip-unit($max-size)}/#{$breakpoint} * 100vw), $max-size)
|
||||
@return clamp($min-size, calc(#{strip-unit($max-size)}/#{strip-unit(#{$breakpoint}) * 100vw), $max-size);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user