All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rules.scsslint.PseudoElement.html Maven / Gradle / Ivy

Go to download

Consume reports generated by scsslint for code quality. Also consume reports for code duplication (either simian or cpd). The information generated by reports are added in Sonar

There is a newer version: 2.1.0
Show newest version

Details

Pseudo-elements, like ::before, and ::first-letter, should be declared with two colons. Pseudo-classes, like :hover and :first-child, should be declared with one colon.

If you're sure the pseudo-element in question is valid, submit a request to add it to the default whitelist.

Bad: wrong colons

p:before {
content: '>'
}

p::hover {
color: red;
}

Good: correct colons

p::before {
content: '>'
}

p:hover {
color: red;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy