I have an horizontal list of folders.
I want to have a margin-left between folders(for spacing) but i dont want it to apply on the first item (so there will be no space from screen).
The problem is that 'first-child' applies on hidden elements as well.
how can i apply a class on the first visible item in list without using jQuery ?
<ul id="myList">
<li ng-repeat="folder in viewmodel.folders" id="folder" class="folder"
ng-show="folder.role == '13' || folder.role == '14'" ng-click="bringChildren(folder)" loading-directive>
<div class="block"></div>
<div class="folderIcon {{ folder.nameKey }}"></div>
<div class="folderName">{{ folder.displayName }}</div>
<div class="itemsCounter"></div>
</li>
</ul>
ng-show?