I have a series of accordions on one page (usually 9 but sometimes 10 of them). Each according can have any number of cards.
On the accordion I want to show how many cards are in that accordion. Right now I have a nifty little ‘count’ box with a number in it. On the old platform (JQM) this box was on the right side and the chevron was on the left.
So, my questions are:
- Is there an easy way to display the chevron on the left? I’ve found .no-chevron but I don’t see a .left-chevron
- I have tried adapting my ‘count’ box to display on the left (which I can easily do) but the title overlaps/overwrites the counter so if I go this route, what adjustment do I need to make to get the item-title to scoot to the right?
As an FYI my counter class is:
.item-count {
position: absolute;
font-size: 12.5px;
font-weight: bold;
text-align: center;
border-width: 1px;
border-style: solid;
border-color: white;
padding: .25em .25em;
line-height: 1.6em;
min-height: 1.6em;
min-width: .64em;
color: white;
padding-left: calc(var(--f7-list-chevron-icon-area) + var(--f7-safe-area-right));
}
And the html looks like this:
<li class="accordion-item">
<a href="" class="item-link item-content">
<div class="item-inner">
<span id="jazz_count" class="item-count">0</span>
<div class="item-title">Jazz</div>
</div>
</a>
...