mirror of https://github.com/gorhill/uBlock.git
fix popup panel layout as per feedback: 39aeaa12a7 (commitcomment-22310294)
This commit is contained in:
parent
d50e76745d
commit
c1589cafaa
|
@ -29,13 +29,9 @@ h2 {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 100%;
|
font-size: 100%;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
margin: 1em 0 0.8em 0;
|
|
||||||
padding: 0.2em;
|
padding: 0.2em;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
h2:first-of-type {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
a {
|
a {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
@ -150,6 +146,27 @@ p {
|
||||||
body.off #switch .fa {
|
body.off #switch .fa {
|
||||||
color: #ccc;
|
color: #ccc;
|
||||||
}
|
}
|
||||||
|
#basicTools {
|
||||||
|
margin: 0.8em 0 0.4em 0;
|
||||||
|
}
|
||||||
|
.tool:first-child {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
.tool {
|
||||||
|
color: #aaa;
|
||||||
|
cursor: pointer;
|
||||||
|
visibility: hidden;
|
||||||
|
margin-left: 0.8em;
|
||||||
|
min-width: 1em;
|
||||||
|
padding: 0 0.2em;
|
||||||
|
unicode-bidi: embed;
|
||||||
|
}
|
||||||
|
.tool.enabled {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
.tool.enabled:hover {
|
||||||
|
color: #444;
|
||||||
|
}
|
||||||
#page-blocked {
|
#page-blocked {
|
||||||
font-size: 1.25em;
|
font-size: 1.25em;
|
||||||
}
|
}
|
||||||
|
@ -163,19 +180,6 @@ body.off #switch .fa {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.tool {
|
|
||||||
color: #aaa;
|
|
||||||
cursor: pointer;
|
|
||||||
display: none;
|
|
||||||
min-width: 1em;
|
|
||||||
unicode-bidi: embed;
|
|
||||||
}
|
|
||||||
.tool.enabled {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
.tool:hover {
|
|
||||||
color: #444;
|
|
||||||
}
|
|
||||||
#extraTools {
|
#extraTools {
|
||||||
background-color: #eee;
|
background-color: #eee;
|
||||||
border: 0;
|
border: 0;
|
||||||
|
|
|
@ -434,7 +434,7 @@ var renderPopup = function() {
|
||||||
// https://github.com/gorhill/uBlock/issues/507
|
// https://github.com/gorhill/uBlock/issues/507
|
||||||
// Convenience: open the logger with current tab automatically selected
|
// Convenience: open the logger with current tab automatically selected
|
||||||
if ( popupData.tabId ) {
|
if ( popupData.tabId ) {
|
||||||
uDom.nodeFromSelector('.statName > a[href^="logger-ui.html"]').setAttribute(
|
uDom.nodeFromSelector('#basicTools > a[href^="logger-ui.html"]').setAttribute(
|
||||||
'href',
|
'href',
|
||||||
'logger-ui.html#tab_' + popupData.tabId
|
'logger-ui.html#tab_' + popupData.tabId
|
||||||
);
|
);
|
||||||
|
|
|
@ -375,11 +375,10 @@ var onBeforeBehindTheSceneRequest = function(details) {
|
||||||
|
|
||||||
context.dispose();
|
context.dispose();
|
||||||
|
|
||||||
// Not blocked
|
// Blocked?
|
||||||
if ( result !== 1 ) { return; }
|
if ( result === 1 ) {
|
||||||
|
|
||||||
// Blocked
|
|
||||||
return { 'cancel': true };
|
return { 'cancel': true };
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
|
@ -14,12 +14,14 @@
|
||||||
<div id="panes">
|
<div id="panes">
|
||||||
<div class="tooltipContainer">
|
<div class="tooltipContainer">
|
||||||
<p id="switch" data-i18n-tip="popupPowerSwitchInfo" data-tip-position="under"><span class="fa"></span></p>
|
<p id="switch" data-i18n-tip="popupPowerSwitchInfo" data-tip-position="under"><span class="fa"></span></p>
|
||||||
|
<p id="basicTools">
|
||||||
|
<span id="gotoZap" class="fa tool" data-i18n-tip="popupTipZapper" data-tip-position="under"></span>
|
||||||
|
<span id="gotoPick" class="fa tool" data-i18n-tip="popupTipPicker" data-tip-position="under"></span>
|
||||||
|
<a href="logger-ui.html" class="fa tool enabled" data-i18n-tip="popupTipLog" data-tip-position="under"></a>
|
||||||
|
</p>
|
||||||
<h2 id="dfToggler" data-i18n="popupBlockedRequestPrompt"> </h2>
|
<h2 id="dfToggler" data-i18n="popupBlockedRequestPrompt"> </h2>
|
||||||
<p class="statName">
|
<p class="statName">
|
||||||
<span data-i18n="popupBlockedOnThisPagePrompt"> </span> <!--
|
<span data-i18n="popupBlockedOnThisPagePrompt"> </span>
|
||||||
--><span id="gotoZap" class="fa tool" data-i18n-tip="popupTipZapper"></span> <!--
|
|
||||||
--><span id="gotoPick" class="fa tool" data-i18n-tip="popupTipPicker"></span> <!--
|
|
||||||
--><a href="logger-ui.html" class="fa tool enabled" data-i18n-tip="popupTipLog"></a>
|
|
||||||
</p>
|
</p>
|
||||||
<p class="statValue" id="page-blocked">?</p>
|
<p class="statValue" id="page-blocked">?</p>
|
||||||
<div id="refresh" class="fa"></div>
|
<div id="refresh" class="fa"></div>
|
||||||
|
|
Loading…
Reference in New Issue