Skip to content
Snippets Groups Projects
Commit 32e1224f authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Lightbox facet checkbox alignment. RTL fixes.

parent 6eb2803c
No related merge requests found
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -9,7 +9,11 @@
line-height: 1.5rem;
.badge,
.status { float: right; }
.status {
float: right;
body.rtl & { float: left; }
}
.badge {
max-height: 19px;
line-height: 1.1rem;
......@@ -112,3 +116,10 @@
}
.full-facet-list { margin-top: 1rem; }
.full-facet-list .active .fa {
float: right;
margin-top: .25rem;
margin-right: 0.5rem;
margin-left: 0.5rem;
}
body.rtl .full-facet-list .active .fa { float: left; }
......@@ -21,10 +21,10 @@
<div class="lightbox-scroll full-facets">
<? foreach ($this->sortOptions as $key=>$sort): ?>
<? $active = $this->sort == $key; ?>
<div class="full-facet-list list-group<? if(!$active): ?> hidden<? endif; ?>" id="facet-list-<?=$this->escapeHtmlAttr($key) ?>">
<div class="full-facet-list facet-group<? if(!$active): ?> hidden<? endif; ?>" id="facet-list-<?=$this->escapeHtmlAttr($key) ?>">
<? if ($active): ?>
<? if ($this->page > 1): ?>
<a href="<?=$urlBase . '&amp;facetpage=' . ($this->page-1) . '&amp;facetsort=' . $this->sort ?>" class="list-group-item js-facet-prev-page" data-page="<?=($this->page+1) ?>" data-sort="<?=$this->sort ?>" data-limit="<?=count($this->data) ?>" data-lightbox-ignore><?=$this->translate('prev') ?> ...</a>
<a href="<?=$urlBase . '&amp;facetpage=' . ($this->page-1) . '&amp;facetsort=' . $this->sort ?>" class="facet js-facet-prev-page" data-page="<?=($this->page+1) ?>" data-sort="<?=$this->sort ?>" data-limit="<?=count($this->data) ?>" data-lightbox-ignore><?=$this->translate('prev') ?> ...</a>
<? endif; ?>
<? foreach ($this->data as $item): ?>
<? $toggleUrl = $item['isApplied']
......@@ -33,10 +33,10 @@
?>
<? $subLinks = $this->exclude && !$item['isApplied']; ?>
<? if ($subLinks): ?>
<li class="list-group-item js-facet-item">
<li class="facet js-facet-item">
<a href="<?=$toggleUrl ?>" data-lightbox-ignore data-title="<?=$this->escapeHtmlAttr($item['displayText']) ?>" data-count="<?=$item['count'] ?>"<? if($item['isApplied']): ?> title="<?=$this->transEsc('applied_filter') ?>"<? endif;?>>
<? else: ?>
<a href="<?=$toggleUrl ?>" data-lightbox-ignore class="js-facet-item list-group-item<? if($item['isApplied']): ?> active<?endif;?>" data-title="<?=$this->escapeHtmlAttr($item['displayText']) ?>" data-count="<?=$item['count'] ?>"<? if($item['isApplied']): ?> title="<?=$this->transEsc('applied_filter') ?>"<? endif;?>>
<a href="<?=$toggleUrl ?>" data-lightbox-ignore class="facet js-facet-item<? if($item['isApplied']): ?> active<?endif;?>" data-title="<?=$this->escapeHtmlAttr($item['displayText']) ?>" data-count="<?=$item['count'] ?>"<? if($item['isApplied']): ?> title="<?=$this->transEsc('applied_filter') ?>"<? endif;?>>
<? endif; ?>
<? if (!empty($item['displayText'])): ?>
<?=$this->escapeHtml($item['displayText']) ?>
......@@ -50,9 +50,7 @@
<? if ($item['operator'] == 'OR'): ?>
<i class="fa fa-check-square-o" aria-hidden="true"></i>
<? else: ?>
<span class="pull-right flip">
<i class="fa fa-check" aria-hidden="true"></i>
</span>
<i class="fa fa-check" aria-hidden="true"></i>
<? endif; ?>
<? else: ?>
<span class="badge">
......@@ -66,7 +64,7 @@
<? endforeach; ?>
<? endif; ?>
<? if ($this->anotherPage): ?>
<a href="<?=$urlBase . '&amp;facetpage=' . ($this->page+1) . '&amp;facetsort=' . urlencode($key) ?>" class="list-group-item js-facet-next-page" data-page="<?=($this->page+1) ?>" data-sort="<?=$this->escapeHtmlAttr($key) ?>" data-lightbox-ignore><?=$this->translate('more') ?> ...</a>
<a href="<?=$urlBase . '&amp;facetpage=' . ($this->page+1) . '&amp;facetsort=' . urlencode($key) ?>" class="facet js-facet-next-page" data-page="<?=($this->page+1) ?>" data-sort="<?=$this->escapeHtmlAttr($key) ?>" data-lightbox-ignore><?=$this->translate('more') ?> ...</a>
<? endif; ?>
</div>
<? endforeach; ?>
......
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