Created
September 10, 2014 19:45
-
-
Save nathancarnes/82e771154bd0b43ddf28 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
<div></div> |
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.3) | |
// Compass (v1.0.1) | |
// ---- | |
@mixin max-width($breakpoint) { | |
@media only screen and (max-width: $breakpoint) { @content; } | |
} | |
@mixin min-width($breakpoint) { | |
@media only screen and (min-width: $breakpoint) { @content; } | |
} | |
div{ | |
height: 100px; | |
width: 100px; | |
background: blue; | |
@include max-width(800px){ | |
background: green; | |
} | |
@include max-width(500px){ | |
background: red; | |
} | |
} |
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
div { | |
height: 100px; | |
width: 100px; | |
background: blue; | |
} | |
@media only screen and (max-width: 800px) { | |
div { | |
background: green; | |
} | |
} | |
@media only screen and (max-width: 500px) { | |
div { | |
background: red; | |
} | |
} |
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
<div></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment