Sha256: f49114f94e9e2d1fe920f5ce73dd6be9885ad4f7ab673fbde900739c65b3e46a
Contents?: true
Size: 1.28 KB
Versions: 7
Compression:
Stored size: 1.28 KB
Contents
// supporting mixin for @mixin the_grid // 'grid_placement' sets display, float and margin for the block @mixin grid_placement($grid_align, $grid_uom, $grid_child, $grid_context_width, $margin) { @if $grid_align == center { margin: 0 auto; } @else if $grid_align == left { margin: 0; } @else { @if $grid_child == alpha { @if $grid_uom == em { $margin_calc: #{$margin / $em}em; @include grid_margin($grid_child, $margin_calc); } @else if $grid_uom == percent { $margin_calc: $margin / $grid_context_width * 100%; @include grid_margin($grid_child, $margin_calc); } } @else if $grid_child == omega { @if $grid_uom == em { $margin_calc: #{$margin / $em}em; @include grid_margin($grid_child, $margin_calc); } @else if $grid_uom == percent { $margin_calc: $margin / $grid_context_width * 100%; @include grid_margin($grid_child, $margin_calc); } } @else if $grid_child == none { @if $grid_uom == em { $margin_calc: #{$margin / $em}em; @include grid_margin($grid_child, $margin_calc); } @else if $grid_uom == percent { $margin_calc: $margin / $grid_context_width * 100%; @include grid_margin($grid_child, $margin_calc); } } @else if $grid_child == alphaomega { margin-left: 0; margin-right: 0; } } }
Version data entries
7 entries across 7 versions & 1 rubygems