I really enjoyed finding out that you can create a media query variable that you can easily use, and makes your code more readable.
@tablet: ~"(min-width: 768px) and (max-width: 980px)"; @media @tablet { ... }
I want to know if it is possible to group a media query using a selector. It seems to work the way I implemented it, but I thought I'd ask to see if it was possible.
@tablet: ~"(min-width: 768px) and (max-width: 980px)"; body { aside { ... } &.homepage, @media @tablet { aside { ... } } }
I understand that media queries are different from serial selectors, because you have to define your selectors inside a media query, but is there any way of LESS voodoo to perform such a grouping?
source share