Sha256: 283dcd7bb46b80d7d6e72879c3eebe790ec10585b6c2c620418c86436f930cae

Contents?: true

Size: 956 Bytes

Versions: 9

Compression:

Stored size: 956 Bytes

Contents

@import 'compass/typography/vertical_rhythm';

$base-font-size: $font-size;
$base-line-height: $line-height;

@mixin font-size($size: $font-size, $lines: 1){
	@include adjust-font-size-to($size, $lines);
}

@mixin leading($lines: 1, $size: $font-size){
	@include adjust-leading-to($lines, $size);
}

@mixin margins($lines: 1, $size: $font-size){
	@include spacing(margin, $lines, $size);
}

@mixin padding($lines: 1, $size: $font-size){
	@include spacing(padding, $lines, $size);
}


@mixin spacing($type: margin, $lines: 1, $size: $font-size){
	$type:unquote($type);
	@if type-of($lines) == list{
		@include leader(nth($lines, 1), $size, $type);
		@include trailer(nth($lines, 2), $size, $type); }
	@else{
		@include leader($lines, $size, $type);
		@include trailer($lines, $size, $type); }
}


@function border-rhythm($width: 1px, $lines:1, $size: $font-size, $leading: $line-height){
	$unit: 1em;
	@return $unit / $size * ($lines * $leading - $width);
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
facades-1.1.0 src/scss/facades/mixins/_rhythm.scss
facades-1.0.9 src/scss/facades/mixins/_rhythm.scss
facades-1.0.8 src/scss/facades/mixins/_rhythm.scss
facades-1.0.6 src/scss/facades/mixins/_rhythm.scss
facades-1.0.4 src/scss/facades/mixins/_rhythm.scss
facades-1.0.3 src/scss/facades/mixins/_rhythm.scss
facades-1.0.2 src/scss/facades/mixins/_rhythm.scss
facades-1.0.1 src/scss/facades/mixins/_rhythm.scss
facades-1.0.0 src/scss/facades/mixins/_rhythm.scss