Skip to content

Commit

Permalink
feat(categories): change background color of uncollapsed Category
Browse files Browse the repository at this point in the history
  • Loading branch information
talha131 committed Feb 1, 2020
1 parent a421dcd commit 6cc11b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion static/css/elegant.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion templates/categories.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 6cc11b8

Please sign in to comment.