Skip to content
Snippets Groups Projects
Commit 028c91da authored by Lionel Walter's avatar Lionel Walter Committed by Robert Lange
Browse files

Add classes to allow styling of OR and AND facets (#1341)

parent 479a4d4c
No related merge requests found
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -145,8 +145,6 @@ ul.random.image li img { margin: 0 auto; }
.jstree-node.active .badge,
.jstree-node.active .badge .fa { color: @active-orange; }
.facet .badge a { color: #fff; }
.facet.facetOR { padding-left: 1rem; }
}
.checkboxFilter .facet { padding-left: 1px; }
......
......@@ -145,8 +145,6 @@ ul.random.image li img { margin: 0 auto; }
.jstree-node.active .badge,
.jstree-node.active .badge .fa { color: $active-orange; }
.facet .badge a { color: #fff; }
.facet.facetOR { padding-left: 1rem; }
}
.checkboxFilter .facet { padding-left: 1px; }
......
......@@ -12,6 +12,13 @@
if ($this->facet['isApplied']) {
$classList[] = 'active';
}
if ($this->facet['operator'] == 'OR') {
$classList[] = 'facetOR';
}
if ($this->facet['operator'] == 'AND') {
$classList[] = 'facetAND';
}
$displayText = '-';
if (!empty($this->facet['displayText'])) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment