1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-14 23:12:28 +02: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:
Raymond Hill 2020-09-12 11:36:30 -04:00
parent 05893a6c16
commit da7ff2b382
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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');
}
};