May 10, 2013 04:55 am GMT
Original Link: http://css-tricks.com/naming-media-queries/
Naming Media Queries
It would be pretty cool if we could do this someday in CSS. The best idea for it that I've come across is to define it in a <meta>
tag in the <head>
. That way (perhaps) CSS could use it and JS could use it. Like window.matchMedia(nameOfMyMediaQuery)
or @media (nameOfMyMediaQuery) { }
. But since we can't, Sass has our back. Now the question is, how do we name them?
In Sass, the @mixin would look something like this:…
Naming Media Queries is a post from CSS-Tricks
Original Link: http://css-tricks.com/naming-media-queries/
Share this article:
Tweet
View Full Article