Created
November 25, 2013 09:43
-
-
Save hidoos/7638909 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
<button class="btn"> | |
btn | |
</button> |
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.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
@charset "utf-8"; | |
$res:480px; | |
@mixin media-screen($res:480px){ | |
@media only screen and (max-width:$res){ | |
@content; | |
} | |
} | |
/** | |
* 使用mixin 配合 @content | |
*/ | |
@include media-screen($res){ | |
body{ | |
width:200px; | |
} | |
.btn{ | |
height:200px; | |
} | |
} |
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
@charset "UTF-8"; | |
/** | |
* 使用mixin 配合 @content | |
*/ | |
@media only screen and (max-width: 480px) { | |
body { | |
width: 200px; | |
} | |
.btn { | |
height: 200px; | |
} | |
} |
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
<button class="btn"> | |
btn | |
</button> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment