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

Version Path
singularity-extras-1.0.0.alpha.2 stylesheets/singularity-extras/layouts/_layout.scss
singularity-extras-1.0.0.alpha.1 stylesheets/singularity-extras/layouts/_layout.scss
singularitygs-1.1.2 stylesheets/singularitygs/helpers/_layout.scss
singularitygs-1.1.1 stylesheets/singularitygs/helpers/_layout.scss
singularitygs-1.1.0 stylesheets/singularitygs/helpers/_layout.scss
singularitygs-1.0.8 stylesheets/singularitygs/helpers/_layout.scss
singularity-extras-0.0.3 stylesheets/singularity-extras/layouts/_layout.scss
singularitygs-1.0.7 stylesheets/singularitygs/helpers/_layout.scss
singularity-extras-0.0.2 stylesheets/singularity-extras/layouts/_layout.scss