X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fdevtools%2Fwebconsole.css;h=f99cd3e280b38c073ad242d41726a5896ccc9414;hp=f085cc4c8bc68da57e6134a816d359aed63c85a2;hb=1ad21b1f6b999bccea1c6d768ebbd4bc900479d0;hpb=d0a8de80597f65fb17a8508078deae45f0ae80d4 diff --git a/LCARStrek/devtools/webconsole.css b/LCARStrek/devtools/webconsole.css index f085cc4c..f99cd3e2 100644 --- a/LCARStrek/devtools/webconsole.css +++ b/LCARStrek/devtools/webconsole.css @@ -7,8 +7,6 @@ .theme-dark, .theme-light, .theme-firebug { - --command-line-image: -moz-image-rect(url("chrome://devtools/skin/images/commandline-icon.png"), 0, 32, 16, 16); - --command-line-image-2x: -moz-image-rect(url('chrome://devtools/skin/images/commandline-icon@2x.png'), 0, 64, 32, 32); } window { @@ -39,7 +37,6 @@ a { .message { display: flex; - flex: none; padding: 0 7px; width: 100%; box-sizing: border-box; @@ -76,7 +73,8 @@ a { } .message > .message-body-wrapper { - flex: 1 1 100%; + flex: auto; + min-width: 0px; margin: 3px; } @@ -104,24 +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; + max-width: 40%; +} + +.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:hover, -.message-location:focus { - text-decoration: underline; +.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; } -.message-location > .frame-link .frame-link-source { - width: 10em; +.stack-trace .frame-link-function-display-name { + max-width: 50%; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } .message-flex-body { @@ -134,13 +138,7 @@ a { } .message-flex-body > .message-body { - display: block; - flex: 1 1 auto; - vertical-align: middle; -} - -.message-flex-body > .message-location { - margin-top: 0; + flex: auto; } #output-wrapper { @@ -153,8 +151,8 @@ a { 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); } @@ -190,7 +188,7 @@ a { height: 8px; width: 8px; border-radius: 50%; - margin-left: 5px; + margin-inline-start: 5px; border-width: 1px; border-style: solid; } @@ -225,7 +223,7 @@ a { } .message[category=network] > .indent { - -moz-border-end: solid var(--theme-body-color-alt) 6px; + border-inline-end: solid var(--theme-body-color-alt) 6px; } .message[category=network][severity=error] > .icon::before { @@ -253,7 +251,7 @@ a { .message[category=network] .status { flex: none; - -moz-margin-start: 6px; + margin-inline-start: 6px; } .message[category=network].mixed-content .url { @@ -284,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 { @@ -302,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 { @@ -320,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, @@ -347,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 { @@ -373,11 +371,18 @@ a { .jsterm-input-node, .jsterm-complete-node { border: none; - padding: 0 0 0 16px; + 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); } @@ -386,21 +391,20 @@ a { /* 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(--command-line-image); + background-image: var(--theme-command-line-image); background-repeat: no-repeat; background-size: 16px 16px; + background-position: 4px 50%; color: var(--theme-content-color1); } -@media (min-resolution: 1.1dppx) { - .jsterm-input-node { - background-image: var(--command-line-image-2x); - } -} - :-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 { @@ -416,7 +420,7 @@ a { flex: 1; margin-top: 5px; margin-bottom: 15px; - -moz-margin-end: 15px; + margin-inline-end: 15px; border: 1px solid var(--theme-splitter-color); border-radius: 3px; } @@ -433,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 { @@ -458,17 +462,15 @@ 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 var(--theme-splitter-color); border-radius: 3px; @@ -478,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; } @@ -493,16 +505,6 @@ a { flex-shrink: 0; } -.stacktrace li { - display: flex; - margin: 0; -} - -.stacktrace .function { - display: block; - flex: 1 1 auto; -} - .cm-s-mozilla a[class] { font-style: italic; text-decoration: none; @@ -521,7 +523,7 @@ a.learn-more-link.webconsole-learn-more-link { .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; } @@ -550,7 +552,7 @@ a.learn-more-link.webconsole-learn-more-link { .webconsole-filter-button > .toolbarbutton-menubutton-button:before { width: 12px; height: 12px; - margin-left: 1px; + margin-inline-start: 1px; } .toolbarbutton-menubutton-dropmarker { margin: 0px;