mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-11 20:13:07 +00:00
21 lines
390 B
SCSS
21 lines
390 B
SCSS
@use 'sass:math';
|
|
|
|
@function calculateRem($size) {
|
|
$remSize: math.div($size, 16px);
|
|
@return $remSize;
|
|
}
|
|
|
|
|
|
@function strip-unit($number) {
|
|
@if type-of($number) == 'number' and not unitless($number) {
|
|
@return math.div($number , ($number * 0 + 1));
|
|
}
|
|
@return $number;
|
|
}
|
|
|
|
|
|
@function calculatePx($size) {
|
|
$pxSize: strip-unit($size) * 16px;
|
|
@return $pxSize;
|
|
}
|