UX: make category topic counts clickable on mobile (#10541)

This commit is contained in:
Kane York 2020-08-27 01:50:18 -07:00 committed by GitHub
parent a4ec4c06e3
commit a51db9a7bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 7 deletions

View File

@ -39,21 +39,27 @@
{{/if}}
</tbody>
</table>
<footer class="clearfix">
<footer class="clearfix category-topics-count">
<figure title={{i18n "all_time_desc"}}>
{{number category.topics_all_time}}
<figcaption>{{i18n "all_time"}}</figcaption>
<a href={{category.url}}>
{{number category.topics_all_time}}
<figcaption>{{i18n "all_time"}}</figcaption>
</a>
</figure>
{{#if category.pickMonth}}
<figure title={{i18n "month_desc"}}>
{{number category.topics_month}}
<figcaption>/ {{i18n "month"}}</figcaption>
<a href={{category.url}}>
{{number category.topics_month}}
<figcaption>/ {{i18n "month"}}</figcaption>
</a>
</figure>
{{/if}}
{{#if category.pickWeek}}
<figure title={{i18n "week_desc"}}>
{{number category.topics_week}}
<figcaption>/ {{i18n "week"}}</figcaption>
<a href={{category.url}}>
{{number category.topics_week}}
<figcaption>/ {{i18n "week"}}</figcaption>
</a>
</figure>
{{/if}}
</footer>

View File

@ -409,6 +409,10 @@ tr.category-topic-link {
}
}
.category-topics-count a {
color: var(--primary);
}
.topic-list-bottom {
margin: 20px 0 0 0;
}