X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fdevtools%2Fwebconsole.css;h=f99cd3e280b38c073ad242d41726a5896ccc9414;hp=c7d43527cfb4fdd19dac1c2e16cbbcf58b2d3e6d;hb=1ad21b1f6b999bccea1c6d768ebbd4bc900479d0;hpb=dc9d5d64a3f915cb832f43050545b432f33504f7 diff --git a/LCARStrek/devtools/webconsole.css b/LCARStrek/devtools/webconsole.css index c7d43527..f99cd3e2 100644 --- a/LCARStrek/devtools/webconsole.css +++ b/LCARStrek/devtools/webconsole.css @@ -2,6 +2,13 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +/* Webconsole specific theme variables */ + +.theme-dark, +.theme-light, +.theme-firebug { +} + window { padding: 0; } @@ -15,8 +22,6 @@ window { width: 200px; } -/* === BEGIN webconsole.inc.css === */ - /* General output styles */ a { @@ -32,7 +37,6 @@ a { .message { display: flex; - flex: none; padding: 0 7px; width: 100%; box-sizing: border-box; @@ -41,7 +45,7 @@ a { .message > .prefix, .message > .timestamp { flex: none; - color: #8050B0; + color: var(--theme-comment); margin: 3px 6px 0 0; } @@ -59,7 +63,7 @@ a { .message > .icon::before { content: ""; - background-image: url("chrome://devtools/skin/webconsole.svg"); + background-image: url("chrome://devtools/skin/images/webconsole.svg"); background-position: 12px 12px; background-repeat: no-repeat; background-size: 72px 60px; @@ -69,7 +73,8 @@ a { } .message > .message-body-wrapper { - flex: 1 1 100%; + flex: auto; + min-width: 0px; margin: 3px; } @@ -97,36 +102,30 @@ a { } .message-location { - display: flex; - flex: none; - align-self: flex-start; - justify-content: flex-end; - width: 10em; - margin-top: 3px; - color: #3333FF; - text-decoration: none; - white-space: nowrap; -} - -.message-location:hover, -.message-location:focus { - text-decoration: underline; + max-width: 40%; } -.message-location > .filename { - text-overflow: ellipsis; - text-align: end; - overflow: hidden; +.stack-trace .frame-link-source, +.message-location .frame-link-source { + /* Makes the file name truncated (and ellipsis shown) on the left side */ + direction: rtl; white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } -.message-location > .line-number { - flex: none; +.stack-trace .frame-link-source-inner, +.message-location .frame-link-source-inner { + /* Enforce LTR direction for the file name - fixes bug 1290056 */ + direction: ltr; + unicode-bidi: embed; } -.hud-msg-node[selected="true"] > .webconsole-timestamp, -.hud-msg-node[selected="true"] > .webconsole-location { - color: inherit; +.stack-trace .frame-link-function-display-name { + max-width: 50%; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } .message-flex-body { @@ -139,36 +138,21 @@ a { } .message-flex-body > .message-body { - display: block; - flex: 1 1 auto; - vertical-align: middle; -} - -.message-flex-body > .message-location { - margin-top: 0; -} - -.jsterm-input-container { - border-top-width: 1px; - border-top-style: solid; + flex: auto; } #output-wrapper { direction: ltr; overflow: auto; -} - -#output-container { -moz-user-select: text; - -moz-box-flex: 1; - display: flex; - flex-direction: column; - align-items: flex-start; } +/* The width on #output-container is set to a hardcoded px in webconsole.js + since it's way faster than using 100% with -moz-box-flex (see Bug 1237368) */ + #output-container.hideTimestamps > .message { - -moz-padding-start: 0; - -moz-margin-start: 7px; + padding-inline-start: 0; + margin-inline-start: 7px; width: calc(100% - 7px); } @@ -194,10 +178,6 @@ a { /* WebConsole colored drops */ -.hud-console-filter-toolbar toolbarbutton > .toolbarbutton-text { - padding: 2px 2px 3px; -} - .webconsole-filter-button { -moz-user-focus: normal; } @@ -208,25 +188,11 @@ a { height: 8px; width: 8px; border-radius: 50%; - -moz-margin-start: 2px; - -moz-margin-end: 2px; + margin-inline-start: 5px; border-width: 1px; border-style: solid; } -.webconsole-filter-button > .toolbarbutton-menubutton-button { - -moz-box-orient: horizontal; -} - -.webconsole-filter-button menuitem { - -moz-image-region: auto; -} - -.hud-filter-box { - margin-top: 0; - margin-bottom: 0; -} - /* Network styles */ .webconsole-filter-button[category="net"] > .toolbarbutton-menubutton-button:before { background-image: linear-gradient(#BF9B00, #7F6700); @@ -257,7 +223,7 @@ a { } .message[category=network] > .indent { - -moz-border-end: solid #FF0000 6px; + border-inline-end: solid var(--theme-body-color-alt) 6px; } .message[category=network][severity=error] > .icon::before { @@ -266,6 +232,7 @@ a { .message[category=network] > .message-body { display: flex; + flex-wrap: wrap; } .message[category=network] .method { @@ -284,15 +251,15 @@ a { .message[category=network] .status { flex: none; - -moz-margin-start: 6px; + margin-inline-start: 6px; } .message[category=network].mixed-content .url { - color: #FF0000; + color: var(--theme-highlight-red); } .message .learn-more-link { - color: #3333FF; + color: var(--theme-highlight-blue); margin: 0 6px; } @@ -304,7 +271,8 @@ a { font-size: 10px; padding: 2px; line-height: 10px; - -moz-margin-end: 1ex; + margin-inline-start: 3px; + margin-inline-end: 1ex; } /* CSS styles */ @@ -314,7 +282,7 @@ a { } .message[category=cssparser] > .indent { - -moz-border-end: solid #9C9CFF 6px; + border-inline-end: solid #9C9CFF 6px; } .message[category=cssparser][severity=error] > .icon::before { @@ -332,7 +300,7 @@ a { } .message[category=exception] > .indent { - -moz-border-end: solid #FF9F00 6px; + border-inline-end: solid #FF9F00 6px; } .message[category=exception][severity=error] > .icon::before { @@ -350,7 +318,7 @@ a { } .message[category=console] > .indent { - -moz-border-end: solid #8050B0 6px; + border-inline-end: solid #8050B0 6px; } .message[category=console][severity=error] > .icon::before, @@ -377,13 +345,13 @@ a { } .message[category=server] > .indent { - -moz-border-end: solid #8050B0 6px; + border-inline-end: solid #8050B0 6px; } /* Input and output styles */ .message[category=input] > .indent, .message[category=output] > .indent { - -moz-border-end: solid #A09090 6px; + border-inline-end: solid #A09090 6px; } .message[category=input] > .icon::before { @@ -395,29 +363,48 @@ a { } /* JSTerm Styles */ +.jsterm-input-container { + background-color: var(--theme-tab-toolbar-background); + border-top: 1px solid var(--theme-splitter-color); +} .jsterm-input-node, .jsterm-complete-node { - -moz-padding-start: 16px; - margin: 3px 0 0 0; + border: none; + padding: 0; + padding-inline-start: 20px; + margin: 0; + -moz-appearance: none; background-color: transparent; } +.jsterm-input-node[focused="true"] { + background-image: var(--theme-command-line-image-focus); + box-shadow: none; +} + +.jsterm-complete-node { + color: var(--theme-comment); +} + .jsterm-input-node { - background-image: -moz-image-rect(url("chrome://devtools/skin/commandline-icon.png"), 0, 32, 16, 16); + /* Always allow scrolling on input - it auto expands in js by setting height, + but don't want it to get bigger than the window. 24px = toolbar height. */ + max-height: calc(90vh - 24px); + background-image: var(--theme-command-line-image); background-repeat: no-repeat; background-size: 16px 16px; -} - -@media (min-resolution: 1.1dppx) { - .jsterm-input-node { - background-image: -moz-image-rect(url('chrome://devtools/skin/commandline-icon@2x.png'), 0, 64, 32, 32); - } + background-position: 4px 50%; + color: var(--theme-content-color1); } :-moz-any(.jsterm-input-node, .jsterm-complete-node) > .textbox-input-box > .textbox-textarea { overflow-x: hidden; + /* Set padding for console input on textbox to make sure it is inlcuded in + scrollHeight that is used when resizing JSTerminal's input. Note: textbox + default style has important already */ + padding: 4px 0 !important; } .inlined-variables-view .message-body { @@ -429,13 +416,13 @@ a { } .inlined-variables-view iframe { - display: block; + display: block; flex: 1; margin-top: 5px; margin-bottom: 15px; - -moz-margin-end: 15px; - border: 1px solid #9C9CFF; - border-radius: 4px; + margin-inline-end: 15px; + border: 1px solid var(--theme-splitter-color); + border-radius: 3px; } #webconsole-sidebar > tabs { @@ -450,7 +437,7 @@ a { /* Security styles */ .message[category=security] > .indent { - -moz-border-end: solid #FF0000 6px; + border-inline-end: solid #FF0000 6px; } .webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before { @@ -475,18 +462,17 @@ a { } .navigation-marker .url { - -moz-padding-end: 9px; + padding-inline-end: 9px; text-decoration: none; + background: var(--theme-body-background); } .stacktrace { display: none; - list-style: none; - padding: 0 1em 0 1.5em; + padding: 5px 10px; margin: 5px 0 0 0; - max-height: 10em; overflow-y: auto; - border: 1px solid #A09090; + border: 1px solid var(--theme-splitter-color); border-radius: 3px; } @@ -494,6 +480,16 @@ a { margin: 5px 0 0 0; } +/* Force cells to only show one row of contents. Getting normal ellipses + behavior has proven impossible so far, so this is better than letting + rows get out of vertical alignment when one cell has a lot of content. */ +.consoletable .table-widget-cell > span { + overflow: hidden; + display: flex; + height: 1.25em; + line-height: 1.25em; +} + .message[severity=error] .stacktrace { background-color: #000000; } @@ -505,17 +501,8 @@ a { .message .theme-twisty { display: inline-block; vertical-align: middle; - margin: 0 3px 0 0; -} - -.stacktrace li { - display: flex; - margin: 0; -} - -.stacktrace .function { - display: block; - flex: 1 1 auto; + margin: 3px 0 0 0; + flex-shrink: 0; } .cm-s-mozilla a[class] { @@ -528,47 +515,25 @@ a { text-decoration: underline; } +a.learn-more-link.webconsole-learn-more-link { + font-style: normal; +} + /* Open DOMNode in inspector button */ .open-inspector { background: url("chrome://devtools/skin/images/vview-open-inspector.png") no-repeat 0 0; padding-left: 16px; - margin-left: 5px; + margin-inline-start: 5px; cursor: pointer; } .elementNode:hover .open-inspector, .open-inspector:hover { - background-position: -32px 0; + filter: url(images/filters.svg#checked-icon-state); } .open-inspector:active { - background-position: -16px 0; -} - -/* Replace these values with CSS variables as available */ -.jsterm-input-container { - background-color: var(--theme-toolbar-background); - border-color: var(--theme-splitter-color); -} - -.jsterm-input-node { - color: var(--theme-highlight-pink); -} - -.jsterm-complete-node { - color: var(--theme-comment); -} - -.navigation-marker .url { - background: var(--theme-body-background); -} - -.inlined-variables-view iframe { - border-color: #A09090; -} - -.stacktrace { - border-color: #A09090; + filter: url(images/filters.svg#checked-icon-state); } @media (max-width: 500px) { @@ -587,7 +552,7 @@ a { .webconsole-filter-button > .toolbarbutton-menubutton-button:before { width: 12px; height: 12px; - margin-left: 1px; + margin-inline-start: 1px; } .toolbarbutton-menubutton-dropmarker { margin: 0px; @@ -612,4 +577,11 @@ a { */ } -/* === END webconsole.inc.css === */ +/* + * This hardcoded width likely due to a toolkit Windows specific bug. + * See http://hg.mozilla.org/mozilla-central/annotate/f38d6df93cad/toolkit/themes/winstripe/global/textbox-aero.css#l7 + */ + +:root[platform="win"] .hud-filter-box { + width: 200px; +}