Currently, I am facing more of a best practice issue rather than a coding one. I am in the process of creating a custom bootstrap theme inspired by https://github.com/HackerThemes/theme-kit. Although I have a functional theme that I am satisfied with, I am encountering a situation where I am overriding certain styles from the original Bootstrap theme. Despite the fact that these overrides are also present in the minified CSS, such as...
.btn-danger:hover {
color: #fff;
background-color: #ae130b;
border-color: #a2120a;
}
...my code includes an additional definition...
.btn-danger:hover {
border-color: #0000;
}
Both versions of these styles end up in the final stylesheet, with the latter one taking precedence. This approach works visually, but it results in redundant code. Is there a way, possibly through a Gulp postprocessor, to remove these duplicates and combine them? Alternatively, would it be more advisable to fork the Bootstrap repository and directly adjust the original SCSS files?