Last active
August 29, 2015 14:06
-
-
Save benib/16ff7c944ef367218bb1 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.4) | |
// Compass (v1.0.1) | |
// ---- | |
// | |
// use this together with modernizr feature detection | |
// | |
@mixin supports-feature($feature) { | |
.#{$feature} & { | |
@content; | |
} | |
} | |
@mixin not-supports-feature($feature) { | |
.no-#{$feature} & { | |
@content; | |
} | |
} | |
div { | |
@include supports-feature('touch') { | |
width: 50px; | |
} | |
@include not-supports-feature('touch') { | |
width: 30px; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.touch div { | |
width: 50px; | |
} | |
.no-touch div { | |
width: 30px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment