uBlock/src/css/logger-ui.css
Raymond Hill 2c4535d1fe
Prevent spurious disappearance of built-in expression filters panel
After a bit more testing following
<38b73f7100>.

Hovering the mouse cursor over the margin area would cause the panel
to spuriously disappear.
2019-01-01 16:31:54 -05:00

700 lines
18 KiB
CSS

body {
background-color: white;
border: 0;
color: black;
display: flex;
flex-direction: column;
height: 100vh;
margin: 0;
overflow: hidden;
padding: 0;
width: 100vw;
}
textarea {
box-sizing: border-box;
direction: ltr;
resize: none;
width: 100%;
}
.permatoolbar {
background-color: white;
border: 0;
box-sizing: border-box;
display: flex;
flex-shrink: 0;
font-size: 120%;
margin: 0;
padding: 0.25em 0.5em;
}
.permatoolbar .button {
cursor: pointer;
font-size: 150%;
padding: 0.25em;
}
.permatoolbar .button.active {
fill: #5F9EA0;
}
.permatoolbar .button:hover {
background-color: #eee;
}
#pageSelector {
margin-right: 1em;
padding: 0.25em 0;
width: 28em;
}
#showpopup {
display: inline-flex;
align-items: center;
}
#showpopup img {
filter: grayscale(100%);
height: auto;
width: 1em;
}
#info {
fill: #ccc;
padding-left: 0.5em;
padding-right: 0.5em;
position: absolute;
right: 0;
}
#info:hover {
fill: #000;
}
@media (max-width: 600px) {
#info {
display: none;
}
}
/*
https://github.com/gorhill/uBlock/issues/3293
=> https://devhints.io/css-system-font-stack
*/
#inspectors {
flex-grow: 1;
font-family: "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}
.inspector {
border-top: 1px solid #ccc;
display: flex;
flex-direction: column;
}
.vscrollable {
flex-grow: 1;
font-size: small;
overflow-x: hidden;
overflow-y: auto;
}
.vCompact .vCompactToggler.button {
transform: scaleY(-1)
}
.hCompact .hCompactToggler.button {
transform: scaleX(-1)
}
#inspectors.dom #netInspector {
display: none;
}
#netInspector #pause > span:last-of-type {
display: none;
}
#netInspector.paused #pause > span:first-of-type {
display: none;
}
#netInspector.paused #pause > span:last-of-type {
display: inline-flex;
fill: #5F9EA0;
}
#netInspector #filterExprGroup {
display: flex;
margin: 0 1em;
position: relative;
}
#netInspector #filterButton {
opacity: 0.25;
}
#netInspector.f #filterButton {
opacity: 1;
}
#netInspector #filterInput {
display: inline-flex;
}
#netInspector #filterInput > input {
min-width: 18em;
}
#netInspector #maxEntries {
margin: 0 2em;
}
#netInspector #filterExprButton {
position: absolute;
right: 0;
transform: scaleY(-1);
}
#netInspector #filterExprButton:hover {
background-color: transparent;
}
#netInspector #filterExprButton.expanded {
transform: scaleY(1);
}
#netInspector #filterExprPicker {
background-color: white;
border: 1px solid gray;
display: none;
position: absolute;
flex-direction: column;
font-size: small;
right: 0;
top: 100%;
z-index: 100;
}
#netInspector #filterExprGroup:hover #filterExprButton.expanded ~ #filterExprPicker {
display: flex;
}
#netInspector #filterExprPicker > div {
border: 1px dotted #ddd;
border-left: 0;
border-right: 0;
display: flex;
padding: 0.5em;
}
#netInspector #filterExprPicker > div:first-of-type {
border-top: 0;
}
#netInspector #filterExprPicker > div:last-of-type {
border-bottom: 0;
}
#netInspector #filterExprPicker span[data-filtex] {
border: 1px solid transparent;
cursor: pointer;
margin: 0 0.5em 0 0;
padding: 0.5em;
white-space: nowrap;
}
#netInspector #filterExprPicker span[data-filtex]:last-of-type {
margin: 0;
}
#netInspector #filterExprPicker span[data-filtex]:hover {
background-color: aliceblue;
border: 1px solid lightblue;
}
#netInspector #filterExprPicker span.on[data-filtex] {
background-color: lightblue;
border: 1px solid lightblue;
}
#netInspector table {
border: 0;
border-collapse: collapse;
direction: ltr;
table-layout: fixed;
width: 100%;
}
#netInspector table > colgroup > col:nth-of-type(1) {
width: 4.6em;
}
#netInspector table > colgroup > col:nth-of-type(2) {
width: 16%;
}
#netInspector table > colgroup > col:nth-of-type(3) {
width: 2.1em;
}
#netInspector table > colgroup > col:nth-of-type(4) {
width: 20%;
}
#netInspector table > colgroup > col:nth-of-type(5) {
width: 2.4em;
}
#netInspector table > colgroup > col:nth-of-type(6) {
width: 6em;
}
#netInspector table > colgroup > col:nth-of-type(7) {
width: calc(100% - 4.6em - 16% - 2.1em - 20% - 2.4em - 6em);
}
#netInspector.f table tr.f {
display: none;
}
#netInspector tr.cat_info {
color: #00f;
}
#netInspector tr.blocked {
background-color: rgba(192, 0, 0, 0.1);
}
body.colorBlind #netInspector tr.blocked {
background-color: rgba(0, 19, 110, 0.1);
}
#netInspector tr.nooped {
background-color: rgba(108, 108, 108, 0.1);
}
body.colorBlind #netInspector tr.nooped {
background-color: rgba(96, 96, 96, 0.1);
}
#netInspector tr.allowed {
background-color: rgba(0, 160, 0, 0.1);
}
body.colorBlind #netInspector tr.allowed {
background-color: rgba(255, 194, 57, 0.1)
}
#netInspector tr.cosmetic,
#netInspector tr.redirect {
background-color: rgba(255, 255, 0, 0.1);
}
body.colorBlind #netInspector tr.cosmetic,
body.colorBlind #netInspector tr.redirect {
background-color: rgba(0, 19, 110, 0.1);
}
#netInspector tr.maindoc {
background-color: #666;
color: white;
text-align: center;
}
body #netInspector td {
border: 1px solid #ccc;
border-top: none;
min-width: 0.5em;
padding: 3px;
vertical-align: top;
white-space: normal;
word-break: break-all;
word-wrap: break-word;
}
#netInspector tr td {
border-top: 1px solid #ccc;
}
#netInspector tr td:first-of-type {
border-left: none;
}
#netInspector tr td:last-of-type {
border-right: none;
}
#netInspector.vCompact tr:not(.vExpanded) td {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
#netInspector tr[data-tabid].void {
opacity: 0.3;
}
#netInspector tr[data-tabid].void:hover {
opacity: 0.7;
}
#netInspector tr td:nth-of-type(1) {
cursor: default;
text-align: right;
white-space: nowrap;
}
#netInspector tr td:nth-of-type(2) {
}
#netInspector tr.canLookup td:nth-of-type(2) {
cursor: zoom-in;
}
#netInspector tr.cat_net td:nth-of-type(3),
#netInspector tr.cat_cosmetic td:nth-of-type(3),
#netInspector tr.cat_redirect td:nth-of-type(3) {
font: 12px monospace;
text-align: center;
white-space: nowrap;
}
#netInspector tr.cat_net td:nth-of-type(3) {
cursor: pointer;
}
#netInspector tr.cat_net td:nth-of-type(3):hover {
background: #ccc;
}
#netInspector tr td:nth-of-type(4) {
}
#netInspector tr[data-dochn] td:nth-of-type(4) {
direction: rtl;
}
#netInspector tr td:nth-of-type(5) {
cursor: default;
overflow: visible !important;
position: relative;
text-align: center;
}
#netInspector tr td[data-parties]:nth-of-type(5) {
cursor: zoom-in;
}
/* visual for tabless network requests */
#netInspector tr.tab_bts td:nth-of-type(5)::before {
border: 5px solid #bbb;
border-bottom: 0;
border-top: 0;
bottom: 0;
content: '\00a0';
left: 0;
position: absolute;
right: 0;
top: 0;
width: calc(100% - 10px);
z-index: -1;
}
/* visual for quick tooltip */
#netInspector tr td[data-parties]:nth-of-type(5):active::after {
background-color: #feb;
border: 1px outset #feb;
border-left: 5px solid gray;
color: black;
content: attr(data-parties);
left: 100%;
padding: 0.4em 0.6em;
position: absolute;
text-align: left;
top: -50%;
white-space: pre;
}
#netInspector tr.cat_net td:nth-of-type(7) > span > b {
font-weight: bold;
}
#netInspector tr td:nth-of-type(7) b {
font-weight: normal;
}
#netInspector tr.blocked td:nth-of-type(7) b {
background-color: rgba(192, 0, 0, 0.2);
}
body.colorBlind #netInspector tr.blocked td:nth-of-type(7) b {
background-color: rgba(0, 19, 110, 0.2);
}
#netInspector tr.nooped td:nth-of-type(7) b {
background-color: rgba(108, 108, 108, 0.2);
}
body.colorBlind #netInspector tr.nooped td:nth-of-type(7) b {
background-color: rgba(96, 96, 96, 0.2);
}
#netInspector tr.allowed td:nth-of-type(7) b {
background-color: rgba(0, 160, 0, 0.2);
}
body.colorBlind #netInspector tr.allowed td:nth-of-type(7) b {
background-color: rgba(255, 194, 57, 0.2);
}
#popupContainer {
background: white;
border: 1px solid gray;
border-radius: 3px;
bottom: 0;
box-sizing: border-box;
display: none;
overflow: hidden;
position: fixed;
right: 0;
z-index: 200;
}
#inspectors.popupOn #popupContainer {
display: block;
}
.modalDialog {
align-items: center;
-webkit-align-items: center;
background-color: rgba(0, 0, 0, 0.5);
border: 0;
bottom: 0;
display: flex;
display: -webkit-flex;
justify-content: center;
-webkit-justify-content: center;
left: 0;
margin: 0;
position: fixed;
right: 0;
top: 0;
z-index: 400;
}
.modalDialog .dialog {
background-color: white;
border: 2px solid white;
box-sizing: border-box;
width: 90vw;
max-height: 90vh;
overflow-y: auto;
}
#netFilteringDialog .dialog p {
line-height: 2em;
}
#netFilteringDialog .dialog select {
max-width: 75%;
outline: none;
padding: 0.2em;
}
#netFilteringDialog .dialog > div.preview {
/* http://lea.verou.me/css3patterns/ */
background-color: #aaa;
background-image:
linear-gradient(
45deg,
#666 25%,
transparent 25%,
transparent 75%,
#666 75%,
#666
),
linear-gradient(
45deg,
#666 25%,
transparent 25%,
transparent 75%,
#666 75%,
#666
);
background-position:0 0, 9px 9px;
background-size: 18px 18px;
text-align: center;
}
#netFilteringDialog .dialog > div.preview > * {
max-width: 100%;
max-height: 40vh;
}
#netFilteringDialog .dialog table {
border: 0;
border-collapse: collapse;
table-layout: fixed;
width: 100%;
}
#netFilteringDialog .dialog table > colgroup > col:nth-of-type(1) {
width: 3.8em;
}
#netFilteringDialog .dialog table > colgroup > col:nth-of-type(2) {
}
#netFilteringDialog .dialog td {
border: 0;
padding: 0;
vertical-align: middle;
}
#netFilteringDialog .dialog > div.headers {
border-bottom: 1px solid #888;
position: relative;
}
#netFilteringDialog .dialog > div.headers > span.header {
background-color: #eee;
border: 1px solid #aaa;
border-bottom: 1px solid #888;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
color: #888;
cursor: pointer;
display: inline-block;
font-size: small;
line-height: 2em;
margin-left: 0.5em;
padding: 0 1em;
position: relative;
text-align: center;
top: 1px;
}
#netFilteringDialog .dialog > div.headers > span.header.selected {
background-color: white;
border-color: #888;
border-bottom: 1px solid white;
color: black;
}
#netFilteringDialog .dialog > div.headers > span.tools {
display: inline-block;
position: absolute;
top: 50%;
transform: translate(0, -50%);
}
body[dir="ltr"] #netFilteringDialog .dialog > div.headers > span.tools {
right: 0.1em;
}
body[dir="rtl"] #netFilteringDialog .dialog > div.headers > span.tools {
left: 0.1em;
}
#netFilteringDialog .dialog > div.headers > span.tools > span {
cursor: pointer;
font-size: 1.2em;
padding: 0.2em 0.4em;
text-align: center;
}
#netFilteringDialog .dialog > div.headers > span.tools > span:hover {
background-color: #eee;
}
#netFilteringDialog .dialog > div.containers {
height: 40vh;
overflow: hidden;
overflow-y: auto;
}
#netFilteringDialog .dialog > div.containers > div {
display: none;
}
#netFilteringDialog .dialog > div.containers > div.selected {
display: block;
}
#netFilteringDialog .dialog > div.containers > div.dynamic > table.toolbar select {
font: 14px;
height: 2.5em;
}
#netFilteringDialog .dialog > div.containers > div.dynamic > table.toolbar #saveRules {
background-color: #ffe;
border: 1px solid #ddc;
border-radius: 4px;
fill: #888;
cursor: pointer;
font-size: 1.6em;
margin: 0.1em;
padding: 0.25em 0.5em;
visibility: hidden;
}
body.dirty #netFilteringDialog .dialog > div.containers > div.dynamic > table.toolbar #saveRules {
visibility: visible;
}
#netFilteringDialog .dialog > div.containers > div.dynamic > table.toolbar #saveRules:hover {
fill: black;
}
#netFilteringDialog .dialog > div.containers > div.dynamic > table.toolbar tr.entry {
display: none;
}
#netFilteringDialog .dialog > div.containers > div.dynamic tr.entry {
background-color: #e6e6e6;
border: 0;
border-bottom: 1px solid white;
font-size: 13px;
}
#netFilteringDialog .dialog > div.containers > div.dynamic tr.entry:hover {
background-color: #f0f0f0;
}
#netFilteringDialog .dialog > div.containers > div.dynamic tr.entry > td:first-of-type {
border: 0;
border-right: 1px solid white;
text-align: center;
}
#netFilteringDialog .dialog > div.containers > div.dynamic tr.entry > td > div.action {
background-color: transparent;
border: 0;
cursor: pointer;
height: 2em;
width: 100%;
}
#netFilteringDialog .dialog > div.containers > div.dynamic tr.entry > td > div.action > span {
background-color: transparent;
border: 0;
display: inline-block;
height: 100%;
opacity: 0.2;
visibility: hidden;
width: 33.33%;
}
#netFilteringDialog .dialog > div.containers > div.dynamic tr.entry > td > div.action.allow {
background-color: rgba(0, 160, 0, 0.3);
}
body.colorBlind #netFilteringDialog .dialog > div.containers > div.dynamic tr.entry > td > div.action.allow {
background-color: rgba(255, 194, 57, 0.4);
}
#netFilteringDialog .dialog > div.containers > div.dynamic tr.entry > td > div.action.noop {
background-color: rgba(108, 108, 108, 0.3);
}
body.colorBlind #netFilteringDialog .dialog > div.containers > div.dynamic tr.entry > td > div.action.noop {
background-color: rgba(96, 96, 96, 0.4);
}
#netFilteringDialog .dialog > div.containers > div.dynamic tr.entry > td > div.action.block {
background-color: rgba(192, 0, 0, 0.3);
}
body.colorBlind #netFilteringDialog .dialog > div.containers > div.dynamic tr.entry > td > div.action.block {
background-color: rgba(0, 19, 110, 0.4);
}
#netFilteringDialog .dialog > div.containers > div.dynamic tr.entry > td > div.action.own.allow {
background-color: rgba(0, 160, 0, 1);
}
body.colorBlind #netFilteringDialog .dialog > div.containers > div.dynamic tr.entry > td > div.action.own.allow {
background-color: rgba(255, 194, 57, 1);
}
#netFilteringDialog .dialog > div.containers > div.dynamic tr.entry > td > div.action.own.noop,
body.colorBlind #netFilteringDialog .dialog > div.containers > div.dynamic tr.entry > td > div.action.own.noop {
background-color: rgba(108, 108, 108, 1);
}
#netFilteringDialog .dialog > div.containers > div.dynamic tr.entry > td > div.action.own.block {
background-color: rgba(192, 0, 0, 1);
}
body.colorBlind #netFilteringDialog .dialog > div.containers > div.dynamic tr.entry > td > div.action.own.block {
background-color: rgba(0, 19, 110, 1);
}
#netFilteringDialog .dialog > div.containers > div.dynamic tr.entry > td > div.action:not(.own):hover > span {
opacity: 0.2;
visibility: visible;
}
#netFilteringDialog .dialog > div.containers > div.dynamic tr.entry > td > div.action:not(.own):hover > span:hover {
opacity: 0.75;
}
#netFilteringDialog .dialog > div.containers > div.dynamic tr.entry > td > div.action > span.allow {
background-color: rgb(0, 160, 0);
}
body.colorBlind #netFilteringDialog .dialog > div.containers > div.dynamic tr.entry > td > div.action > span.allow {
background-color: rgb(255, 194, 57);
}
#netFilteringDialog .dialog > div.containers > div.dynamic tr.entry > td > div.action > span.noop {
background-color: rgb(108, 108, 108);
}
#netFilteringDialog .dialog > div.containers > div.dynamic tr.entry > td > div.action > span.block {
background-color: rgb(192, 0, 0);
}
body.colorBlind #netFilteringDialog .dialog > div.containers > div.dynamic tr.entry > td > div.action > span.block {
background-color: rgb(0, 19, 110);
}
#netFilteringDialog .dialog > div.containers > div.dynamic tr.entry > td.url {
overflow: hidden;
padding-left: 4px;
text-overflow: ellipsis;
white-space: nowrap;
}
#netFilteringDialog .dialog > div.containers > div.static > p {
margin: 0.75em 0;
}
#netFilteringDialog .dialog > div.containers > div.static textarea {
height: 6em;
}
#netFilteringDialog .dialog > div.containers > div.static > p:nth-of-type(2) {
text-align: center;
}
#filterFinderDialog .dialog {
padding: 1em;
word-break: break-all;
}
#filterFinderDialog .dialog code {
background: #eee;
font-size: 85%;
padding: 3px;
unicode-bidi: plaintext;
white-space: pre-wrap;
}
#filterFinderDialog .dialog ul {
font-size: larger;
}
#filterFinderDialog .filterFinderListEntry {
align-items: flex-end;
display: flex;
}
#filterFinderDialog .filterFinderListEntry a {
text-decoration: none;
}
#filterFinderDialog .filterFinderListEntry a.fa-icon {
margin: 0 0.5em;
opacity: 0.6;
}
#filterFinderDialog .filterFinderListEntry a.fa-icon:hover {
opacity: 1;
}
#filterFinderDialog .filterFinderListEntry a.fa-icon[href=""] {
display: none;
}
#filterFinderDialog .dialog > *:first-child {
margin-top: 0;
}
#filterFinderDialog .dialog > *:last-child {
margin-bottom: 0;
}
.hide {
display: none;
}