Suppose there is such an declaration (this is Bootstrap itself):
@media screen and (min-width: 768px) {
.navbar {
padding-top: 0;
}
}
Is it possible to access .navbar inside this media query (it also has an ad outside it) like any other class or mixin? I would like to reuse my ads somewhere else (well, not quite that, but you get the idea :-)), for example:
.left-nav {
.navbar;
}
Is this possible with LESS?
I saw a very similar question , although the difference is that I cannot reorganize it
.navbarwill be outside the media request, since it is in the Bootstrap LESS file. I understand that LESS does not need media queries because they are just another type of selector; but how can you access the ads inside these selectors (I tried some obvious ones but didn't work).
Any help would be appreciated.
source
share