Sha256: eb23d9650964c48295e253b98c067adca0f1deadb098cea2c5f498a2a46c9639

Contents?: true

Size: 1.15 KB

Versions: 4

Compression:

Stored size: 1.15 KB

Contents

@import "compass/typography/vertical_rhythm";
@import "compass/utilities/general/clearfix";

@warn "Use facades/typography/baseline. This module will be depreciated.";

@mixin normal-text      { font-family: $font-family; color: $font-color; }
@mixin fixed-width-text { font: 1em $fixed-font-family; line-height: 1.5; }

// Shorthand overrides for Compass' adjust-font-size/leading-to
// because well.. they are freakin long.
//
@mixin font-size($size, $lines: lines-for-font-size($size)){
	@include adjust-font-size-to($size, $lines);
}
@mixin leading($size, $lines: lines-for-font-size($size)){
	@include adjust-leading-to($size, $lines);
}

// Basic font scaling based on a typography scale. Its not perfect, but hey its nice lookin.
// Scales h1-h6 and sets paragraphs.
@mixin font-scaling($base: $font-size, $scale: 24px 22px 20px 18px 16px 14px){
	$offset:1.618;
	$scale: compact($scale);
	@for $i from 1 through 6 {
		$sizing: floor((nth($scale, $i) * $offset) - ($base / $offset));
		#{$i}{ @include adjust-font-size-to($sizing, 1); @include margin-trailer(1, $sizing); }
	}
	p{  @include adjust-font-size-to($font-size); @include margin-trailer(1, $font-size); }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
facades-0.0.6 lib/facades/stylesheets/facades/typography/_rhythm.scss
facades-0.0.5 lib/facades/stylesheets/facades/typography/_rhythm.scss
facades-0.0.4 lib/facades/stylesheets/facades/typography/_rhythm.scss
facades-0.0.3 lib/facades/stylesheets/facades/typography/_rhythm.scss