Sha256: 328eb4c9d4be3f09b0d9c0b21cb4bf527a4df06d06191f4376ce0e2d36f5b11c
Contents?: true
Size: 630 Bytes
Versions: 11
Compression:
Stored size: 630 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