Add support for mediaqueries.

This is pretty straightforward. Just recursively perform the task when you come across a media query.