mirror of https://github.com/gorhill/uBlock.git
Safari: fix tooltips for dynamic filtering
This commit is contained in:
parent
25cf80838b
commit
326ed213b0
|
@ -36,7 +36,7 @@ self.vAPI = self.vAPI || {};
|
||||||
var setScriptDirection = function(language) {
|
var setScriptDirection = function(language) {
|
||||||
document.body.setAttribute(
|
document.body.setAttribute(
|
||||||
'dir',
|
'dir',
|
||||||
~['ar', 'he', 'fa', 'ps', 'ur'].indexOf(language) ? 'rtl' : 'ltr'
|
['ar', 'he', 'fa', 'ps', 'ur'].indexOf(language) !== -1 ? 'rtl' : 'ltr'
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -78,11 +78,11 @@ vAPI.getURL = function(path) {
|
||||||
// first language is the default
|
// first language is the default
|
||||||
vAPI.i18nData = [
|
vAPI.i18nData = [
|
||||||
'en', 'ar', 'cs', 'da', 'de', 'el', 'es', 'et', 'fi', 'fil', 'fr', 'he',
|
'en', 'ar', 'cs', 'da', 'de', 'el', 'es', 'et', 'fi', 'fil', 'fr', 'he',
|
||||||
'hi', 'hr', 'hu', 'id', 'it', 'ja', 'mr', 'nb', 'nl', 'pl', 'pt_BR',
|
'hi', 'hr', 'hu', 'id', 'it', 'ja', 'mr', 'nb', 'nl', 'pl', 'pt-BR',
|
||||||
'pt_PT', 'ro', 'ru', 'sv', 'tr', 'uk', 'vi', 'zh_CN'
|
'pt-PT', 'ro', 'ru', 'sv', 'tr', 'uk', 'vi', 'zh-CN'
|
||||||
];
|
];
|
||||||
|
|
||||||
vAPI.i18n = navigator.language.replace('-', '_');
|
vAPI.i18n = navigator.language;
|
||||||
|
|
||||||
if (vAPI.i18nData.indexOf(vAPI.i18n) === -1) {
|
if (vAPI.i18nData.indexOf(vAPI.i18n) === -1) {
|
||||||
vAPI.i18n = vAPI.i18n.slice(0, 2);
|
vAPI.i18n = vAPI.i18n.slice(0, 2);
|
||||||
|
|
|
@ -84,14 +84,14 @@ p {
|
||||||
background-color: #fffff4;
|
background-color: #fffff4;
|
||||||
border: 1px solid #888;
|
border: 1px solid #888;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
bottom: 20vh;
|
bottom: 20%;
|
||||||
box-shadow: 1px 1px 2px 0 rgba(0,0,0,0.8);
|
box-shadow: 1px 1px 2px 0 rgba(0,0,0,0.8);
|
||||||
display: none;
|
display: none;
|
||||||
font-size: small;
|
font-size: small;
|
||||||
left: 8vw;
|
left: 8%;
|
||||||
padding: 0.25em;
|
padding: 0.25em;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
right: 8vw;
|
right: 8%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.dynamicFiltering div:not(.blocked):hover > .tip:nth-of-type(1) {
|
.dynamicFiltering div:not(.blocked):hover > .tip:nth-of-type(1) {
|
||||||
|
|
Loading…
Reference in New Issue