--- a/devtools/client/themes/webconsole.css
+++ b/devtools/client/themes/webconsole.css
@@ -146,212 +146,126 @@ a {
word-wrap: break-word;
}
.message-flex-body > .message-body {
display: block;
flex: auto;
}
-#output-wrapper {
- direction: ltr;
- overflow: auto;
- -moz-user-select: text;
- position: relative;
-}
-
-/* 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 {
- padding-inline-start: 0;
- margin-inline-start: 7px;
- width: calc(100% - 7px);
-}
-
-#output-container.hideTimestamps > .message > .timestamp {
- display: none;
-}
-
-#output-container.hideTimestamps > .message > .indent {
- background-color: var(--theme-body-background);
-}
-
-.filtered-by-type,
-.filtered-by-string {
- display: none;
-}
-
-.hidden-message {
- display: block;
- visibility: hidden;
- height: 0;
- overflow: hidden;
-}
-
-.webconsole-filter-button {
- -moz-user-focus: normal;
-}
-
/* Network styles */
-.theme-dark .message[severity=error],
.theme-dark .message.error {
background-color: rgba(235, 83, 104, 0.17);
}
.console-string {
color: var(--theme-highlight-lightorange);
}
.theme-selected .console-string,
.theme-selected .cm-number,
.theme-selected .cm-variable,
.theme-selected .kind-ArrayLike {
color: #f5f7fa !important; /* Selection Text Color */
}
-.message[category=network] > .indent {
- border-inline-end: solid var(--theme-body-color-alt) 6px;
-}
-
-.message[category=network][severity=error] > .icon::before,
.message.network.error > .icon::before {
background-position: -12px 0;
}
-.message[category=network] > .message-body,
.message.network > .message-body {
display: flex;
flex-wrap: wrap;
}
-.message[category=network] .method,
.message.network .method {
flex: none;
}
-.message[category=network]:not(.navigation-marker) .url,
.message.network:not(.navigation-marker) .url {
flex: 1 1 auto;
/* Make sure the URL is very small initially, let flex change width as needed. */
width: 100px;
min-width: 5em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
-.message[category=network] .status,
.message.network .status {
flex: none;
margin-inline-start: 6px;
}
-.message[category=network].mixed-content .url,
.message.network.mixed-content .url {
color: var(--theme-highlight-red);
}
.message .learn-more-link {
color: var(--theme-highlight-blue);
margin: 0 6px;
}
-.message[category=network] .xhr,
.message.network .xhr {
background-color: var(--theme-body-color-alt);
color: var(--theme-body-background);
border-radius: 3px;
font-weight: bold;
font-size: 10px;
padding: 1px 2px;
line-height: 10px;
margin-inline-start: 0;
margin-inline-end: 1ex;
}
/* CSS styles */
-.message[category=cssparser] > .indent,
.message.cssparser > .indent {
border-inline-end: solid #00b6f0 6px;
}
-.message[category=cssparser][severity=error] > .icon::before,
.message.cssparser.error > .icon::before {
background-position: -12px -12px;
}
-.message[category=cssparser][severity=warn] > .icon::before,
.message.cssparser.warn > .icon::before {
background-position: -24px -12px;
}
/* JS styles */
-.message[category=exception] > .indent,
.message.exception > .indent {
border-inline-end: solid #fb9500 6px;
}
-.message[category=exception][severity=error] > .icon::before,
.message.exception.error > .icon::before {
background-position: -12px -24px;
}
-.message[category=exception][severity=warn] > .icon::before,
.message.exception.warn > .icon::before {
background-position: -24px -24px;
}
/* Web Developer styles */
-.message[category=console] > .indent,
.message.console-api > .indent {
border-inline-end: solid #cbcbcb 6px;
}
-.message[category=console][severity=error] > .icon::before,
-.message[category=output][severity=error] > .icon::before,
-.message[category=server][severity=error] > .icon::before {
- background-position: -12px -36px;
-}
-
-.message[category=console][severity=warn] > .icon::before,
-.message[category=server][severity=warn] > .icon::before {
- background-position: -24px -36px;
-}
-
-.message[category=console][severity=info] > .icon::before,
-.message[category=server][severity=info] > .icon::before {
- background-position: -36px -36px;
-}
-
-/* Server Logging Styles */
-
-.message[category=server] > .indent,
-.message.server > .indent {
- border-inline-end: solid #90B090 6px;
-}
-
/* Input and output styles */
-.message[category=input] > .indent,
-.message[category=output] > .indent,
.message.command > .indent,
.message.result > .indent {
border-inline-end: solid #808080 6px;
}
-.message[category=input] > .icon::before,
.message.command > .icon::before {
background-position: -48px -36px;
}
-.message[category=output] > .icon::before,
.message.result > .icon::before {
background-position: -60px -36px;
}
/* JSTerm Styles */
html .jsterm-input-node-html,
html #webconsole-notificationbox {
@@ -382,18 +296,16 @@ html #webconsole-notificationbox {
.theme-light .jsterm-input-container {
/* For light theme use a white background for the input - it looks better
than off-white */
background-color: #fff;
border-top-color: #e0e0e0;
}
-/* styles for the new HTML frontend */
-
textarea.jsterm-input-node,
textarea.jsterm-complete-node {
width: 100%;
border: 1px solid transparent;
margin: 0;
background-color: transparent;
resize: none;
font-size: inherit;
@@ -427,82 +339,26 @@ textarea.jsterm-input-node:focus {
}
/* Unset the bottom right radius on the jsterm inputs when the sidebar is visible */
:root[platform="mac"] .sidebar ~ .jsterm-input-container textarea.jsterm-input-node,
:root[platform="mac"] .sidebar ~ .jsterm-input-container textarea.jsterm-complete-node {
border-bottom-right-radius: 0;
}
-
-/* styles for the old frontend, which can be removed in Bug 1381834 */
-
-textbox.jsterm-input-node,
-textbox.jsterm-complete-node {
- border: none;
- padding: 0;
- padding-inline-start: 20px;
- margin: 0;
- -moz-appearance: none;
- background-color: transparent;
-}
-
-:-moz-any(textbox.jsterm-input-node,
- textbox.jsterm-complete-node) > .textbox-input-box > .textbox-textarea {
- overflow-x: hidden;
- /* Set padding for console input on textbox to make sure it is included in
- scrollHeight that is used when resizing JSTerminal's input. Note: textbox
- default style has important already */
- padding: 4px 0 !important;
-}
-
-textbox.jsterm-input-node[focused="true"] {
- background-image: var(--theme-command-line-image-focus);
- box-shadow: none;
-}
-
-.inlined-variables-view .message-body {
- display: flex;
- flex-direction: column;
- resize: vertical;
- overflow: auto;
- min-height: 200px;
-}
-.inlined-variables-view iframe {
- display: block;
- flex: 1;
- margin-top: 5px;
- margin-bottom: 15px;
- margin-inline-end: 15px;
- border: 1px solid var(--theme-splitter-color);
- border-radius: 3px;
-}
-
-#webconsole-sidebar > tabs {
- height: 0;
- border: none;
-}
-
-.devtools-side-splitter ~ #webconsole-sidebar[hidden] {
- display: none;
-}
-
/* Security styles */
-.message[category=security] > .indent,
.message.security > .indent {
border-inline-end: solid red 6px;
}
-.message[category=security][severity=error] > .icon::before,
.message.security.error > .icon::before {
background-position: -12px -48px;
}
-.message[category=security][severity=warn] > .icon::before,
.message.security.warn > .icon::before {
background-position: -24px -48px;
}
.navigation-marker {
color: #aaa;
background: linear-gradient(#aaa, #aaa) no-repeat left 50%;
background-size: 100% 2px;
@@ -539,27 +395,24 @@ textbox.jsterm-input-node[focused="true"
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;
}
-.theme-light .message[severity=error] .stacktrace,
.theme-light .message.error .stacktrace {
background-color: rgba(255, 255, 255, 0.5);
}
-.theme-dark .message[severity=error] .stacktrace,
.theme-dark .message.error .stacktrace {
background-color: rgba(0, 0, 0, 0.5);
}
-.message[open] .stacktrace,
.message.open .stacktrace {
display: block;
}
.message .theme-twisty {
position: relative;
top: 0.1em;
}
@@ -587,81 +440,30 @@ a.learn-more-link.webconsole-learn-more-
/* 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;
cursor: pointer;
}
-.elementNode:hover .open-inspector,
.open-inspector:hover {
filter: var(--theme-icon-checked-filter);
}
-.elementNode:hover .open-inspector:active,
.open-inspector:active {
filter: var(--theme-icon-checked-filter) brightness(0.9);
}
-
-/* Old console frontend filters */
-
-.devtools-menulist > .menulist-dropmarker {
- -moz-appearance: none;
- display: -moz-box;
- list-style-image: url("chrome://devtools/skin/images/dropmarker.svg");
- -moz-box-align: center;
- min-width: 16px;
-}
-
-.devtools-toolbarbutton[type=menu] > .toolbarbutton-menu-dropmarker {
- -moz-appearance: none !important;
- list-style-image: url("chrome://devtools/skin/images/dropmarker.svg");
- -moz-box-align: center;
- padding: 0 3px;
-}
-
@media (max-width: 500px) {
.message > .timestamp {
display: none;
}
- .hud-console-filter-toolbar .webconsole-clear-console-button {
- min-width: 25px;
- }
}
-@media (max-width: 300px) {
- .hud-console-filter-toolbar {
- -moz-box-orient: vertical;
- }
- .toolbarbutton-text {
- display: -moz-box;
- }
- .devtools-toolbarbutton {
- margin-top: 3px;
- }
- .hud-console-filter-toolbar .hud-filter-box,
- .hud-console-filter-toolbar .devtools-toolbarbutton {
- margin-top: 5px;
- }
-}
-
-/*
- * This hardcoded width likely due to a toolkit Windows specific bug.
- * See https://hg.mozilla.org/mozilla-central/annotate/f38d6df93cad/toolkit/themes/winstripe/global/textbox-aero.css#l7
- */
-
-:root[platform="win"] .hud-filter-box {
- width: 200px;
-}
-
-
-/* NEW CONSOLE STYLES */
-
#output-container {
height: 100%;
}
.webconsole-output-wrapper {
display: flex;
flex-direction: column;
height: 100%;