I wish to change some LESS variables (for maintaining high-res image pathways) if certain media query conditionals are met throughout my stylesheet, but I can't seem to get it to work.
// Default
@logo: 'logo.png';
@sprite: 'sprite.png';
// High resolution displays
@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and ( min--moz-device-pixel-ratio: 2),
only screen and ( -o-min-device-pixel-ratio: 2/1),
only screen and ( min-device-pixel-ratio: 2),
only screen and ( min-resolution: 192dpi),
only screen and ( min-resolution: 2dppx) {
@logo: 'logo@2x.png';
@sprite: 'sprite@2x.png';
}
Perhaps there's an easier solution to this?