Sha256: 3c87e59641fb48cb26b032f03482e131851b2e2beb1c280be6807fdfb8124c38
Contents?: true
Size: 544 Bytes
Versions: 65
Compression:
Stored size: 544 Bytes
Contents
@use "sass:math"; $-font-sizes: () !default; $-line-heights: () !default; @function font-size($size, $breakpoint: null, $unit: rem) { $font-size: map-get($-font-sizes, $size); @if $unit == rem { @return $font-size; } @else if $unit == px { @return math.div($font-size, 1rem) * 16px; } } @function line-height($size, $breakpoint: null, $unit: em) { $line-height: map-get($-line-heights, $size); @if $unit == em { @return $line-height; } @else if $unit == px { @return math.div($line-height, 1em) * 16px; } }
Version data entries
65 entries across 65 versions & 1 rubygems