Sha256: 653b3494e5d2bd98d9b48da34dc64ed138ce72695d3ed7ed23804c9e58eb9845

Contents?: true

Size: 590 Bytes

Versions: 7

Compression:

Stored size: 590 Bytes

Contents

// Grid Syntax
// ===========

// Layout
// ------
// Set a new layout using a shorthand
// - $layout: <settings>
@mixin layout(
  $layout
) {
  $susy: map-merge($susy, parse-grid($layout)) !global;
}

// Use Grid
// --------
// Use an arbitrary layout for a section of code
// - $layout: <settings>
@mixin with-layout(
  $layout
) {
  $old: $susy;

  @include layout($layout);
  @content;

  $susy: $old !global;
}

// Layout
// ------
// Return a parsed layout map based on shorthand syntax
// - $layout: <settings>
@function layout(
  $layout: $susy
) {
  @return parse-grid($layout);
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
susy-2.1.1 sass/susy/language/susy/_grids.scss
susy-2.1.0 sass/susy/language/susy/_grids.scss
susy-2.0.0 sass/susy/language/susy/_grids.scss
susy-2.0.0.rc.2 sass/susy/language/susy/_grids.scss
susy-2.0.0.rc.1 sass/susy/language/susy/_grids.scss
susy-2.0.0.beta.3 sass/susy/language/susy/_grids.scss
susy-2.0.0.beta.2 sass/susy/language/susy/_grids.scss