13 lines
295 B
SCSS
13 lines
295 B
SCSS
|
|
// #############################################################################
|
||
|
|
// FUNCTIONS
|
||
|
|
|
||
|
|
// basic mathematical functions that are helpful
|
||
|
|
|
||
|
|
// em calculation
|
||
|
|
@function em($target, $context: $font-size) {
|
||
|
|
@if $target == 0 {
|
||
|
|
@return 0
|
||
|
|
}
|
||
|
|
@return $target / $context + em;
|
||
|
|
}
|