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

Commit

Permalink
this fixes #401
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Dec 6, 2014
1 parent ec40776 commit dfe8eab
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/js/element-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,7 @@ var startPicker = function(details) {

var pickerStyle = document.createElement('style');
pickerStyle.setAttribute('scoped', '');
pickerStyle.style.setProperty('display', 'none', 'important');
pickerStyle.textContent = [
'#µBlock, #µBlock * {',
'background: transparent;',
Expand All @@ -695,23 +696,25 @@ var startPicker = function(details) {
'margin: 0;',
'max-width: none;',
'min-height: 0;',
'min-width: 0;',
'outline: 0;',
'overflow: visible;',
'padding: 0;',
'text-transform: none;',
'vertical-align: baseline;',
'width: auto;',
'z-index: auto;',
'}',
'#µBlock {',
'position: absolute;',
'top: 0;',
'left: 0;',
'}',
'#µBlock ul, #µBlock li {',
'#µBlock ul, #µBlock li, #µBlock div {',
'display: block;',
'}',
'#µBlock button {',
'border: 1px solid #aaa;',
'border: 1px solid #aaa !important;',
'padding: 6px 8px 4px 8px;',
'box-sizing: border-box;',
'box-shadow: none;',
Expand Down Expand Up @@ -755,14 +758,14 @@ var startPicker = function(details) {
'fill: rgba(255,0,0,0.25);',
'}',
'#µBlock > div {',
'padding: 4px;',
'background-color: rgba(255,255,255,0.9);',
'bottom: 4px;',
'display: none;',
'font: 12px sans-serif;',
'padding: 4px;',
'position: fixed;',
'right: 4px;',
'bottom: 4px;',
'width: 30em;',
'font: 12px sans-serif;',
'background-color: rgba(255,255,255,0.9);',
'z-index: 5999999999;',
'}',
'#µBlock.paused > div {',
Expand Down

0 comments on commit dfe8eab

Please sign in to comment.