sync both themes to suite classic theme changes in SeaMonkey 2.25 cycle
[themes.git] / LCARStrek / browser / devtools / webconsole.css
CommitLineData
9099c61d
RK
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/. */
f0c3317f 4
c54ac991
RK
5window {
6 padding: 0;
7}
8
b27cc46e
RK
9/*
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
12 */
13
14.hud-filter-box {
15 width: 200px;
16}
17
18/* === webconsole.inc.css === */
19
8a933f1e
RK
20/* General output styles */
21
b981e4fd
RK
22a {
23 -moz-user-focus: normal;
24 -moz-user-input: enabled;
9162a092 25 cursor: pointer;
569543b3
RK
26 text-decoration: underline;
27}
28
b981e4fd
RK
29/* Workaround for Bug 575675 - FindChildWithRules aRelevantLinkVisited
30 * assertion when loading HTML page with links in XUL iframe */
31*:visited { }
32
33.message {
34 display: flex;
35 flex: 0 0 auto;
36 -moz-margin-start: 6px;
37 -moz-margin-end: 8px;
38 width: calc(100% - 6px - 8px);
f0c3317f
RK
39}
40
b981e4fd
RK
41.message > .timestamp {
42 flex: 0 0 auto;
43 color: #8050B0;
44 margin: 4px 0;
a0885fa2
RK
45}
46
b981e4fd
RK
47.message > .icon {
48 background: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 0, 1, 0, 0) no-repeat;
49 background-position: center 0.5em;
50 flex: 0 0 auto;
a0885fa2 51 margin: 0 6px;
b981e4fd
RK
52 padding: 0 4px;
53 width: 8px;
54}
55
56.message > .body {
57 flex: 1 1 100%;
58 white-space: pre-wrap;
59 word-wrap: break-word;
60 margin-top: 4px;
a0885fa2
RK
61}
62
b981e4fd
RK
63/* The red bubble that shows the number of times a message is repeated */
64.message > .repeats {
65 -moz-user-select: none;
66 flex: 0 0 auto;
67 margin: 2px 6px;
68 padding: 0 6px;
69 height: 1.25em;
38b75e2e
RK
70 color: #000000;
71 background-color: #FF0000;
72 border-radius: 40px;
73 /* font: message-box; */
c29b709d 74 font-size: 0.9em;
38b75e2e
RK
75 font-weight: 600;
76}
77
b981e4fd 78.message > .repeats[value="1"] {
38b75e2e
RK
79 display: none;
80}
81
b981e4fd
RK
82.message > .location {
83 -moz-margin-start: 6px;
84 flex: 0 0 auto;
85 align-self: flex-start;
8a933f1e 86 width: 10em;
b981e4fd 87 margin-top: 4px;
8a933f1e 88 text-align: end;
b27cc46e 89 color: #3333FF;
b981e4fd
RK
90 text-overflow: ellipsis;
91 text-decoration: none;
92 overflow: hidden;
93 white-space: nowrap;
b27cc46e
RK
94}
95
b981e4fd
RK
96.message > .location:hover,
97.message > .location:focus {
98 text-decoration: underline;
1b13529a
RK
99}
100
8a933f1e
RK
101.hud-msg-node[selected="true"] > .webconsole-timestamp,
102.hud-msg-node[selected="true"] > .webconsole-location {
103 color: inherit;
f0c3317f
RK
104}
105
b981e4fd
RK
106#output-wrapper {
107 background: #000000;
108 color: #FF9F00;
109 direction: ltr;
8a933f1e 110 border-bottom: 1px solid #9C9CFF;
b981e4fd
RK
111 overflow: auto;
112}
113
114#output-container {
115 -moz-user-select: text;
116 -moz-box-flex: 1;
117 display: flex;
118 flex-direction: column;
119 align-items: flex-start;
f0c3317f
RK
120}
121
b981e4fd
RK
122.filtered-by-type,
123.filtered-by-string {
706c344c
RK
124 display: none;
125}
126
c4460289
RK
127.hidden-message {
128 display: block;
129 visibility: hidden;
130 height: 0;
131 overflow: hidden;
132}
133
c29b709d 134/* WebConsole colored drops */
941d657f 135
b27cc46e
RK
136.webconsole-filter-button {
137 -moz-user-focus: normal;
138}
139
ed1a91c6 140.webconsole-filter-button[checked] {
c29b709d 141 /* color: white !important; */
72a6fd39
RK
142}
143
c29b709d
RK
144.webconsole-filter-button > .toolbarbutton-menubutton-button:before {
145 content: "";
146 display: inline-block;
147 height: 8px;
148 width: 8px;
149 border-radius: 50%;
150 margin-left: 5px;
151 border-width: 1px;
152 border-style: solid;
e0b5363a
RK
153}
154
155.webconsole-filter-button menuitem {
156 -moz-image-region: auto;
157}
158
159.hud-filter-box {
160 margin-top: 0;
161 margin-bottom: 0;
904e5040
RK
162}
163
8a933f1e 164/* Network styles */
c29b709d 165.webconsole-filter-button[category="net"] > .toolbarbutton-menubutton-button:before {
884ab557 166 background-image: linear-gradient(#BF9B00, #7F6700);
c29b709d 167 border-color: #FFCF00;
72a6fd39
RK
168}
169
b981e4fd 170.message[category=network] > .icon {
884ab557 171 -moz-border-start: solid #FFCF00 6px;
8a933f1e
RK
172}
173
b981e4fd
RK
174.message[category=network][severity=error] > .icon {
175 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 0, 16, 8, 8);
176}
177
178.message[category=network] > .body {
179 display: flex;
180}
181
182.message[category=network] .method {
183 flex: 0 0 auto;
184}
185
186.message[category=network]:not(.navigation-marker) .url {
187 flex: 1 1 auto;
188 /* Make sure the URL is very small initially, let flex change width as needed. */
189 width: 100px;
190 min-width: 5em;
191 white-space: nowrap;
192 overflow: hidden;
193 text-overflow: ellipsis;
194}
195
196.message[category=network] .status {
197 flex: 0 0 auto;
198 -moz-margin-start: 6px;
199}
200
201.message[category=network].mixed-content .url {
202 color: #FF0000;
203}
204
205.message .learn-more-link {
206 color: #3333FF;
207 margin: 0 6px;
8a933f1e
RK
208}
209
210/* CSS styles */
c29b709d 211.webconsole-filter-button[category="css"] > .toolbarbutton-menubutton-button:before {
884ab557 212 background-image: linear-gradient(#7575BF, #4E4E7F);
c29b709d 213 border-color: #9C9CFF;
72a6fd39
RK
214}
215
b981e4fd 216.message[category=cssparser] > .icon {
884ab557 217 -moz-border-start: solid #9C9CFF 6px;
8a933f1e
RK
218}
219
b981e4fd
RK
220.message[category=cssparser][severity=error] > .icon {
221 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 8, 16, 16, 8);
8a933f1e
RK
222}
223
b981e4fd
RK
224.message[category=cssparser][severity=warn] > .icon {
225 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 8, 24, 16, 16);
8a933f1e
RK
226}
227
228/* JS styles */
884ab557
RK
229.webconsole-filter-button[category="js"] > .toolbarbutton-menubutton-button:before {
230 background-image: linear-gradient(#BF7700, #7F4F00);
c29b709d 231 border-color: #FF9F00;
72a6fd39
RK
232}
233
b981e4fd 234.message[category=exception] > .icon {
884ab557 235 -moz-border-start: solid #FF9F00 6px;
8a933f1e
RK
236}
237
b981e4fd
RK
238.message[category=exception][severity=error] > .icon {
239 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 16, 16, 24, 8);
8a933f1e
RK
240}
241
b981e4fd
RK
242.message[category=exception][severity=warn] > .icon {
243 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 16, 24, 24, 16);
8a933f1e
RK
244}
245
246/* Web Developer styles */
c29b709d 247.webconsole-filter-button[category="logging"] > .toolbarbutton-menubutton-button:before {
884ab557 248 background-image: linear-gradient(#5F3B83, #3F2756);
c29b709d 249 border-color: #8050B0;
72a6fd39
RK
250}
251
b981e4fd 252.message[category=console] > .icon {
884ab557 253 -moz-border-start: solid #8050B0 6px;
8a933f1e
RK
254}
255
b981e4fd
RK
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);
8a933f1e
RK
259}
260
b981e4fd
RK
261.message[category=console][severity=warn] > .icon {
262 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 24, 32, 16);
8a933f1e
RK
263}
264
b981e4fd
RK
265.message[category=console][severity=info] > .icon {
266 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 32, 32, 24);
8a933f1e
RK
267}
268
269/* Input and output styles */
b981e4fd
RK
270.message[category=input] > .icon,
271.message[category=output] > .icon {
272 -moz-border-start: solid #A09090 6px;
8a933f1e
RK
273}
274
b981e4fd
RK
275.message[category=input] > .icon {
276 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 40, 32, 32);
a0885fa2
RK
277}
278
b981e4fd
RK
279.message[category=output] > .icon {
280 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 48, 32, 40);
a0885fa2 281}
72a6fd39 282
f0c3317f
RK
283/* JSTerm Styles */
284
e1313d59
RK
285.jsterm-input-node,
286.jsterm-complete-node {
c54ac991
RK
287 -moz-padding-start: 16px;
288 margin: 3px 0 0 0;
e1313d59
RK
289}
290
291.jsterm-input-node {
b27cc46e 292 background: -moz-image-rect(url("chrome://browser/skin/devtools/commandline-icon.png"), 0, 32, 16, 16) no-repeat;
fe524e0c 293 background-position: 0%;
f0c3317f
RK
294}
295
e1313d59
RK
296:-moz-any(.jsterm-input-node,
297 .jsterm-complete-node) > .textbox-input-box > .textbox-textarea {
941d657f 298 overflow-x: hidden;
f0c3317f
RK
299}
300
e1313d59
RK
301.jsterm-complete-node > .textbox-input-box > .textbox-textarea {
302 color: #8050B0;
303}
304
b981e4fd
RK
305.inlined-variables-view .body {
306 display: flex;
307 flex-direction: column;
308}
309
310.inlined-variables-view iframe {
311 display: block;
312 flex: 1;
ed1a91c6
RK
313 margin-bottom: 15px;
314 -moz-margin-end: 15px;
b981e4fd 315 border: 1px solid #9C9CFF;
ed1a91c6
RK
316 border-radius: 4px;
317}
318
319#webconsole-sidebar > tabs {
320 height: 0;
321 border: none;
322}
323
e2734cc7
RK
324/* Security styles */
325
b981e4fd 326.message[category=security] > .icon {
ed1a91c6
RK
327 -moz-border-start: solid #FF0000 6px;
328}
329
330.webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before {
331 background-color: #FF0000;
332 border-color: #FFCF00;
333}
e2734cc7 334
b981e4fd
RK
335.message[category=security][severity=error] > .icon {
336 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 32, 16, 40, 8);
e2734cc7
RK
337}
338
b981e4fd
RK
339.message[category=security][severity=warn] > .icon {
340 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 32, 24, 40, 16);
e2734cc7 341}
fe524e0c
RK
342
343.navigation-marker {
344 color: #000000;
345 background-color: #A09090;
b981e4fd
RK
346 margin-top: 6px;
347 margin-bottom: 6px;
fe524e0c
RK
348 font-size: 0.9em;
349}
350
351.navigation-marker .url {
352 background-color: #000000;
b981e4fd
RK
353 -moz-padding-end: 9px;
354 text-decoration: none;
fe524e0c 355}