Sha256: a075778c506db345ad8294436c29726237e7a5bc458b740eb9239e4aa26f71a3

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

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

@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));
		h#{$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

1 entries across 1 versions & 1 rubygems

Version Path
facades-0.0.2 lib/facades/stylesheets/facades/typography/_rhythm.scss