Sha256: 0762fd351c66a9e029e56b6e6d548fdd083f968eb3c370834aeb9e6724cc99db

Contents?: true

Size: 781 Bytes

Versions: 1

Compression:

Stored size: 781 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 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.beta.1 sass/susy/language/susy/_context.scss