1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
10 * This hardcoded width likely due to a toolkit Windows specific bug.
11 * See http://hg.mozilla.org/mozilla-central/annotate/f38d6df93cad/toolkit/themes/winstripe/global/textbox-aero.css#l7
18 /* === webconsole.inc.css === */
20 /* General output styles */
23 -moz-user-focus: normal;
24 -moz-user-input: enabled;
26 text-decoration: underline;
29 /* Workaround for Bug 575675 - FindChildWithRules aRelevantLinkVisited
30 * assertion when loading HTML page with links in XUL iframe */
36 -moz-margin-start: 6px;
38 width: calc(100% - 6px - 8px);
41 .message > .timestamp {
48 background: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 0, 1, 0, 0) no-repeat;
49 background-position: center 0.5em;
58 white-space: pre-wrap;
59 word-wrap: break-word;
63 /* The red bubble that shows the number of times a message is repeated */
65 -moz-user-select: none;
71 background-color: #FF0000;
73 /* font: message-box; */
78 .message > .repeats[value="1"] {
82 .message > .location {
83 -moz-margin-start: 6px;
86 align-self: flex-start;
87 justify-content: flex-end;
91 text-decoration: none;
94 .message > .location:hover,
95 .message > .location:focus {
96 text-decoration: underline;
99 .message > .location > .filename {
100 text-overflow: ellipsis;
106 .message > .location > .line-number {
110 .hud-msg-node[selected="true"] > .webconsole-timestamp,
111 .hud-msg-node[selected="true"] > .webconsole-location {
115 .jsterm-input-container {
116 border-top-width: 1px;
117 border-top-style: solid;
126 -moz-user-select: text;
129 flex-direction: column;
130 align-items: flex-start;
133 #output-container.hideTimestamps > .message > .timestamp {
138 .filtered-by-string {
149 /* WebConsole colored drops */
151 .webconsole-filter-button {
152 -moz-user-focus: normal;
155 .webconsole-filter-button[checked] {
156 /* color: white !important; */
159 .webconsole-filter-button > .toolbarbutton-menubutton-button:before {
161 display: inline-block;
170 .webconsole-filter-button menuitem {
171 -moz-image-region: auto;
180 .webconsole-filter-button[category="net"] > .toolbarbutton-menubutton-button:before {
181 background-image: linear-gradient(#BF9B00, #7F6700);
182 border-color: #FFCF00;
185 .message[category=network] > .icon {
186 -moz-border-start: solid #FFCF00 6px;
189 .message[category=network][severity=error] > .icon {
190 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 0, 16, 8, 8);
193 .message[category=network] > .body {
197 .message[category=network] .method {
201 .message[category=network]:not(.navigation-marker) .url {
203 /* Make sure the URL is very small initially, let flex change width as needed. */
208 text-overflow: ellipsis;
211 .message[category=network] .status {
213 -moz-margin-start: 6px;
216 .message[category=network].mixed-content .url {
220 .message .learn-more-link {
226 .webconsole-filter-button[category="css"] > .toolbarbutton-menubutton-button:before {
227 background-image: linear-gradient(#7575BF, #4E4E7F);
228 border-color: #9C9CFF;
231 .message[category=cssparser] > .icon {
232 -moz-border-start: solid #9C9CFF 6px;
235 .message[category=cssparser][severity=error] > .icon {
236 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 8, 16, 16, 8);
239 .message[category=cssparser][severity=warn] > .icon {
240 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 8, 24, 16, 16);
244 .webconsole-filter-button[category="js"] > .toolbarbutton-menubutton-button:before {
245 background-image: linear-gradient(#BF7700, #7F4F00);
246 border-color: #FF9F00;
249 .message[category=exception] > .icon {
250 -moz-border-start: solid #FF9F00 6px;
253 .message[category=exception][severity=error] > .icon {
254 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 16, 16, 24, 8);
257 .message[category=exception][severity=warn] > .icon {
258 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 16, 24, 24, 16);
261 /* Web Developer styles */
262 .webconsole-filter-button[category="logging"] > .toolbarbutton-menubutton-button:before {
263 background-image: linear-gradient(#5F3B83, #3F2756);
264 border-color: #8050B0;
267 .message[category=console] > .icon {
268 -moz-border-start: solid #8050B0 6px;
271 .message[category=console][severity=error] > .icon,
272 .message[category=output][severity=error] > .icon {
273 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 16, 32, 8);
276 .message[category=console][severity=warn] > .icon {
277 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 24, 32, 16);
280 .message[category=console][severity=info] > .icon {
281 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 32, 32, 24);
284 /* Input and output styles */
285 .message[category=input] > .icon,
286 .message[category=output] > .icon {
287 -moz-border-start: solid #A09090 6px;
290 .message[category=input] > .icon {
291 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 40, 32, 32);
294 .message[category=output] > .icon {
295 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 48, 32, 40);
301 .jsterm-complete-node {
302 -moz-padding-start: 16px;
304 background-color: transparent;
308 background: -moz-image-rect(url("chrome://browser/skin/devtools/commandline-icon.png"), 0, 32, 16, 16) no-repeat;
311 :-moz-any(.jsterm-input-node,
312 .jsterm-complete-node) > .textbox-input-box > .textbox-textarea {
316 .inlined-variables-view .body {
318 flex-direction: column;
321 .inlined-variables-view iframe {
326 -moz-margin-end: 15px;
327 border: 1px solid #9C9CFF;
331 #webconsole-sidebar > tabs {
336 /* Security styles */
338 .message[category=security] > .icon {
339 -moz-border-start: solid #FF0000 6px;
342 .webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before {
343 background-color: #FF0000;
344 border-color: #FFCF00;
347 .message[category=security][severity=error] > .icon {
348 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 32, 16, 40, 8);
351 .message[category=security][severity=warn] > .icon {
352 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 32, 24, 40, 16);
357 background-color: #A09090;
363 .navigation-marker .url {
364 -moz-padding-end: 9px;
365 text-decoration: none;
368 /* Replace these values with CSS variables as available */
369 .theme-dark .jsterm-input-container {
370 background-color: #000000; /* tabToolbarBackgroundColor */
371 border-color: #9C9CFF; /* mainBackgroundColor */
374 .theme-dark .jsterm-input-node {
375 color: #E7ADE7; /* textColor */
378 .theme-dark .jsterm-complete-node {
379 color: #A09090; /* commentColor */
382 .theme-dark .navigation-marker .url {
383 background: #000000; /* mainBackgroundColor */
386 .theme-dark .inlined-variables-view iframe {
387 border-color: #A09090;
390 /* Replace these values with CSS variables as available */
391 .theme-light .jsterm-input-container {
392 background-color: #000000; /* tabToolbarBackgroundColor */
393 border-color: #9C9CFF; /* mainBackgroundColor */
396 .theme-light .jsterm-input-node {
397 color: #E7ADE7; /* textColor */
400 .theme-light .jsterm-complete-node {
401 color: #A09090; /* commentColor */
404 .theme-light .navigation-marker .url {
405 background: #000000; /* mainBackgroundColor */
408 .theme-light .inlined-variables-view iframe {
409 border-color: #A09090;