Skip to content
This repository was archived by the owner on Sep 9, 2022. It is now read-only.

Commit dfe8eab

Browse files
committed
this fixes #401
1 parent ec40776 commit dfe8eab

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/js/element-picker.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,7 @@ var startPicker = function(details) {
679679

680680
var pickerStyle = document.createElement('style');
681681
pickerStyle.setAttribute('scoped', '');
682+
pickerStyle.style.setProperty('display', 'none', 'important');
682683
pickerStyle.textContent = [
683684
'#µBlock, #µBlock * {',
684685
'background: transparent;',
@@ -695,23 +696,25 @@ var startPicker = function(details) {
695696
'margin: 0;',
696697
'max-width: none;',
697698
'min-height: 0;',
699+
'min-width: 0;',
698700
'outline: 0;',
699701
'overflow: visible;',
700702
'padding: 0;',
701703
'text-transform: none;',
702704
'vertical-align: baseline;',
705+
'width: auto;',
703706
'z-index: auto;',
704707
'}',
705708
'#µBlock {',
706709
'position: absolute;',
707710
'top: 0;',
708711
'left: 0;',
709712
'}',
710-
'#µBlock ul, #µBlock li {',
713+
'#µBlock ul, #µBlock li, #µBlock div {',
711714
'display: block;',
712715
'}',
713716
'#µBlock button {',
714-
'border: 1px solid #aaa;',
717+
'border: 1px solid #aaa !important;',
715718
'padding: 6px 8px 4px 8px;',
716719
'box-sizing: border-box;',
717720
'box-shadow: none;',
@@ -755,14 +758,14 @@ var startPicker = function(details) {
755758
'fill: rgba(255,0,0,0.25);',
756759
'}',
757760
'#µBlock > div {',
758-
'padding: 4px;',
761+
'background-color: rgba(255,255,255,0.9);',
762+
'bottom: 4px;',
759763
'display: none;',
764+
'font: 12px sans-serif;',
765+
'padding: 4px;',
760766
'position: fixed;',
761767
'right: 4px;',
762-
'bottom: 4px;',
763768
'width: 30em;',
764-
'font: 12px sans-serif;',
765-
'background-color: rgba(255,255,255,0.9);',
766769
'z-index: 5999999999;',
767770
'}',
768771
'#µBlock.paused > div {',

0 commit comments

Comments
 (0)