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 {
117 border-bottom: 1px solid #9C9CFF;
122 -moz-user-select: text;
125 flex-direction: column;
126 align-items: flex-start;
129 #output-container.hideTimestamps > .message > .timestamp {
134 .filtered-by-string {
145 /* WebConsole colored drops */
147 .webconsole-filter-button {
148 -moz-user-focus: normal;
151 .webconsole-filter-button[checked] {
152 /* color: white !important; */
155 .webconsole-filter-button > .toolbarbutton-menubutton-button:before {
157 display: inline-block;
166 .webconsole-filter-button menuitem {
167 -moz-image-region: auto;
176 .webconsole-filter-button[category="net"] > .toolbarbutton-menubutton-button:before {
177 background-image: linear-gradient(#BF9B00, #7F6700);
178 border-color: #FFCF00;
181 .message[category=network] > .icon {
182 -moz-border-start: solid #FFCF00 6px;
185 .message[category=network][severity=error] > .icon {
186 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 0, 16, 8, 8);
189 .message[category=network] > .body {
193 .message[category=network] .method {
197 .message[category=network]:not(.navigation-marker) .url {
199 /* Make sure the URL is very small initially, let flex change width as needed. */
204 text-overflow: ellipsis;
207 .message[category=network] .status {
209 -moz-margin-start: 6px;
212 .message[category=network].mixed-content .url {
216 .message .learn-more-link {
222 .webconsole-filter-button[category="css"] > .toolbarbutton-menubutton-button:before {
223 background-image: linear-gradient(#7575BF, #4E4E7F);
224 border-color: #9C9CFF;
227 .message[category=cssparser] > .icon {
228 -moz-border-start: solid #9C9CFF 6px;
231 .message[category=cssparser][severity=error] > .icon {
232 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 8, 16, 16, 8);
235 .message[category=cssparser][severity=warn] > .icon {
236 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 8, 24, 16, 16);
240 .webconsole-filter-button[category="js"] > .toolbarbutton-menubutton-button:before {
241 background-image: linear-gradient(#BF7700, #7F4F00);
242 border-color: #FF9F00;
245 .message[category=exception] > .icon {
246 -moz-border-start: solid #FF9F00 6px;
249 .message[category=exception][severity=error] > .icon {
250 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 16, 16, 24, 8);
253 .message[category=exception][severity=warn] > .icon {
254 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 16, 24, 24, 16);
257 /* Web Developer styles */
258 .webconsole-filter-button[category="logging"] > .toolbarbutton-menubutton-button:before {
259 background-image: linear-gradient(#5F3B83, #3F2756);
260 border-color: #8050B0;
263 .message[category=console] > .icon {
264 -moz-border-start: solid #8050B0 6px;
267 .message[category=console][severity=error] > .icon,
268 .message[category=output][severity=error] > .icon {
269 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 16, 32, 8);
272 .message[category=console][severity=warn] > .icon {
273 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 24, 32, 16);
276 .message[category=console][severity=info] > .icon {
277 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 32, 32, 24);
280 /* Input and output styles */
281 .message[category=input] > .icon,
282 .message[category=output] > .icon {
283 -moz-border-start: solid #A09090 6px;
286 .message[category=input] > .icon {
287 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 40, 32, 32);
290 .message[category=output] > .icon {
291 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 48, 32, 40);
297 .jsterm-complete-node {
298 -moz-padding-start: 16px;
303 background: -moz-image-rect(url("chrome://browser/skin/devtools/commandline-icon.png"), 0, 32, 16, 16) no-repeat;
304 background-position: 0%;
307 :-moz-any(.jsterm-input-node,
308 .jsterm-complete-node) > .textbox-input-box > .textbox-textarea {
312 .jsterm-complete-node > .textbox-input-box > .textbox-textarea {
316 .inlined-variables-view .body {
318 flex-direction: column;
321 .inlined-variables-view iframe {
325 -moz-margin-end: 15px;
326 border: 1px solid #9C9CFF;
330 #webconsole-sidebar > tabs {
335 /* Security styles */
337 .message[category=security] > .icon {
338 -moz-border-start: solid #FF0000 6px;
341 .webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before {
342 background-color: #FF0000;
343 border-color: #FFCF00;
346 .message[category=security][severity=error] > .icon {
347 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 32, 16, 40, 8);
350 .message[category=security][severity=warn] > .icon {
351 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 32, 24, 40, 16);
356 background-color: #A09090;
362 .navigation-marker .url {
363 background-color: #000000;
364 -moz-padding-end: 9px;
365 text-decoration: none;