Suppose there's a declaration like this (it's Bootstrap actually):
@media screen and (min-width: 768px) {
.navbar {
padding-top: 0;
}
}
Is it possible to access .navbar inside this media query (it also has a declaration outsides it) as any other class or mixin? I'd like to re-use its declarations somewhere else (well, not exactly this one but you get the idea :-)), e.g.:
.left-nav {
.navbar; // Use the one from the media query here.
}
Is this possible with LESS?
I've seen a very similar question, although the difference here is that I can't refactor
.navbar
to be outside the media query since this is in Bootstrap's LESS file. I understand hat LESS doesn't care about media queries because they are just another type of selector; but how can you access declarations inside these selectors (I tried some obvious ones but neither worked).
Any help would be appreciated.