Re: media query definitions

On Fri, Jun 21, 2013 at 7: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?

Yup, this was very recently discussed favorably.  We want to add some
way to make an author-extensible Media Query.

~TJ

Received on Friday, 21 June 2013 21:01:23 UTC