I would like to create a css that when a certain class was in the size xs would have a font-color red and the other sizes this color would change to green. But without having to repeat the text. type:
<div class="hidden-xs">
<div class="Vermelho">
Teste
</div>
</div>
<div class="col-xs-12 hidden-sm hidden-md hidden-lg hidden-xl">
<div class="verde">
Teste
</div>
</div>
I wanted a class would have two color alternatives depending on the size ...
<div class="col-xs-12">
<div class="Cor">
Teste
</div>
</div>
Is it possible to do such a feat? Can be in CSS or JS. Thanks in advance for the help