Is there a method to achieve the desired result in Compass/Sass?
$padding: 3em
div {
padding: $padding;
}
@media screen and (max-width: 780px) {
$padding: 2em;
}
/* Result:
div {
padding: 3em;
}
@media screen and (max-width: 780px) {
div {
padding: 2em;
}
}
*/
Can Sass automatically compile properties with variables as values within media queries when those variables are changed?