Make the media query a global variable in core2.s2

So other layouts can access it

For #722