LESS: Can you group a CSS selector with a media query?
问题 I really enjoyed finding out you could create a media query variable that you can easily reuse and makes your code much more readable. @tablet: ~"(min-width: 768px) and (max-width: 980px)"; @media @tablet { ... } I want to know if it's possible to group a media query with a selector. It doesn't appear to work the way I've implemented it, but I thought I'd ask to see if it's even probable. @tablet: ~"(min-width: 768px) and (max-width: 980px)"; body { aside { ... } &.homepage, @media @tablet {