If you are not very familiar with Sass, you might not be aware that Sass enhances media queries (actually the @media
directive) to provide extra interesting features. One of which is called (or rather often referred to as) media merging.
Before explaining to you what media merging is, did you know that the CSS specifications on Media Queries actually allow media queries to be nested? Some browsers like Firefox, Chrome and Opera support it; some other like Safari and Internet Explorer currently do not.
Because the browser support is not ideal, Sass kicks in and merges nested media queries into a single media condition. For instance, consider this code:
Continue reading %Sass Mixin and Media Merging%
by Hugo Giraudel via SitePoint
No comments:
Post a Comment