Sha256: 5a9bc1a0e1f2a17fe82e0f2bae5b02d6a38244f7f69f5511ae109c3fd71999d4
Contents?: true
Size: 632 Bytes
Versions: 31
Compression:
Stored size: 632 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
31 entries across 31 versions & 1 rubygems