mirror of
https://github.com/danog/sass-site.git
synced 2024-12-15 02:47:36 +01:00
15 lines
356 B
SCSS
15 lines
356 B
SCSS
@function sl-px-to-rem($pixels,
|
|
$font-size: 16px) {
|
|
@return ($pixels / $font-size * 1rem);
|
|
}
|
|
|
|
@function sl-px-to-em($pixels,
|
|
$font-size: 16px) {
|
|
@return ($pixels / $font-size * 1em);
|
|
}
|
|
|
|
@function sl-px-to-unitless($pixels,
|
|
$font-size: 16px) {
|
|
@return ($pixels / $font-size);
|
|
}
|