Sha256: 5b8a3e0d2da51dd03d82ae15d4895fb5ecda5642e6134fe52dd0280cccf4ba2f

Contents?: true

Size: 787 Bytes

Versions: 1

Compression:

Stored size: 787 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   : susy-get(location, $context);
  $columns    : susy-get(columns, $context);

  @return get-columns($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

1 entries across 1 versions & 1 rubygems

Version Path
susy-2.0.0.alpha.6 sass/susy/language/susy/_context.scss