mirror of
https://github.com/less/less.js.git
synced 2026-02-07 13:35:10 -05:00
Add dppx and dpcm units to parser dimensions
dppx is currently supported by Firefox > 16.
This can be used to target retina setups:
@media (min-resolution: 2dppx) {}
http://www.w3.org/TR/css3-values/#resolution
This commit is contained in:
@@ -144,3 +144,9 @@ body {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min--moz-device-pixel-ratio: 2), (-o-min-device-pixel-ratio: 2/1), (min-resolution: 2dppx), (min-resolution: 128dpcm) {
|
||||
.b {
|
||||
background: red;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user