Just ran a decent amount of css through csslint, mainly to check for errors. 80% of the warnings I get are from defining the same header element more than once. So I was wondering what the best way to clean up these kind of styles would be...
h4 {
color: red;
}
.archive h4 {
color: green;
}
Keeping in mind I'm already using h1 - h6 styles elsewhere in the design.
Would it be better to use classes for this and then inherit the styles with mix-ins (i'm using stylus)?
h4 {
color: red;
}
.archive-header {
color: green;
}
While i'm at it, why does csslint warn against this? Are there performance hits?