Sha256: dbd9f7f5b0d8bd38e08a3475ba26cdb315cdb3811b15d9ffb0a4708bc7e3f99a

Contents?: true

Size: 1.07 KB

Versions: 51

Compression:

Stored size: 1.07 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

51 entries across 51 versions & 2 rubygems

Version Path
wrgem-0.0.55 lib/generators/wrstart/template/vendor/assets/components/susy/sass/susy/language/susy/_grids.scss
wrgem-0.0.54 lib/generators/wrstart/template/vendor/assets/components/susy/sass/susy/language/susy/_grids.scss
wrgem-0.0.53 lib/generators/wrstart/template/vendor/assets/components/susy/sass/susy/language/susy/_grids.scss
wrgem-0.0.52 lib/generators/wrstart/template/vendor/assets/components/susy/sass/susy/language/susy/_grids.scss
wrgem-0.0.51 lib/generators/wrstart/template/vendor/assets/components/susy/sass/susy/language/susy/_grids.scss
wrgem-0.0.50 lib/generators/wrstart/template/vendor/assets/components/susy/sass/susy/language/susy/_grids.scss
wrgem-0.0.49 lib/generators/wrstart/template/vendor/assets/components/susy/sass/susy/language/susy/_grids.scss
wrgem-0.0.48 lib/generators/wrstart/template/vendor/assets/components/susy/sass/susy/language/susy/_grids.scss
wrgem-0.0.47 lib/generators/wrstart/template/vendor/assets/components/susy/sass/susy/language/susy/_grids.scss
wrgem-0.0.46 lib/generators/wrstart/template/vendor/assets/components/susy/sass/susy/language/susy/_grids.scss
wrgem-0.0.45 lib/generators/wrstart/template/vendor/assets/components/susy/sass/susy/language/susy/_grids.scss
wrgem-0.0.44 lib/generators/wrstart/template/vendor/assets/components/susy/sass/susy/language/susy/_grids.scss
wrgem-0.0.43 lib/generators/wrstart/template/vendor/assets/components/susy/sass/susy/language/susy/_grids.scss
wrgem-0.0.42 lib/generators/wrstart/template/vendor/assets/components/susy/sass/susy/language/susy/_grids.scss
wrgem-0.0.41 lib/generators/wrstart/template/vendor/assets/components/susy/sass/susy/language/susy/_grids.scss
wrgem-0.0.40 lib/generators/wrstart/template/vendor/assets/components/susy/sass/susy/language/susy/_grids.scss
wrgem-0.0.39 lib/generators/wrstart/template/vendor/assets/components/susy/sass/susy/language/susy/_grids.scss
wrgem-0.0.38 lib/generators/wrstart/template/vendor/assets/components/susy/sass/susy/language/susy/_grids.scss
wrgem-0.0.37 lib/generators/wrstart/template/vendor/assets/components/susy/sass/susy/language/susy/_grids.scss
wrgem-0.0.35 lib/generators/wrstart/template/vendor/assets/components/susy/sass/susy/language/susy/_grids.scss