Fixed bug with `@media` bubbling and conditionals. Closes #1124