mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Remove now pointless use of important in CSS styles
Now that the element picker user interface is isolated frompage content world, there is no need to use the `important` modifier for the element picker's own CSS styles.
This commit is contained in:
parent
05893a6c16
commit
da7ff2b382
1 changed files with 3 additions and 3 deletions
|
|
@ -509,8 +509,8 @@ const onStartMoving = (( ) => {
|
|||
timer = undefined;
|
||||
const r1 = Math.min(Math.max(r0 - mx1 + mx0, 4), rMax);
|
||||
const b1 = Math.min(Math.max(b0 - my1 + my0, 4), bMax);
|
||||
dialog.style.setProperty('right', `${r1}px`, 'important');
|
||||
dialog.style.setProperty('bottom', `${b1}px`, 'important');
|
||||
dialog.style.setProperty('right', `${r1}px`);
|
||||
dialog.style.setProperty('bottom', `${b1}px`);
|
||||
};
|
||||
|
||||
const moveAsync = ev => {
|
||||
|
|
@ -634,7 +634,7 @@ const populateCandidates = function(candidates, selector) {
|
|||
if ( candidates.length !== 0 ) {
|
||||
root.style.removeProperty('display');
|
||||
} else {
|
||||
root.style.setProperty('display', 'none', 'important');
|
||||
root.style.setProperty('display', 'none');
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue