fixup db621b86: add .active class only to the block title

This commit is contained in:
tophf 2017-12-06 04:21:30 +03:00
parent 31941110e8
commit a712d92b52
2 changed files with 3 additions and 3 deletions

View File

@ -333,7 +333,7 @@ function showFiltersStats() {
debounce(showFiltersStats, 100); debounce(showFiltersStats, 100);
return; return;
} }
$('#filters').classList.toggle('active', filtersSelector.hide !== ''); $('#filters summary').classList.toggle('active', filtersSelector.hide !== '');
const numTotal = BG.cachedStyles.list.length; const numTotal = BG.cachedStyles.list.length;
const numHidden = installed.getElementsByClassName('entry hidden').length; const numHidden = installed.getElementsByClassName('entry hidden').length;
const numShown = Math.min(numTotal - numHidden, installed.children.length); const numShown = Math.min(numTotal - numHidden, installed.children.length);

View File

@ -811,8 +811,8 @@ input[id^="manage.newUI"] {
margin-top: 4px; margin-top: 4px;
} }
#filters:not(.active) #reset-filters, #filters summary:not(.active) #reset-filters,
#filters:not(.active) #filters-stats { #filters summary:not(.active) #filters-stats {
display: none; display: none;
} }