Sha256: 7a610fad8d116cf87529659af4911a0ec456713e891ec364be6b9b90e3bb04e8

Contents?: true

Size: 773 Bytes

Versions: 6

Compression:

Stored size: 773 Bytes

Contents

// Context Syntax
// ==============

// Nested [function]
// -----------------
// Return a subset grid for nested context.
// - $context   : <span>
@function nested(
  $context
) {
  $context    : parse-span($context);
  $span       : susy-get(span, $context);
  $location   : get-location($context);
  $columns    : susy-get(columns, $context);

  @return column-span($span, $location, $columns);
}

// Nested [mixin]
// --------------
// Use a subset grid for a nested context
// - $context   : <span>
// - @content   : <content>
@mixin nested(
  $context
) {
  $context  : parse-span($context);
  $old      : susy-get(columns);
  $susy     : map-merge($susy, (columns: nested($context))) !global;

  @content;

  $susy     : map-merge($susy, (columns: $old)) !global;
}

Version data entries

6 entries across 6 versions & 1 rubygems

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