Re: Media Query Variables

Do you guys have a consensus on the best way to implement this?
>From what I read, the meta approach is out, right?

MQ vars would also be very relevant to the RespImg discussion.

What about a simple way like this:

<style>
 @media { small: (max-width: 20em); large: (min-width: 40em); }
</style>
<link rel="stylesheet" media="screen and (small)" />
<link rel="stylesheet" media="print and (large)" />


It centralizes and tokenizes MQs in the <head> to mix and match them later.


The @media keywords become custom vars like 'monochrome' or 'color'.

Received on Thursday, 14 November 2013 00:12:05 UTC