diff options
author | gorhill <rhill@raymondhill.net> | 2015-05-08 18:28:01 -0400 |
---|---|---|
committer | gorhill <rhill@raymondhill.net> | 2015-05-08 18:28:01 -0400 |
commit | f9652b5f574d06627941af69388ba136c7ae857e (patch) | |
tree | 2a4c1178dce00b92ef2b2a73c4cc43012bd9db28 /src/css | |
parent | eba1161f0d5f9f058f0d52ddb028c53a608d1a88 (diff) | |
download | uBlock-f9652b5f574d06627941af69388ba136c7ae857e.zip uBlock-f9652b5f574d06627941af69388ba136c7ae857e.tar.gz uBlock-f9652b5f574d06627941af69388ba136c7ae857e.tar.bz2 |
importing uMatrix unified logger
Diffstat (limited to 'src/css')
-rw-r--r-- | src/css/devtool-log.css | 130 | ||||
-rw-r--r-- | src/css/devtools.css | 110 | ||||
-rw-r--r-- | src/css/logger-ui.css | 251 |
3 files changed, 251 insertions, 240 deletions
diff --git a/src/css/devtool-log.css b/src/css/devtool-log.css deleted file mode 100644 index 5f53a0b..0000000 --- a/src/css/devtool-log.css +++ /dev/null @@ -1,130 +0,0 @@ -body { - border: 0; - box-sizing: border-box; - -moz-box-sizing: border-box; - margin: 0; - overflow-x: hidden; - padding: 0; - white-space: nowrap; - width: 100%; - } -#toolbar { - background-color: white; - border: 0; - box-sizing: border-box; - height: 40px; - left: 0; - margin: 0; - padding: 0 1em; - position: fixed; - top: 0; - width: 100%; - } -#toolbar .button { - background-color: white; - border: none; - box-sizing: border-box; - cursor: pointer; - display: inline-block; - font-size: 20px; - margin: 0; - padding: 8px; - } -#toolbar .button:hover { - background-color: #eee; - } -body.filterOff #toolbar #filterButton { - opacity: 0.25; - } -#filterExpression.bad { - background-color: #fee; - } -#maxEntries { - margin-left: 3em; - } -input:focus { - background-color: #ffe; - } -#content { - margin-top: 40px; - } -#content table { - border: 0; - border-collapse: collapse; - direction: ltr; - font: 12px monospace; - width: 100%; - } -#content table tr.docBoundary { - background-color: #666; - color: white; - text-align: center; - } -#content table tr.docBoundary > td:first-child { - padding: 1em 0; - white-space: normal; - word-break: break-all; - word-wrap: break-word; - } -#content table tr.blocked { - background-color: rgba(192, 0, 0, 0.1); - } -body.colorBlind #content table tr.blocked { - background-color: rgba(0, 19, 110, 0.1); - } -#content table tr.allowed { - background-color: rgba(0, 160, 0, 0.1); - } -body.colorBlind #content table tr.allowed { - background-color: rgba(255, 194, 57, 0.1) - } -#content table tr.maindoc { - } -#content table tr.cosmetic { - background-color: rgba(255, 255, 0, 0.1); - } -body:not(.filterOff) #content table tr.hidden { - display: none; - } -#content table tr td { - border: 1px solid #ccc; - padding: 3px; - vertical-align: top; - } -#content table tr td:nth-of-type(1) { - padding: 3px 0; - text-align: center; - white-space: pre; - width: 1em; - } -#content table tr td:nth-of-type(2) { - white-space: normal; - width: 25%; - word-break: break-all; - word-wrap: break-word; - } -#content table tr td:nth-of-type(3) { - white-space: nowrap; - } -#content table tr td:nth-of-type(4) { - border-right: none; - white-space: normal; - width: 60%; - word-break: break-all; - word-wrap: break-word; - } -#content table tr td:nth-of-type(4) b { - font-weight: normal; - } -#content table tr.blocked td:nth-of-type(4) b { - background-color: rgba(192, 0, 0, 0.2); - } -body.colorBlind #content table tr.blocked td:nth-of-type(4) b { - background-color: rgba(0, 19, 110, 0.2); - } -#content table tr.allowed td:nth-of-type(4) b { - background-color: rgba(0, 160, 0, 0.2); - } -body.colorBlind #content table tr.allowed td:nth-of-type(4) b { - background-color: rgba(255, 194, 57, 0.2); - } diff --git a/src/css/devtools.css b/src/css/devtools.css deleted file mode 100644 index cc3d061..0000000 --- a/src/css/devtools.css +++ /dev/null @@ -1,110 +0,0 @@ -body { - margin: 0; - overflow-y: hidden; - padding: 0; - } -button { - opacity: 0.25; - } -button:hover { - opacity: 0.75; - } -#toolbar { - background-color: #eee; - border: none; - box-sizing: border-box; - -moz-box-sizing: border-box; - height: 4em; - padding: 1em; - position: fixed; - top: 0; - width: 100%; - } -#toolbar > * { - display: inline-block; - position: relative; - vertical-align: middle; - } -#toolbar button { - background-color: transparent; - border: none; - cursor: pointer; - font-size: 2em; - margin: 0 0 0 1em; - vertical-align: middle; - } -#pageSelector { - max-width: 70%; - } -#toolbar #refresh { - margin-left: 4px; - } -select { - padding: 2px 0; - font-size: 14px; - min-width: 20em; - max-width: 40em; - } -select option { - max-width: 40em; - } -#extras { - background-color: transparent; - border: 0; - margin: 0; - padding: 0; - position: absolute; - right: 0; - } -#extras > span { - border: 0; - margin: 0; - padding: 0; - position: relative; - } -#extras > span > button { - margin-left: 0.2em; - } -#extras > span > div { - background-color: white; - border: 0; - display: none; - position: absolute; - right: 2px; - } -#extras > span > div > * { - border: 1px solid gray; - } -#extras > span > button.enabled { - opacity: 1; - } -#extras > span > button.enabled + div { - display: block; - } -#filterMatcher { - border: 0; - padding: 0.5em; - margin: 0; - } -#filteringResult { - background-color: #eee; - font-family: monospace; - } -#filteringResult.empty { - background-color: transparent; - } -#popup { - border: 0; - padding: 0; - margin: 0; - } -#content { - border: 0; - box-sizing: border-box; - -moz-box-sizing: border-box; - height: calc(100vh - 4em); - margin-top: 4em; - overflow-y: auto; - padding: 0; - width: 100%; - } diff --git a/src/css/logger-ui.css b/src/css/logger-ui.css new file mode 100644 index 0000000..080c211 --- /dev/null +++ b/src/css/logger-ui.css @@ -0,0 +1,251 @@ +body { + background-color: white; + border: 0; + box-sizing: border-box; + color: black; + -moz-box-sizing: border-box; + margin: 0; + overflow-x: hidden; + padding: 0; + white-space: nowrap; + width: 100%; + } +#toolbar { + background-color: white; + border: 0; + box-sizing: border-box; + left: 0; + margin: 0; + padding: 0 1em; + position: fixed; + top: 0; + width: 100%; + z-index: 10; + } +#toolbar .button { + background-color: white; + border: none; + box-sizing: border-box; + cursor: pointer; + display: inline-block; + font-size: 20px; + margin: 0; + padding: 8px; + } +#toolbar .button.disabled { + opacity: 0.2; + pointer-events: none; + } +#toolbar .button:hover { + background-color: #eee; + } +body #compactViewToggler.button:before { + content: '\f102'; + } +body.compactView #compactViewToggler.button:before { + content: '\f103'; + } +#filterButton { + opacity: 0.25; + } +body.f #filterButton { + opacity: 1; + } +#filterInput.bad { + background-color: #fee; + } +#maxEntries { + margin-left: 3em; + } +input:focus { + background-color: #ffe; + } +#content { + font: 13px sans-serif; + margin-top: 3.5em; + width: 100%; + } + +#content table { + border: 0; + border-collapse: collapse; + direction: ltr; + table-layout: fixed; + width: 100%; + } +#content table > colgroup > col:nth-of-type(1) { + width: 5em; + } +#content table > colgroup > col:nth-of-type(2) { + width: 2.5em; + } +#content table > colgroup > col:nth-of-type(3) { + width: 2.5em; + } +#content table > colgroup > col:nth-of-type(4) { + width: 20%; + } +#content table > colgroup > col:nth-of-type(5) { + width: 6em; + } +#content table > colgroup > col:nth-of-type(6) { + width: calc(100% - 16em - 20%); + } +body.f table tr.f { + display: none; + } + +#content table tr.cat_info { + color: #00f; + } +#content table tr.blocked { + background-color: rgba(192, 0, 0, 0.1); + } +body.colorBlind #content table tr.blocked { + background-color: rgba(0, 19, 110, 0.1); + } +#content table tr.allowed { + background-color: rgba(0, 160, 0, 0.1); + } +body.colorBlind #content table tr.allowed { + background-color: rgba(255, 194, 57, 0.1) + } +#content table tr.cosmetic { + background-color: rgba(255, 255, 0, 0.1); + } +#content table tr.maindoc { + background-color: #666; + color: white; + text-align: center; + } + +body #content 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; + } +#content table tr td { + border-top: 1px solid #ccc; + } +#content table tr td:first-of-type { + border-left: none; + } +#content table tr td:last-of-type { + border-right: none; + } +body.compactView #content td { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + +#content table tr td:nth-of-type(1) { + text-align: center; + white-space: nowrap; + } +#content table tr td:nth-of-type(2) { + text-align: center; + white-space: nowrap; + } +#content table tr.tab_bts > td:nth-of-type(2):before { + content: '\f070'; + font: 1em FontAwesome; + } +#content table tr.tab:not(.canMtx) { + opacity: 0.2; + } +#content table tr.tab:not(.canMtx) > td:nth-of-type(2):before { + content: '\f00d'; + font: 1em FontAwesome; + } +body:not(.popupOn) #content table tr.canMtx td:nth-of-type(2) { + cursor: zoom-in; + } +body:not(.popupOn) #content table tr.canMtx td:nth-of-type(2):hover { + background: white; + } +#content table tr.cat_net td:nth-of-type(3), +#content table tr.cat_cosmetic td:nth-of-type(3) { + font: 12px monospace; + text-align: center; + white-space: nowrap; + } +#content table tr.cat_net td:nth-of-type(6) > span > b { + font-weight: bold; + } +#content table tr td:nth-of-type(6) b { + font-weight: normal; + } +#content table tr.blocked td:nth-of-type(6) b { + background-color: rgba(192, 0, 0, 0.2); + } +body.colorBlind #content table tr.blocked td:nth-of-type(6) b { + background-color: rgba(0, 19, 110, 0.2); + } +#content table tr.allowed td:nth-of-type(6) b { + background-color: rgba(0, 160, 0, 0.2); + } +body.colorBlind #content table tr.allowed td:nth-of-type(6) b { + background-color: rgba(255, 194, 57, 0.2); + } + +#popupContainer { + background: white; + border: 1px solid gray; + border-radius: 3px; + display: none; + overflow: hidden; + position: fixed; + z-index: 200; + } +body.popupOn #popupContainer { + display: block; + } +#popupContainer > div { + background: #aaa; + border: 0; + cursor: -webkit-grab; + cursor: grab; + height: 1.2em; + } +body[dir="ltr"] #popupContainer > div { + direction: rtl; + } +body[dir="rtl"] #popupContainer > div { + direction: ltr; + } +#popupContainer > div > span { + color: #eee; + cursor: pointer; + display: inline-block; + font: 14px FontAwesome; + padding: 0 3px; + } +#popupContainer > div > span:hover { + color: white; + } +#popupContainer > iframe { + border: 0; + padding: 0; + margin: 0; + width: 100%; + } +#movingOverlay { + bottom: 0; + display: none; + left: 0; + position: fixed; + right: 0; + top: 0; + z-index: 300; + } +#popupContainer.moving ~ #movingOverlay { + cursor: -webkit-grabbing; + cursor: grabbing; + display: block; + } |