1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-14 23:12:28 +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; resize: none;
width: 100%; width: 100%;
} }
section > div:first-child > textarea + div { #resultsetCount {
background-color: #aaa; background-color: #aaa;
bottom: 0; bottom: 0;
color: white; color: white;
@ -86,7 +86,7 @@ section > div:first-child > textarea + div {
position: absolute; position: absolute;
right: 0; right: 0;
} }
section.invalidFilter > div:first-child > textarea + div { section.invalidFilter #resultsetCount {
background-color: red; background-color: red;
} }
section > div:first-child + div { section > div:first-child + div {
@ -183,7 +183,7 @@ body.paused > aside:hover {
<section> <section>
<div> <div>
<textarea lang="en" dir="ltr" spellcheck="false"></textarea> <textarea lang="en" dir="ltr" spellcheck="false"></textarea>
<div></div> <div id="resultsetCount"></div>
</div> </div>
<div><!-- <div><!--
--><button id="preview" type="button">{{preview}}</button><!-- --><button id="preview" type="button">{{preview}}</button><!--

View File

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