* 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 {
+ --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 {
padding: 0;
}
width: 200px;
}
-/* === BEGIN webconsole.inc.css === */
-
/* General output styles */
a {
.message > .prefix,
.message > .timestamp {
flex: none;
- color: #8050B0;
+ color: var(--theme-comment);
margin: 3px 6px 0 0;
}
.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;
text-decoration: underline;
}
-.message-location > .filename {
- text-overflow: ellipsis;
- text-align: end;
- overflow: hidden;
- white-space: nowrap;
-}
-
-.message-location > .line-number {
- flex: none;
-}
-
-.hud-msg-node[selected="true"] > .webconsole-timestamp,
-.hud-msg-node[selected="true"] > .webconsole-location {
- color: inherit;
+.message-location > .frame-link .frame-link-source {
+ width: 10em;
}
.message-flex-body {
margin-top: 0;
}
-.jsterm-input-container {
- border-top-width: 1px;
- border-top-style: solid;
-}
-
#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;
/* WebConsole colored drops */
-.hud-console-filter-toolbar toolbarbutton > .toolbarbutton-text {
- padding: 2px 2px 3px;
-}
-
.webconsole-filter-button {
-moz-user-focus: normal;
}
height: 8px;
width: 8px;
border-radius: 50%;
- -moz-margin-start: 2px;
- -moz-margin-end: 2px;
+ margin-left: 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);
}
.message[category=network] > .indent {
- -moz-border-end: solid #FF0000 6px;
+ -moz-border-end: solid var(--theme-body-color-alt) 6px;
}
.message[category=network][severity=error] > .icon::before {
.message[category=network] > .message-body {
display: flex;
+ flex-wrap: wrap;
}
.message[category=network] .method {
}
.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;
}
font-size: 10px;
padding: 2px;
line-height: 10px;
- -moz-margin-end: 1ex;
+ margin-inline-start: 3px;
+ margin-inline-end: 1ex;
}
/* CSS styles */
}
/* 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 0 0 16px;
+ -moz-appearance: none;
background-color: transparent;
}
+.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(--command-line-image);
background-repeat: no-repeat;
background-size: 16px 16px;
+ color: var(--theme-content-color1);
}
@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-image: var(--command-line-image-2x);
}
}
}
.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;
+ border: 1px solid var(--theme-splitter-color);
+ border-radius: 3px;
}
#webconsole-sidebar > tabs {
.navigation-marker .url {
-moz-padding-end: 9px;
text-decoration: none;
+ background: var(--theme-body-background);
}
.stacktrace {
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;
}
.message .theme-twisty {
display: inline-block;
vertical-align: middle;
- margin: 0 3px 0 0;
+ margin: 3px 0 0 0;
+ flex-shrink: 0;
}
.stacktrace li {
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;
.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) {
*/
}
-/* === 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;
+}