mirror of
https://github.com/danog/sass-site.git
synced 2024-12-11 08:59:51 +01:00
14 lines
327 B
SCSS
14 lines
327 B
SCSS
@use 'sass:math';
|
|
|
|
@function sl-px-to-rem($pixels, $font-size: 16px) {
|
|
@return (math.div($pixels, $font-size) * 1rem);
|
|
}
|
|
|
|
@function sl-px-to-em($pixels, $font-size: 16px) {
|
|
@return (math.div($pixels, $font-size) * 1em);
|
|
}
|
|
|
|
@function sl-px-to-unitless($pixels, $font-size: 16px) {
|
|
@return math.div($pixels, $font-size);
|
|
}
|