mirror of
https://github.com/seigler/dash-website
synced 2025-07-27 07:16:10 +00:00
20 lines
342 B
SCSS
20 lines
342 B
SCSS
/**
|
|
* Helper Functions
|
|
*/
|
|
|
|
@function pxToEm($px, $ref: $font-size-base) {
|
|
@return toEm(toPx($px) / toPx($ref));
|
|
}
|
|
@function pxToRem($px) {
|
|
@return toRem(toPx($px) / toPx($font-size-base));
|
|
}
|
|
|
|
@function toEm($val) {
|
|
@return ($val + 0em);
|
|
}
|
|
@function toRem($val) {
|
|
@return ($val + 0rem);
|
|
}
|
|
@function toPx($val) {
|
|
@return ($val + 0px);
|
|
}
|