1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-01 08:39:37 +02:00
This commit is contained in:
gorhill 2017-02-27 16:29:36 -05:00
parent 2a2cbdec1f
commit 798e21de36
2 changed files with 4 additions and 4 deletions

View File

@ -78,7 +78,7 @@ section > div:first-child > textarea {
resize: none;
width: 100%;
}
section > div:first-child > textarea + div {
#resultsetCount {
background-color: #aaa;
bottom: 0;
color: white;
@ -86,7 +86,7 @@ section > div:first-child > textarea + div {
position: absolute;
right: 0;
}
section.invalidFilter > div:first-child > textarea + div {
section.invalidFilter #resultsetCount {
background-color: red;
}
section > div:first-child + div {
@ -183,7 +183,7 @@ body.paused > aside:hover {
<section>
<div>
<textarea lang="en" dir="ltr" spellcheck="false"></textarea>
<div></div>
<div id="resultsetCount"></div>
</div>
<div><!--
--><button id="preview" type="button">{{preview}}</button><!--

View File

@ -999,7 +999,7 @@ var onCandidateChanged = (function() {
elems.push(items[i].elem);
}
}
pickerBody.querySelector('body section textarea + div').textContent = valid ?
pickerBody.querySelector('#resultsetCount').textContent = valid ?
items.length.toLocaleString() :
'E';
dialog.querySelector('section').classList.toggle('invalidFilter', !valid);