Sha256: 9f3d06a4653eb32563bda3b6ee751958013c11a39700ddb76d70eaafba04ee07

Contents?: true

Size: 967 Bytes

Versions: 2

Compression:

Stored size: 967 Bytes

Contents

// https://gist.github.com/1215856#file_7_media_queries.sass

$respond-to-handhelds-max: 479px !default

$respond-to-wide-handhelds-min: ($respond-to-handhelds-max + 1px) !default
$respond-to-wide-handhelds-max: 767px !default

$respond-to-tablets-min: ($respond-to-wide-handhelds-max + 1) !default
$respond-to-tablets-max: 959px !default

$respond-to-desktops-min: ($respond-to-tablets-max + 1) !default

=respond-to($device)
  @if $device == handhelds
    @media only screen and (max-width: $respond-to-handhelds-max)
      @content
  @else if $device == wide-handhelds
    @media only screen and (min-width: $respond-to-wide-handhelds-min) and (max-width: $respond-to-wide-handhelds-max)
      @content
  @else if $device == tablets
    @media only screen and (min-width: $respond-to-tablets-min) and (max-width: $respond-to-tablets-max)
      @content
  @else if $device == desktops
    @media only screen and (min-width: $respond-to-desktops-min)
      @content

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
compass-respond-0.0.2 lib/stylesheets/_respond-to.sass
compass-respond-0.0.1 lib/stylesheets/_respond-to.sass