Created
November 18, 2015 03:13
-
-
Save dviedma/acf782c035226c69a725 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
/* way 1: media query inside of the selector */ | |
.error { | |
color: red; | |
@media screen and (max-width: 320px) { | |
color: blue; | |
} | |
} | |
/* way 2: selector inside of the media query */ | |
.error { | |
color: red; | |
} | |
@media screen and (max-width: 320px) { | |
.error { | |
color: blue; | |
} | |
} | |
.error-important { | |
@extend .error; | |
font-weight: bold; | |
} | |
This file contains hidden or 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
/* way 1: media query inside of the selector */ | |
.error, .error-important { | |
color: red; | |
} | |
@media screen and (max-width: 320px) { | |
.error, .error-important { | |
color: blue; | |
} | |
} | |
/* way 2: selector inside of the media query */ | |
.error, .error-important { | |
color: red; | |
} | |
@media screen and (max-width: 320px) { | |
.error, .error-important { | |
color: blue; | |
} | |
} | |
.error-important { | |
font-weight: bold; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment