Last active
November 14, 2015 22:10
-
-
Save lozandier/0ae9b3247b3b7d7cc534 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$mqs: ( | |
'500px': ('font-size': 12px, 'color': #000), | |
'1000px': ('font-size': 18px, 'color': #ccc), | |
); | |
@each $key, $value in $mqs { | |
@media ( max-width: $key) { | |
@each $prop, $val in $value { | |
#{$prop}: $val | |
} | |
} | |
} | |
// Desired output: | |
// | |
// @media (max-width: 500px) { | |
// body { | |
// font-size: 12px; | |
// color: #000; | |
// } | |
// } | |
// @media (max-width: 1000px) { | |
// body { | |
// font-size: 18px; | |
// color: #ccc; | |
// } | |
// } |
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
@media (max-width: 500px) { | |
font-size: 12px; | |
color: #000; | |
} | |
@media (max-width: 1000px) { | |
font-size: 18px; | |
color: #ccc; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment