There is approximately the following design:
<row class="tripleRow inverse"> <div class="container collomn-fix"> <div class="col-sm collomn-fix"> <div class="block-tovar"> Наполение </div> </div> <div class="col-sm collomn-fix"> <div class="block-tovar"> Наполение </div> </div> <div class="col-sm-12 collomn-fix"> <div class="block-tovar"> Наполение </div> </div> </div> </row> I want to paint the background alternately, using the following:
.block-tovar:nth-of-type(even) { background-color: @BGColorOne; } But alas, nothing happens. I do through Brackets, he does not even want to highlight. Without a pseudo-class, everything is fine, but it does not see with it. I tried to write just row.tripleRow .block-tovar so he also does not see. What is the problem?