Sha256: 0b383eb8a29faf3b69a66799ee624e7870aa2704a1b822cf53e27a64470cd38d
Contents?: true
Size: 629 Bytes
Versions: 11
Compression:
Stored size: 629 Bytes
Contents
// 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) * 1em; } // Baseline margin calculations // margin-bottom: baseline-margin($baseline_size); @function baseline-margin($baseline_size) { @return ($line / $baseline_size) * 1em; }
Version data entries
11 entries across 11 versions & 1 rubygems