You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
463 B
11 lines
463 B
8 years ago
|
// HiDPI mixin. Default value set to 1.3 to target Google Nexus 7 (http://bjango.com/articles/min-device-pixel-ratio/)
|
||
|
@mixin 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 * 96dpi)),
|
||
|
only screen and (min-resolution: $ratio * 1dppx) {
|
||
|
@content;
|
||
|
}
|
||
|
}
|