I do not understand what you mean by "semantics", your code is minimal and it shows something simple, the only modification I would make is that if .acaoBaixar
and .acaoView
has the same CSS effect, then .file:hover .acaoBaixar
and .file:hover .acaoView
must also have, ie you do not have to create two rules like this:
.file:hover .acaoBaixar {
display: block;
}
.file:hover .acaoView {
display: block;
}
Just make one:
.file:hover .acaoBaixar, .file:hover .acaoView {
display: block;
}
So if you need to change something you will only change in one place.
Another thing to use in one place:
.subClasse
And this in another:
.classe .subClasse
You may have problems with the rule that "prefers", try to keep the same rule, unless .subClasse
(in the example) is used outside .classe
, then the end would look like this:
.file .acaoBaixar, .file .acaoView {
display: none;
//...Resto do CSS
}
.file:hover .acaoBaixar, .file:hover .acaoView {
display: block;
}
Also try to leave all rules in the main class and not in hover when using only display: block;
in hover. It does not make much difference, it's more for the sake of organization.