Sha256: d07d7627d837da5bcecda858df547d274ac5cd473e43866fea05e3f310685311

Contents?: true

Size: 1.15 KB

Versions: 24

Compression:

Stored size: 1.15 KB

Contents

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


// Layout
// ------
// Set a new layout using a shorthand
// - $layout: <settings>
// - $clean: boolean
@mixin layout(
  $layout,
  $clean: false
) {
  $inspect  : $layout;
  $susy     : _get-layout($layout, $clean) !global;

  @include susy-inspect(layout, $inspect);
}


// Use Grid
// --------
// Use an arbitrary layout for a section of code
// - $layout: <settings>
// - $clean: boolean
@mixin with-layout(
  $layout,
  $clean: false
) {
  $inspect  : $layout;
  $old      : $susy;
  $susy     : _get-layout($layout, $clean) !global;

  @include susy-inspect(with-layout, $inspect);

  @content;

  $susy: $old !global;
}


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


// Get Layout
// ----------
// Return a new layout based on current and given settings
// - $layout: <settings>
// - $clean: boolean
@function _get-layout(
  $layout,
  $clean: false
) {
  $layout: layout($layout);
  @return if($clean, $layout, _susy-deep-merge($susy, $layout));
}

Version data entries

24 entries across 24 versions & 3 rubygems

Version Path
jekyll-theme-basically-basic-1.1.3 _sass/basically-basic/vendor/susy/language/susy/_grids.scss
jekyll-theme-basically-basic-1.1.2 _sass/basically-basic/vendor/susy/language/susy/_grids.scss
jekyll-theme-basically-basic-1.1.1 _sass/basically-basic/vendor/susy/language/susy/_grids.scss
minimal-mistakes-jekyll-4.4.2 _sass/minimal-mistakes/vendor/susy/susy/language/susy/_grids.scss
minimal-mistakes-jekyll-4.4.0 _sass/minimal-mistakes/vendor/susy/susy/language/susy/_grids.scss
sparrow-jekyll-theme-0.1.1 _sass/vendor/susy/susy/language/susy/_grids.scss
sparrow-jekyll-theme-0.1.0 _sass/vendor/susy/susy/language/susy/_grids.scss
jekyll-theme-basically-basic-1.1.0 _sass/basically-basic/vendor/susy/language/susy/_grids.scss
jekyll-theme-basically-basic-1.0.1 _sass/basically-basic/vendor/susy/language/susy/_grids.scss
minimal-mistakes-jekyll-4.3.1 _sass/vendor/susy/susy/language/susy/_grids.scss
minimal-mistakes-jekyll-4.3.0 _sass/vendor/susy/susy/language/susy/_grids.scss
minimal-mistakes-jekyll-4.2.2 _sass/vendor/susy/susy/language/susy/_grids.scss
minimal-mistakes-jekyll-4.2.1 _sass/vendor/susy/susy/language/susy/_grids.scss
minimal-mistakes-jekyll-4.2.0 _sass/vendor/susy/susy/language/susy/_grids.scss
minimal-mistakes-jekyll-4.1.0 _sass/vendor/susy/susy/language/susy/_grids.scss
minimal-mistakes-jekyll-4.0.10 _sass/vendor/susy/susy/language/susy/_grids.scss
minimal-mistakes-jekyll-4.0.9 _sass/vendor/susy/susy/language/susy/_grids.scss
minimal-mistakes-jekyll-4.0.8 _sass/vendor/susy/susy/language/susy/_grids.scss
minimal-mistakes-jekyll-4.0.7 _sass/vendor/susy/susy/language/susy/_grids.scss
minimal-mistakes-jekyll-4.0.6 _sass/vendor/susy/susy/language/susy/_grids.scss