Sha256: 3915a894068a2b32201aeb1a6e936aeece6ea2e2ce4c264c5d51c92dcb47f542

Contents?: true

Size: 1.77 KB

Versions: 289

Compression:

Stored size: 1.77 KB

Contents

@mixin breakpoint($query:$feature $value $columns, $total-columns: $grid-columns) {
  @warn "The breakpoint() mixin was renamed to media() in Neat 1.0. Please update your project with the new syntax before the next version bump.";

  @if length($query) == 1 {
    @media screen and ($default-feature: nth($query, 1)) {
      $default-grid-columns: $grid-columns;
      $grid-columns: $total-columns;
      @content;
      $grid-columns: $default-grid-columns;
    }
  }

  @else if length($query) == 2 {
    @media screen and (nth($query, 1): nth($query, 2)) {
      $default-grid-columns: $grid-columns;
      $grid-columns: $total-columns;
      @content;
      $grid-columns: $default-grid-columns;
    }
  }

  @else if length($query) == 3 {
    @media screen and (nth($query, 1): nth($query, 2)) {
      $default-grid-columns: $grid-columns;
      $grid-columns: nth($query, 3);
      @content;
      $grid-columns: $default-grid-columns;
    }
  }

  @else if length($query) == 4 {
    @media screen and (nth($query, 1): nth($query, 2)) and (nth($query, 3): nth($query, 4)) {
      $default-grid-columns: $grid-columns;
      $grid-columns: $total-columns;
      @content;
      $grid-columns: $default-grid-columns;
    }
  }

  @else if length($query) == 5 {
    @media screen and (nth($query, 1): nth($query, 2)) and (nth($query, 3): nth($query, 4)) {
      $default-grid-columns: $grid-columns;
      $grid-columns: nth($query, 5);
      @content;
      $grid-columns: $default-grid-columns;
    }
  }

  @else {
    @warn "Wrong number of arguments for breakpoint(). Read the documentation for more details.";
  }
}

@mixin nth-omega($nth, $display: block, $direction: default) {
  @warn "The nth-omega() mixin is deprecated. Please use omega() instead.";
  @include omega($nth $display, $direction);
}

Version data entries

289 entries across 287 versions & 9 rubygems

Version Path
smock-0.1.268 app/assets/stylesheets/thirdparty/neat/grid/_to-deprecate.scss
smock-0.1.267 app/assets/stylesheets/thirdparty/neat/grid/_to-deprecate.scss
smock-0.1.266 app/assets/stylesheets/thirdparty/neat/grid/_to-deprecate.scss
smock-0.1.265 app/assets/stylesheets/thirdparty/neat/grid/_to-deprecate.scss
smock-0.1.264 app/assets/stylesheets/thirdparty/neat/grid/_to-deprecate.scss
smock-0.1.263 app/assets/stylesheets/thirdparty/neat/grid/_to-deprecate.scss
smock-0.1.262 app/assets/stylesheets/thirdparty/neat/grid/_to-deprecate.scss
smock-0.1.261 app/assets/stylesheets/thirdparty/neat/grid/_to-deprecate.scss
smock-0.1.260 app/assets/stylesheets/thirdparty/neat/grid/_to-deprecate.scss
smock-0.1.259 app/assets/stylesheets/thirdparty/neat/grid/_to-deprecate.scss
smock-0.1.258 app/assets/stylesheets/thirdparty/neat/grid/_to-deprecate.scss
smock-0.1.256 app/assets/stylesheets/thirdparty/neat/grid/_to-deprecate.scss
smock-0.1.255 app/assets/stylesheets/thirdparty/neat/grid/_to-deprecate.scss
smock-0.1.254 app/assets/stylesheets/thirdparty/neat/grid/_to-deprecate.scss
smock-0.1.253 app/assets/stylesheets/thirdparty/neat/grid/_to-deprecate.scss
smock-0.1.252 app/assets/stylesheets/thirdparty/neat/grid/_to-deprecate.scss
smock-0.1.251 app/assets/stylesheets/thirdparty/neat/grid/_to-deprecate.scss
smock-0.1.250 app/assets/stylesheets/thirdparty/neat/grid/_to-deprecate.scss
smock-0.1.249 app/assets/stylesheets/thirdparty/neat/grid/_to-deprecate.scss
smock-0.1.247 app/assets/stylesheets/thirdparty/neat/grid/_to-deprecate.scss