cv-website

Personal website and CV
git clone https://git.in0rdr.ch/cv-website.git
Log | Files | Refs | Pull requests |Archive | README | LICENSE

_hidpi-media-query.scss (463B)


      1 // HiDPI mixin. Default value set to 1.3 to target Google Nexus 7 (http://bjango.com/articles/min-device-pixel-ratio/)
      2 @mixin hidpi($ratio: 1.3) {
      3   @media only screen and (-webkit-min-device-pixel-ratio: $ratio),
      4   only screen and (min--moz-device-pixel-ratio: $ratio),
      5   only screen and (-o-min-device-pixel-ratio: #{$ratio}/1),
      6   only screen and (min-resolution: round($ratio * 96dpi)),
      7   only screen and (min-resolution: $ratio * 1dppx) {
      8     @content;
      9   }
     10 }