Skip to content
Permalink
Browse files
feat(categories): change background color of uncollapsed Category
  • Loading branch information
talha131 committed Feb 1, 2020
1 parent a421dcd commit 6cc11b8efe8a3c97ccfeddc244a5b84465fff1fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
@@ -261,7 +261,8 @@ a.category-link {
a.category-link:hover {
text-decoration: none;
}
a.category-title-inside-accordion:hover {
a.category-title-inside-accordion:hover,
a:not(.collapsed).accordion-toggle.category-title-inside-accordion {
background-color: #08c;
border-radius: var(--borderRadius);
color: #fff;
@@ -44,7 +44,7 @@ <h1><a href="{{ SITEURL }}/{{ CATEGORIES_URL }}">All Categories</a></h1>
{% for category, articles in categories %}
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle category-title-inside-accordion" data-toggle="collapse" data-parent="#accordion2" href="#{{ category.slug }}-ref">
<a class="accordion-toggle category-title-inside-accordion collapsed" data-toggle="collapse" data-parent="#accordion2" href="#{{ category.slug }}-ref">
{% set num = articles|count %}
{{ category }}<span>{{ num }}</span>
</a>

0 comments on commit 6cc11b8

Please sign in to comment.