Sha256: 3a20d2f8c57d3762eb3269f50b5b7767fc36090335b68bca7091324b26d9b238
Contents?: true
Size: 772 Bytes
Versions: 9
Compression:
Stored size: 772 Bytes
Contents
////////////////////////////// // Wrapper mixin for overriding the global contexts as a block ////////////////////////////// @mixin layout($grid: false, $gutter: false, $output-style: false) { // Private holder for current global context $layout-private-grid-holder: $grids; $layout-private-gutter-holder: $gutters; $layout-private-output-holder: $output; // Overides current global contexts, but only if needed @if $grid != false { $grids: $grid; } @if $gutter != false { $gutters: $gutter; } @if $output-style != false { $output: $output-style; } // All the things! @content; // Resets global contexts $grids: $layout-private-grid-holder; $gutters: $layout-private-gutter-holder; $output: $layout-private-output-holder; }
Version data entries
9 entries across 9 versions & 2 rubygems