Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (18 sloc) 627 Bytes
// General font size function that will convert intigers into em values
// font-size: em(12);
@function em($target, $context: $font_size) {
@return ($target / $context) * 1em;
}
@function rem($target, $context: $font_size) {
@return ($target / $context) * 1rem;
}
// Baseline height calculations
// line-height: baseline($baseline_size);
@function baseline($baseline_size) {
@return ($line / $baseline_size) * ceil($baseline_size / $line) * 1;
}
// Baseline margin calculations
// margin-bottom: baseline-margin($baseline_size);
@function baseline-margin($baseline_size) {
@return ($line / $baseline_size) * 1em;
}
Something went wrong with that request. Please try again.