* 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;
}
width: 200px;
}
-/* === BEGIN webconsole.inc.css === */
-
/* General output styles */
a {
.message {
display: flex;
- flex: none;
padding: 0 7px;
width: 100%;
box-sizing: border-box;
.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;
}
.message > .message-body-wrapper {
- flex: 1 1 100%;
+ flex: auto;
+ min-width: 0px;
margin: 3px;
}
}
.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 {
+ direction: rtl;
white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
}
-.message-location > .line-number {
- flex: none;
-}
-
-.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 {
}
.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);
}
/* 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-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);
}
.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 {
.message[category=network] > .message-body {
display: flex;
+ flex-wrap: wrap;
}
.message[category=network] .method {
.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;
}
font-size: 10px;
padding: 2px;
line-height: 10px;
- -moz-margin-end: 1ex;
+ margin-inline-start: 3px;
+ margin-inline-end: 1ex;
}
/* CSS styles */
}
.message[category=cssparser] > .indent {
- -moz-border-end: solid #9C9CFF 6px;
+ border-inline-end: solid #9C9CFF 6px;
}
.message[category=cssparser][severity=error] > .icon::before {
}
.message[category=exception] > .indent {
- -moz-border-end: solid #FF9F00 6px;
+ border-inline-end: solid #FF9F00 6px;
}
.message[category=exception][severity=error] > .icon::before {
}
.message[category=console] > .indent {
- -moz-border-end: solid #8050B0 6px;
+ border-inline-end: solid #8050B0 6px;
}
.message[category=console][severity=error] > .icon::before,
}
.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 {
}
/* 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 {
}
.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 {
/* 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 {
}
.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;
}
.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] {
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) {
.webconsole-filter-button > .toolbarbutton-menubutton-button:before {
width: 12px;
height: 12px;
- margin-left: 1px;
+ margin-inline-start: 1px;
}
.toolbarbutton-menubutton-dropmarker {
margin: 0px;
*/
}
-/* === 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;
+}