I'm using Susy's gallery tool to display elements in a grid format. Angular is hiding or showing those grid elements on the fly, depending on user selections. When Angular hides an element in the grid, it attaches a class of ng-hide
to it. This in turn sets its CSS to display:none !important
.
The issue is that Susy is calculating the position of each element and not taking into account the items set to display:none
- it is leaving gaps in the grid when those elements are hidden.
Is it possible to get Susy to ignore the hidden elements when laying them out?
I've tried using :not()
CSS selector, without success - there's still gaps in the layout:
.results__result:not(.ng-hide) {
@include gallery(3 of 12);
}