applied changes from #656 to dev branch
Merge pull request #780 from ractivejs/mq

media queries