Sha256: 38de1e0b04d40e68815ee336c46e0323ca9ef6ecee84d07fbb4397eff7df2229

Contents?: true

Size: 1.2 KB

Versions: 4

Compression:

Stored size: 1.2 KB

Contents

// =============================================================================
//  HIDPI
//
//  HiDPI mixin. Default value set to 1.3 to target Google Nexus 7
//  http://bjango.com/articles/min-device-pixel-ratio/
//
//  Available As:
//    +skeletor-hidpi()
//    +s-hidpi()
//
// =============================================================================



=skeletor-hidpi($ratio: 1.3)
  @media only screen and (-webkit-min-device-pixel-ratio: $ratio),
  only screen and (min--moz-device-pixel-ratio: $ratio),
  only screen and (-o-min-device-pixel-ratio: #{$ratio}/1),
  only screen and (min-resolution: #{round($ratio*96)}dpi),
  only screen and (min-resolution: #{$ratio}dppx)
    @content



// -----------------------------------------------------------------------------
//  Alias for hidpi mixin
// -----------------------------------------------------------------------------
=s-hidpi($ratio: 1.3)
  +skeletor-hidpi($ratio)



// -----------------------------------------------------------------------------
//  If no-conflict set to allow shorter mixin names
// -----------------------------------------------------------------------------
// @if $no-conflict
//   =hidpi($ratio: 1.3)
//     +skeletor-hidpi($ratio)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
skeletor_backbone-0.0.6 app/assets/stylesheets/skeletor/globals/mixins/_hidpi.sass
skeletor_backbone-0.0.5 app/assets/stylesheets/skeletor/globals/mixins/_hidpi.sass
skeletor_backbone-0.0.4 app/assets/stylesheets/skeletor/globals/mixins/_hidpi.sass
skeletor_backbone-0.0.3 app/assets/stylesheets/skeletor/globals/mixins/_hidpi.sass