summaryrefslogtreecommitdiff
blob: e44a5956fd616be5bf4bba45b14ead1fcc66e979 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// ======================================================================
// Rem function
//
// Convert px to rem in a readable fashion.
//
// Example: font-size: rem( 21px );
// ======================================================================

@use "sass:math";

$root-font-size: 16px;

@function rem( $pixels, $context: $root-font-size ) {
	@return math.div($pixels, $context) * 1rem;
}