It would be nice to wrap CSS styles for different resolutions inside some css classes, using less.
I would like to do something like:
footer { width: 100%; } .tablet { footer { width: 768px; } } .desktop { footer { width: 940px; } }
At the end, you should get the following:
footer { width: 100%; } @media screen and (min-width: 768px) { footer { width: 768px; } } @media screen and (min-width: 992px) { footer { width: 940px; } }
.tablet might look something like this:
@media screen and (min-width: 768px) { .tablet { } }
Hope someone has a good idea!
css3 less responsive-design media-queries
AndreZimpel Apr 05 '13 at 15:29 2013-04-05 15:29
source share