Sha256: efe0822b8204ed20bf027b7697032a55ba73037dcf988f509aa8296b709accc3

Contents?: true

Size: 1.44 KB

Versions: 36

Compression:

Stored size: 1.44 KB

Contents

@mixin media($query:$feature $value $columns, $total-columns: $grid-columns) {

  @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.";
  }
}

Version data entries

36 entries across 34 versions & 6 rubygems

Version Path
stump-cli-0.1.3 lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_media.scss
stump-cli-0.1.2 lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_media.scss
stump-cli-0.1.1 lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_media.scss
blogelator-0.2.5 vendor/assets/stylesheets/blogelator/neat/grid/_media.scss
blocky-0.0.11 vendor/assets/stylesheets/blocky/neat/grid/_media.scss
blogelator-0.2.4 vendor/assets/stylesheets/blogelator/neat/grid/_media.scss
blocky-0.0.10 vendor/assets/stylesheets/blocky/neat/grid/_media.scss
blocky-0.0.9 vendor/assets/stylesheets/blocky/neat/grid/_media.scss
blocky-0.0.8 vendor/assets/stylesheets/blocky/neat/grid/_media.scss
blocky-0.0.7 vendor/assets/stylesheets/blocky/neat/grid/_media.scss
blocky-0.0.6 vendor/assets/stylesheets/blocky/neat/grid/_media.scss
blocky-0.0.5 vendor/assets/stylesheets/blocky/neat/grid/_media.scss
blocky-0.0.4 vendor/assets/stylesheets/blocky/neat/grid/_media.scss
blocky-0.0.3 vendor/assets/stylesheets/blocky/neat/grid/_media.scss
blocky-0.0.2 vendor/assets/stylesheets/blocky/neat/grid/_media.scss
blocky-0.0.1 vendor/assets/stylesheets/blocky/neat/grid/_media.scss
refills-0.0.2 source/stylesheets/neat/grid/_media.scss
blogelator-0.2.3 vendor/assets/stylesheets/blogelator/neat/grid/_media.scss
blogelator-0.2.2 vendor/assets/stylesheets/blogelator/grid/_media.scss
blogelator-0.2.2 vendor/assets/stylesheets/blogelator/neat/grid/_media.scss