Sha256: 5920e9145325abd9b7e99996c8f5ca99006d4f2dbb3de28915db7d3f13f30e90

Contents?: true

Size: 643 Bytes

Versions: 16

Compression:

Stored size: 643 Bytes

Contents

//
// This will surround it's contents with an
// appropriate media query.
//
// @type {iphone,ipad,desktop}
//
@mixin media($type:desktop){
  @if       $type == iphone            { @media (max-width: 767px)                                            { @content } }
  @else if  $type == ipad              { @media (min-width: 768px) and (max-width: 1019px)                    { @content } }
  @else if  $type == desktop           { @media (min-width: 1020px)                                           { @content } }
  @else if  $type == retina            { @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { @content } }
}

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
modular-grid-0.0.15 app/assets/stylesheets/grid/utils/_media.scss
modular-grid-0.0.14 app/assets/stylesheets/grid/utils/_media.scss
modular-grid-0.0.13 app/assets/stylesheets/grid/utils/_media.scss
modular-grid-0.0.12 app/assets/stylesheets/grid/utils/_media.scss
modular-grid-0.0.10 app/assets/stylesheets/grid/utils/_media.scss
modular-grid-0.0.9 app/assets/stylesheets/grid/utils/_media.scss
modular-grid-0.0.8 app/assets/stylesheets/grid/utils/_media.scss
modular-grid-0.0.7 app/assets/stylesheets/grid/utils/_media.scss
modular-grid-0.0.6 app/assets/stylesheets/grid/utils/_media.scss
modular-grid-0.0.5 app/assets/stylesheets/grid/utils/_media.scss
modular-grid-0.0.4 app/assets/stylesheets/grid/utils/_media.scss
modular-grid-0.0.3b app/assets/stylesheets/grid/utils/_media.scss
modular-grid-0.0.3a app/assets/stylesheets/grid/utils/_media.scss
modular-grid-0.0.3 app/assets/stylesheets/grid/utils/_media.scss
modular-grid-0.0.2 app/assets/stylesheets/grid/utils/_media.scss
modular-grid-0.0.1 app/assets/stylesheets/grid/utils/_media.scss