W3C home > Mailing lists > Public > www-style@w3.org > June 2013

Re: media query definitions

From: Brian Kardell <bkardell@gmail.com>
Date: Fri, 21 Jun 2013 11:09:52 -0400
Message-ID: <CADC=+jeO+E_YvKzQrSfqVJ4a3ZELhLOGmzfTXx5+Z6ErKg1-ZQ@mail.gmail.com>
To: Behrang Saeedzadeh <behrangsa@gmail.com>
Cc: W3C CSS Mailing List <www-style@w3.org>
This is pretty easy to do with a pre-processor in the interim, it's
simple token replacement.

On Fri, Jun 21, 2013 at 10:58 AM, Behrang Saeedzadeh
<behrangsa@gmail.com> wrote:
> It would be nice, if there was a way to define a media query, and use it in
> multiple @media blocks:
>
> @media-def #my-media only screen and (max-width: 480px), only screen and
> (max-device-width: 480px), etc.;
>
> @media(#my-media) {
>  /* css rules */
> }
>
> The syntax can of course be totally different.
>
> This would eliminate some duplication where there are multiple media query
> blocks in various CSS files that target the same device, etc.
>
> What do you guys think?
>
> Cheers,
> Behrang Saeedzadeh
> http://www.behrang.org



-- 
Brian Kardell :: @briankardell :: hitchjs.com
Received on Friday, 21 June 2013 15:10:20 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:12 UTC