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 {
119 border-bottom: 1px solid #9C9CFF;
124 -moz-user-select: text;
127 flex-direction: column;
128 align-items: flex-start;
132 .filtered-by-string {
143 /* WebConsole colored drops */
145 .webconsole-filter-button {
146 -moz-user-focus: normal;
149 .webconsole-filter-button[checked] {
150 /* color: white !important; */
153 .webconsole-filter-button > .toolbarbutton-menubutton-button:before {
155 display: inline-block;
164 .webconsole-filter-button menuitem {
165 -moz-image-region: auto;
174 .webconsole-filter-button[category="net"] > .toolbarbutton-menubutton-button:before {
175 background-image: linear-gradient(#BF9B00, #7F6700);
176 border-color: #FFCF00;
179 .message[category=network] > .icon {
180 -moz-border-start: solid #FFCF00 6px;
183 .message[category=network][severity=error] > .icon {
184 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 0, 16, 8, 8);
187 .message[category=network] > .body {
191 .message[category=network] .method {
195 .message[category=network]:not(.navigation-marker) .url {
197 /* Make sure the URL is very small initially, let flex change width as needed. */
202 text-overflow: ellipsis;
205 .message[category=network] .status {
207 -moz-margin-start: 6px;
210 .message[category=network].mixed-content .url {
214 .message .learn-more-link {
220 .webconsole-filter-button[category="css"] > .toolbarbutton-menubutton-button:before {
221 background-image: linear-gradient(#7575BF, #4E4E7F);
222 border-color: #9C9CFF;
225 .message[category=cssparser] > .icon {
226 -moz-border-start: solid #9C9CFF 6px;
229 .message[category=cssparser][severity=error] > .icon {
230 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 8, 16, 16, 8);
233 .message[category=cssparser][severity=warn] > .icon {
234 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 8, 24, 16, 16);
238 .webconsole-filter-button[category="js"] > .toolbarbutton-menubutton-button:before {
239 background-image: linear-gradient(#BF7700, #7F4F00);
240 border-color: #FF9F00;
243 .message[category=exception] > .icon {
244 -moz-border-start: solid #FF9F00 6px;
247 .message[category=exception][severity=error] > .icon {
248 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 16, 16, 24, 8);
251 .message[category=exception][severity=warn] > .icon {
252 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 16, 24, 24, 16);
255 /* Web Developer styles */
256 .webconsole-filter-button[category="logging"] > .toolbarbutton-menubutton-button:before {
257 background-image: linear-gradient(#5F3B83, #3F2756);
258 border-color: #8050B0;
261 .message[category=console] > .icon {
262 -moz-border-start: solid #8050B0 6px;
265 .message[category=console][severity=error] > .icon,
266 .message[category=output][severity=error] > .icon {
267 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 16, 32, 8);
270 .message[category=console][severity=warn] > .icon {
271 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 24, 32, 16);
274 .message[category=console][severity=info] > .icon {
275 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 32, 32, 24);
278 /* Input and output styles */
279 .message[category=input] > .icon,
280 .message[category=output] > .icon {
281 -moz-border-start: solid #A09090 6px;
284 .message[category=input] > .icon {
285 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 40, 32, 32);
288 .message[category=output] > .icon {
289 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 48, 32, 40);
295 .jsterm-complete-node {
296 -moz-padding-start: 16px;
301 background: -moz-image-rect(url("chrome://browser/skin/devtools/commandline-icon.png"), 0, 32, 16, 16) no-repeat;
302 background-position: 0%;
305 :-moz-any(.jsterm-input-node,
306 .jsterm-complete-node) > .textbox-input-box > .textbox-textarea {
310 .jsterm-complete-node > .textbox-input-box > .textbox-textarea {
314 .inlined-variables-view .body {
316 flex-direction: column;
319 .inlined-variables-view iframe {
323 -moz-margin-end: 15px;
324 border: 1px solid #9C9CFF;
328 #webconsole-sidebar > tabs {
333 /* Security styles */
335 .message[category=security] > .icon {
336 -moz-border-start: solid #FF0000 6px;
339 .webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before {
340 background-color: #FF0000;
341 border-color: #FFCF00;
344 .message[category=security][severity=error] > .icon {
345 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 32, 16, 40, 8);
348 .message[category=security][severity=warn] > .icon {
349 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 32, 24, 40, 16);
354 background-color: #A09090;
360 .navigation-marker .url {
361 background-color: #000000;
362 -moz-padding-end: 9px;
363 text-decoration: none;