From e268dff8d724f8b9ea7d4c7eefed73bc64c203f2 Mon Sep 17 00:00:00 2001 From: gorhill Date: Sat, 4 Oct 2014 14:17:17 -0400 Subject: [PATCH] this fixes #266 --- js/element-picker.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/js/element-picker.js b/js/element-picker.js index fd551ce9e..edb18a6cf 100644 --- a/js/element-picker.js +++ b/js/element-picker.js @@ -836,6 +836,7 @@ var startPicker = function() { 'font: 12px sans-serif;', 'background-color: rgba(255,255,255,0.9);', 'z-index: 5999999999;', + 'direction: ', chrome.i18n.getMessage('@@bidi_dir'), ';', '}', '.µBlock.paused > div {', 'display: initial;', @@ -863,6 +864,7 @@ var startPicker = function() { 'right: 2px;', 'bottom: 2px;', 'opacity: 0.2;', + 'direction: ltr;', '}', '.µBlock > div > div > div:hover {', 'opacity: 1;', @@ -878,6 +880,8 @@ var startPicker = function() { 'text-align: left;', 'overflow: hidden;', '}', + '.µBlock > div > ul > li {', + '}', '.µBlock > div > ul > li:not(:first-child) {', 'margin-top: 0.5em;', '}', @@ -885,7 +889,6 @@ var startPicker = function() { 'font-weight: bold;', '}', '.µBlock > div > ul > li > span:nth-of-type(2) {', - 'margin: 0 0 0 1em;', 'font-size: smaller;', 'color: gray;', '}', @@ -900,6 +903,7 @@ var startPicker = function() { 'font: 11px monospace;', 'white-space: nowrap;', 'cursor: pointer;', + 'direction: ltr;', '}', '.µBlock > div > ul > li > ul > li:hover {', 'background-color: rgba(255,255,255,1.0);', @@ -931,7 +935,7 @@ var startPicker = function() { divDialog = document.createElement('div'); divDialog.innerHTML = [ '
', - '', + '', '
', '', '', @@ -940,7 +944,7 @@ var startPicker = function() { '
', '', '' ].join(''); @@ -973,7 +977,6 @@ messaging.ask({ what: 'elementPickerArguments' }, function(details) { 'ul > li#netFilters > span:nth-of-type(1)': 'netFilters', 'ul > li#cosmeticFilters > span:nth-of-type(1)': 'cosmeticFilters', 'ul > li#cosmeticFilters > span:nth-of-type(2)': 'cosmeticFiltersHint' - }; for ( var k in i18nMap ) { if ( i18nMap.hasOwnProperty(k) === false ) {