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

Version Path
stipe-0.0.5.0 stylesheets/stipe/typography/_functions.scss
stipe-0.0.4.9 stylesheets/stipe/typography/_functions.scss
stipe-0.0.4.8 stylesheets/stipe/typography/_functions.scss
stipe-0.0.4.7 stylesheets/stipe/typography/_functions.scss
stipe-0.0.4.6 stylesheets/stipe/typography/_functions.scss
stipe-0.0.4.5 stylesheets/stipe/typography/_functions.scss
stipe-0.0.4.4 stylesheets/stipe/typography/_functions.scss
stipe-0.0.4.3 stylesheets/stipe/typography/_functions.scss
stipe-0.0.4.2 stylesheets/stipe/typography/_functions.scss
stipe-0.0.4.1 stylesheets/stipe/typography/_functions.scss
stipe-0.0.4.0 stylesheets/stipe/typography/_functions.scss
stipe-0.0.3.9 stylesheets/stipe/typography/_functions.scss
stipe-0.0.3.8 stylesheets/stipe/typography/_functions.scss
stipe-0.0.3.7 stylesheets/stipe/typography/_functions.scss
stipe-0.0.3.6 stylesheets/stipe/typography/_functions.scss
stipe-0.0.3.5 stylesheets/stipe/typography/_functions.scss
stipe-0.0.3.4 stylesheets/stipe/typography/_functions.scss
stipe-0.0.3.3 stylesheets/stipe/typography/_functions.scss
stipe-0.0.3.2 stylesheets/stipe/typography/_functions.scss
stipe-0.0.3.1 stylesheets/stipe/typography/_functions.scss