The task is to make the switch sort by outgoing or descending. I use the sprite file to customize the elements. I can not remove round tiles so that only triangles remain. If I set for a class:
.sort-toggle input[type="radio"] - display:none; I can not see the switch:
.sort-toggle { margin: 0 0 0 50px; } .sort-toggle label { display: none; } .sort-toggle input[type="radio"] { position: relative; cursor: pointer; } .sort-toggle-up:before { content: ""; position: absolute; height: 13px; width: 13px; background: transparent url("../img/sprite.png") no-repeat; background-position: -77px -461px; top: -3px; left: 0; } .sort-toggle-up:checked:before { background-position: -1px -461px; } .sort-toggle-up:hover:before { background-position: -40px -461px; } .sort-toggle-down::before { content: ""; position: absolute; height: 13px; width: 13px; background: transparent url("../img/sprite.png") no-repeat; background-position: -77px -429px; top: 0; left: 0; } .sort-toggle-down:checked:before { background-position: -1px -429px; } .sort-toggle-down:hover:before { background-position: -40px -429px; } <div class="sort-toggle"> <input class="sort-toggle-up" id="sort-up" type="radio" name="radio-sort" checked> <label for="sort-up">Сортировка по возрастанию</label> <input class="sort-toggle-down" id="sort-down" type="radio" name="radio-sort"> <label for="sort-down">Сортировка по убыванию</label> </div> 
input-ам-display:none;- Air