Sha256: 7ce3df8b0d2fe32d8af3ab83571effca149206e86d45a8a8012d6ef80e0dae81

Contents?: true

Size: 551 Bytes

Versions: 14

Compression:

Stored size: 551 Bytes

Contents

@mixin shift($n-columns: 1) {
  @include shift-in-context($n-columns);
}

@mixin shift-in-context($shift: $columns of $container-columns) {
  $n-columns: nth($shift, 1);
  $parent-columns: container-shift($shift) !global;

  $direction: get-direction($layout-direction, $default-layout-direction);
  $opposite-direction: get-opposite-direction($direction);

  margin-#{$opposite-direction}: $n-columns * flex-grid(1, $parent-columns) + $n-columns * flex-gutter($parent-columns);

  // Reset nesting context
  $parent-columns: $grid-columns !global;
}

Version data entries

14 entries across 14 versions & 5 rubygems

Version Path
smock-0.1.11 app/assets/stylesheets/thirdparty/neat/grid/_shift.scss
smock-0.1.10 app/assets/stylesheets/thirdparty/neat/grid/_shift.scss
smock-0.1.8 app/assets/stylesheets/thirdparty/neat/grid/_shift.scss
smock-0.1.7 app/assets/stylesheets/thirdparty/neat/grid/_shift.scss
neat-1.7.0.pre app/assets/stylesheets/grid/_shift.scss
tenon-1.0 spec/dummy/public/assets/source_maps/_shift.scss
growbot-web-0.0.6 lib/growbot/web/views/sass/neat/grid/_shift.scss
growbot-web-0.0.5 lib/growbot/web/views/sass/neat/grid/_shift.scss
growbot-web-0.0.4 lib/growbot/web/views/sass/neat/grid/_shift.scss
growbot-web-0.0.2 lib/growbot/web/views/sass/neat/grid/_shift.scss
growbot-web-0.0.1 lib/growbot/web/views/sass/neat/grid/_shift.scss
neat-compass-1.6.0 stylesheets/neat/grid/_shift.scss
neat-1.6.0 app/assets/stylesheets/grid/_shift.scss
neat-1.6.0.pre2 app/assets/stylesheets/grid/_shift.scss