mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-01 16:33:06 +01:00
This commit is contained in:
parent
69ab00044a
commit
f6b62665fa
@ -69,6 +69,7 @@ body, #panes {
|
|||||||
}
|
}
|
||||||
body.portrait #panes > div {
|
body.portrait #panes > div {
|
||||||
display: block;
|
display: block;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
body[dir="ltr"] #panes > div {
|
body[dir="ltr"] #panes > div {
|
||||||
direction: ltr;
|
direction: ltr;
|
||||||
@ -320,6 +321,10 @@ body.dirty #refresh:hover {
|
|||||||
font-size: 11.5px;
|
font-size: 11.5px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
body.portrait #firewallContainer > div > span:nth-of-type(3),
|
||||||
|
body.portrait #firewallContainer > div > span:nth-of-type(4) {
|
||||||
|
font-size: 9px;
|
||||||
|
}
|
||||||
#firewallContainer > div > span:nth-of-type(4) {
|
#firewallContainer > div > span:nth-of-type(4) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@ -461,8 +466,10 @@ body.dirty #refresh:hover {
|
|||||||
border: 0;
|
border: 0;
|
||||||
color: #888;
|
color: #888;
|
||||||
display: none;
|
display: none;
|
||||||
|
left: 4px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
position: fixed;
|
position: absolute;
|
||||||
|
top: 4px;
|
||||||
}
|
}
|
||||||
#rulesetTools > span {
|
#rulesetTools > span {
|
||||||
background-color: #ffe;
|
background-color: #ffe;
|
||||||
|
@ -45,13 +45,6 @@ document.querySelector('#panes > div:nth-of-type(2)').style.setProperty(
|
|||||||
document.querySelector('#panes > div:nth-of-type(1)').offsetHeight + 'px'
|
document.querySelector('#panes > div:nth-of-type(1)').offsetHeight + 'px'
|
||||||
);
|
);
|
||||||
|
|
||||||
// The padlock must be manually positioned:
|
|
||||||
// - It's vertical position depends on the height on the title bar.
|
|
||||||
document.getElementById('rulesetTools').style.setProperty(
|
|
||||||
'top',
|
|
||||||
(document.getElementById('gotoPrefs').getBoundingClientRect().bottom + 4) + 'px'
|
|
||||||
);
|
|
||||||
|
|
||||||
// https://github.com/chrisaljoudi/uBlock/issues/996
|
// https://github.com/chrisaljoudi/uBlock/issues/996
|
||||||
// Experimental: mitigate glitchy popup UI: immediately set the firewall pane
|
// Experimental: mitigate glitchy popup UI: immediately set the firewall pane
|
||||||
// visibility to its last known state. By default the pane is hidden.
|
// visibility to its last known state. By default the pane is hidden.
|
||||||
@ -325,12 +318,6 @@ var buildAllFirewallRows = function() {
|
|||||||
dfPaneBuilt = true;
|
dfPaneBuilt = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The padlock must be manually positioned:
|
|
||||||
// - Its horizontal position depends on whether there is a vertical
|
|
||||||
// scrollbar.
|
|
||||||
var rect = document.getElementById('firewallContainer').getBoundingClientRect();
|
|
||||||
document.getElementById('rulesetTools').style.setProperty('left', (rect.left + 4) + 'px');
|
|
||||||
|
|
||||||
updateAllFirewallCells();
|
updateAllFirewallCells();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user