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

Version Path
stipe-0.0.6.3 stylesheets/stipe/typography/_functions.scss
stipe-0.0.6.2 stylesheets/stipe/typography/_functions.scss
stipe-0.0.6.1 stylesheets/stipe/typography/_functions.scss
stipe-0.0.6.0 stylesheets/stipe/typography/_functions.scss
stipe-0.0.5.9 stylesheets/stipe/typography/_functions.scss
stipe-0.0.5.8 stylesheets/stipe/typography/_functions.scss
stipe-0.0.5.7.9 stylesheets/stipe/typography/_functions.scss
stipe-0.0.5.7.8 stylesheets/stipe/typography/_functions.scss
stipe-0.0.5.7.7 stylesheets/stipe/typography/_functions.scss
stipe-0.0.5.7.6 stylesheets/stipe/typography/_functions.scss
stipe-0.0.5.7.5 stylesheets/stipe/typography/_functions.scss