If I define the following nested styles in LESS:
.nav-bar {
.navbar-brand {
background: #000;
}
}
.nav-bar {
.navbar-brand {
background: #fff;
}
}
It results in:
.nav-bar .navbar-brand {
background: #000;
}
.nav-bar .navbar-brand {
background: #fff;
}
I was hoping that these might be detected as duplicates. So, the result would simply be:
.nav-bar .navbar-brand {
background: #fff;
}
.. as the first style would be overwritten. I know that the web browser would treat it as such, whereby the second styles properties would overwrite the first. I'm more concerned about file size though. I was hoping that I could download LESS for Bootstrap, then in a custom LESS file, overwrite styles for that particular project. Is this feature available by the compiler?