
rules.scsslint.PseudoElement.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sonar-web-frontend-scss Show documentation
Show all versions of sonar-web-frontend-scss Show documentation
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
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