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;
85 align-self: flex-start;
90 text-overflow: ellipsis;
91 text-decoration: none;
96 .message > .location:hover,
97 .message > .location:focus {
98 text-decoration: underline;
101 .hud-msg-node[selected="true"] > .webconsole-timestamp,
102 .hud-msg-node[selected="true"] > .webconsole-location {
110 border-bottom: 1px solid #9C9CFF;
115 -moz-user-select: text;
118 flex-direction: column;
119 align-items: flex-start;
123 .filtered-by-string {
134 /* WebConsole colored drops */
136 .webconsole-filter-button {
137 -moz-user-focus: normal;
140 .webconsole-filter-button[checked] {
141 /* color: white !important; */
144 .webconsole-filter-button > .toolbarbutton-menubutton-button:before {
146 display: inline-block;
155 .webconsole-filter-button menuitem {
156 -moz-image-region: auto;
165 .webconsole-filter-button[category="net"] > .toolbarbutton-menubutton-button:before {
166 background-image: linear-gradient(#BF9B00, #7F6700);
167 border-color: #FFCF00;
170 .message[category=network] > .icon {
171 -moz-border-start: solid #FFCF00 6px;
174 .message[category=network][severity=error] > .icon {
175 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 0, 16, 8, 8);
178 .message[category=network] > .body {
182 .message[category=network] .method {
186 .message[category=network]:not(.navigation-marker) .url {
188 /* Make sure the URL is very small initially, let flex change width as needed. */
193 text-overflow: ellipsis;
196 .message[category=network] .status {
198 -moz-margin-start: 6px;
201 .message[category=network].mixed-content .url {
205 .message .learn-more-link {
211 .webconsole-filter-button[category="css"] > .toolbarbutton-menubutton-button:before {
212 background-image: linear-gradient(#7575BF, #4E4E7F);
213 border-color: #9C9CFF;
216 .message[category=cssparser] > .icon {
217 -moz-border-start: solid #9C9CFF 6px;
220 .message[category=cssparser][severity=error] > .icon {
221 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 8, 16, 16, 8);
224 .message[category=cssparser][severity=warn] > .icon {
225 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 8, 24, 16, 16);
229 .webconsole-filter-button[category="js"] > .toolbarbutton-menubutton-button:before {
230 background-image: linear-gradient(#BF7700, #7F4F00);
231 border-color: #FF9F00;
234 .message[category=exception] > .icon {
235 -moz-border-start: solid #FF9F00 6px;
238 .message[category=exception][severity=error] > .icon {
239 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 16, 16, 24, 8);
242 .message[category=exception][severity=warn] > .icon {
243 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 16, 24, 24, 16);
246 /* Web Developer styles */
247 .webconsole-filter-button[category="logging"] > .toolbarbutton-menubutton-button:before {
248 background-image: linear-gradient(#5F3B83, #3F2756);
249 border-color: #8050B0;
252 .message[category=console] > .icon {
253 -moz-border-start: solid #8050B0 6px;
256 .message[category=console][severity=error] > .icon,
257 .message[category=output][severity=error] > .icon {
258 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 16, 32, 8);
261 .message[category=console][severity=warn] > .icon {
262 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 24, 32, 16);
265 .message[category=console][severity=info] > .icon {
266 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 32, 32, 24);
269 /* Input and output styles */
270 .message[category=input] > .icon,
271 .message[category=output] > .icon {
272 -moz-border-start: solid #A09090 6px;
275 .message[category=input] > .icon {
276 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 40, 32, 32);
279 .message[category=output] > .icon {
280 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 48, 32, 40);
286 .jsterm-complete-node {
287 -moz-padding-start: 16px;
292 background: -moz-image-rect(url("chrome://browser/skin/devtools/commandline-icon.png"), 0, 32, 16, 16) no-repeat;
293 background-position: 0%;
296 :-moz-any(.jsterm-input-node,
297 .jsterm-complete-node) > .textbox-input-box > .textbox-textarea {
301 .jsterm-complete-node > .textbox-input-box > .textbox-textarea {
305 .inlined-variables-view .body {
307 flex-direction: column;
310 .inlined-variables-view iframe {
314 -moz-margin-end: 15px;
315 border: 1px solid #9C9CFF;
319 #webconsole-sidebar > tabs {
324 /* Security styles */
326 .message[category=security] > .icon {
327 -moz-border-start: solid #FF0000 6px;
330 .webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before {
331 background-color: #FF0000;
332 border-color: #FFCF00;
335 .message[category=security][severity=error] > .icon {
336 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 32, 16, 40, 8);
339 .message[category=security][severity=warn] > .icon {
340 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 32, 24, 40, 16);
345 background-color: #A09090;
351 .navigation-marker .url {
352 background-color: #000000;
353 -moz-padding-end: 9px;
354 text-decoration: none;