Commit | Line | Data |
---|---|---|
eec397be RK |
1 | /* -*- Mode: javascript; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | /* vim: set ft=javascript ts=2 et sw=2 tw=80: */ | |
9099c61d RK |
3 | /* This Source Code Form is subject to the terms of the Mozilla Public |
4 | * License, v. 2.0. If a copy of the MPL was not distributed with this | |
5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
eec397be RK |
6 | |
7 | window { | |
8 | padding: 0; | |
9 | } | |
10 | ||
11 | #body { | |
7bc075b6 | 12 | background-color: #000000; |
eec397be RK |
13 | } |
14 | ||
eec397be RK |
15 | /** |
16 | * Debugger content | |
17 | */ | |
18 | ||
b8384c33 | 19 | #chrome-globals, #sources { |
c29b709d | 20 | min-width: 150px; |
37953ab4 RK |
21 | } |
22 | ||
889649fd RK |
23 | /** |
24 | * This hardcoded width likely due to a toolkit Windows specific bug. | |
25 | * See http://hg.mozilla.org/mozilla-central/annotate/f38d6df93cad/toolkit/themes/winstripe/global/textbox-aero.css#l7 | |
26 | */ | |
b8384c33 | 27 | #searchbox { |
889649fd RK |
28 | width: 200px; |
29 | } | |
30 | ||
eec397be RK |
31 | /** |
32 | * Lists and headers | |
33 | */ | |
34 | ||
35 | .list-item { | |
36 | padding: 2px; | |
eec397be RK |
37 | } |
38 | ||
889649fd RK |
39 | .list-item:not(.selected):not(.empty):hover { |
40 | /* background: #cddae5; */ | |
41 | } | |
42 | ||
eec397be RK |
43 | .list-item.selected { |
44 | background: #008484; | |
45 | color: #FFCF00; | |
46 | } | |
47 | ||
48 | .list-item.empty { | |
49 | color: #8050B0; | |
889649fd | 50 | /* padding: 4px; */ |
eec397be RK |
51 | } |
52 | ||
53 | /** | |
b8384c33 | 54 | * Sources searching |
c29b709d RK |
55 | */ |
56 | ||
57 | #globalsearch { | |
58 | background-color: #000000; | |
c29b709d RK |
59 | max-height: 150px; |
60 | } | |
61 | ||
b8384c33 | 62 | .dbg-source-results:not(:last-child) { |
c29b709d RK |
63 | border-bottom: 1px dotted #9C9CFF; |
64 | } | |
65 | ||
66 | .dbg-results-header { | |
67 | -moz-padding-start: 6px; | |
68 | } | |
69 | ||
b8384c33 | 70 | .dbg-results-header .location { |
c29b709d RK |
71 | font-weight: 600; |
72 | } | |
73 | ||
74 | .dbg-results-header .match-count { | |
75 | -moz-padding-start: 6px; | |
b8384c33 | 76 | color: #8050B0; |
c29b709d RK |
77 | } |
78 | ||
79 | .dbg-results-container .line-number { | |
80 | background: #000000; | |
b8384c33 | 81 | min-width: 40px; |
c29b709d RK |
82 | -moz-padding-end: 4px; |
83 | -moz-border-end: 1px dotted #9C9CFF; | |
84 | text-align: end; | |
85 | font: 8pt monospace; | |
b8384c33 | 86 | color: #FF9F00; |
c29b709d RK |
87 | } |
88 | ||
89 | .dbg-results-container .line-contents { | |
90 | -moz-padding-start: 4px; | |
91 | font: 8pt monospace; | |
92 | } | |
93 | ||
94 | .dbg-results-container .line-contents:hover { | |
95 | background: #000000; | |
96 | } | |
97 | ||
98 | .dbg-results-container .line-contents > .string { | |
99 | padding: 1px; | |
100 | } | |
101 | ||
102 | .dbg-results-container .line-contents > .string[match=true] { | |
103 | background: #E7ADE7; | |
104 | color: #000000; | |
105 | padding: 0; | |
106 | border: 1px solid #9C9CFF; | |
107 | border-radius: 4px; | |
108 | cursor: pointer; | |
b8384c33 | 109 | transition: transform 0.25s ease-in-out; |
c29b709d RK |
110 | } |
111 | ||
112 | .dbg-results-container .line-contents > .string[match=true][focused] { | |
113 | transition-duration: 0.1s; | |
114 | transform: scale(1.75, 1.75); | |
115 | } | |
116 | ||
b8384c33 RK |
117 | #searchbox-panel .description { |
118 | margin: -6px 0 8px; | |
7bc075b6 RK |
119 | } |
120 | ||
b8384c33 | 121 | #searchbox-panel button.operator { |
7bc075b6 RK |
122 | min-width: 0; |
123 | margin: 0; | |
124 | padding: 0; | |
125 | font: 9pt "Liberation Mono", Consolas, "Courier New", monospace; | |
126 | } | |
127 | ||
b8384c33 | 128 | #searchbox-panel label.operator { |
7bc075b6 RK |
129 | -moz-padding-start: 6px; |
130 | padding-bottom: 1px; | |
131 | } | |
132 | ||
c29b709d | 133 | /** |
b8384c33 | 134 | * Stack frames and breakpoints pane |
c29b709d RK |
135 | */ |
136 | ||
137 | #stackframes\+breakpoints { | |
138 | background-color: #000000; | |
139 | min-width: 50px; | |
140 | } | |
141 | ||
142 | #stackframes\+breakpoints[animated] { | |
b8384c33 | 143 | transition: margin 0.25s ease-in-out; |
c29b709d RK |
144 | } |
145 | ||
146 | /** | |
147 | * Stack frames view | |
eec397be RK |
148 | */ |
149 | ||
150 | #stackframes { | |
151 | /* background-color: white; */ | |
152 | } | |
153 | ||
154 | .dbg-stackframe { | |
155 | -moz-padding-start: 4px; | |
156 | -moz-padding-end: 4px; | |
157 | } | |
158 | ||
159 | .dbg-stackframe-name { | |
37953ab4 | 160 | -moz-padding-end: 4px; |
eec397be RK |
161 | font-weight: 600; |
162 | } | |
163 | ||
889649fd RK |
164 | /** |
165 | * Breakpoints view | |
166 | */ | |
167 | ||
168 | #breakpoints { | |
169 | background-color: #000000; | |
170 | } | |
171 | ||
172 | .dbg-breakpoint-info { | |
173 | font-weight: 600; | |
174 | } | |
175 | ||
176 | .dbg-breakpoint-text { | |
177 | font: 12px "Liberation Mono", Consolas, "Courier New", monospace; | |
178 | } | |
179 | ||
eec397be | 180 | /** |
b8384c33 | 181 | * Variables view |
eec397be RK |
182 | */ |
183 | ||
184 | #variables { | |
185 | /* background-color: white; */ | |
c29b709d RK |
186 | min-width: 50px; |
187 | } | |
188 | ||
189 | #variables[animated] { | |
b8384c33 | 190 | transition: margin 0.25s ease-in-out; |
eec397be RK |
191 | } |
192 | ||
193 | /** | |
194 | * Scope element | |
195 | */ | |
196 | ||
197 | .scope > .title { | |
eec397be RK |
198 | background: #E7ADE7; |
199 | border-radius: 5px; | |
200 | color: #000000; | |
201 | } | |
202 | ||
eec397be RK |
203 | .scope > .details { |
204 | -moz-margin-start: 2px; | |
205 | -moz-margin-end: 2px; | |
206 | } | |
207 | ||
b8384c33 RK |
208 | .scope > .details.nonenum:not(:empty) { |
209 | border-top: 1px solid #9C9CFF; | |
210 | } | |
211 | ||
eec397be RK |
212 | /** |
213 | * Variable element | |
214 | */ | |
215 | ||
216 | .variable { | |
217 | -moz-margin-start: 1px; | |
218 | -moz-margin-end: 1px; | |
71a617ff | 219 | transition: background 1s ease-in-out; |
85cfb236 RK |
220 | background: #000000; |
221 | } | |
222 | ||
c29b709d RK |
223 | .variable:not(:last-child) { |
224 | border-bottom: 1px dotted #008484; | |
225 | border-radius: 8px; | |
226 | } | |
227 | ||
228 | .variable:last-child { | |
229 | margin-bottom: 2px; | |
230 | } | |
231 | ||
85cfb236 | 232 | .variable[changed] { |
71a617ff | 233 | transition-duration: 0.4s; |
85cfb236 RK |
234 | background: #FFCF00; |
235 | } | |
236 | ||
b8384c33 RK |
237 | .variable > .title > .name { |
238 | color: #FF9F00; | |
239 | font-weight: 600; | |
85cfb236 RK |
240 | } |
241 | ||
b8384c33 RK |
242 | .variable > .title > .value { |
243 | -moz-padding-start: 6px; | |
eec397be RK |
244 | } |
245 | ||
b8384c33 RK |
246 | .variable:not([non-header]) > .details { |
247 | -moz-margin-start: 10px; | |
eec397be RK |
248 | } |
249 | ||
250 | /** | |
251 | * Property element | |
252 | */ | |
253 | ||
b8384c33 RK |
254 | .property { |
255 | transition: background 1s ease-in-out; | |
256 | background: #000000; | |
257 | border-radius: 8px; | |
258 | } | |
259 | ||
260 | .property[changed] { | |
261 | transition-duration: 0.4s; | |
262 | background: rgba(255, 207, 0, 0.8); | |
eec397be RK |
263 | } |
264 | ||
b8384c33 | 265 | .property > .title > .name { |
85cfb236 | 266 | color: #E7ADE7; |
eec397be RK |
267 | } |
268 | ||
b8384c33 RK |
269 | .property > .title > .value { |
270 | -moz-padding-start: 6px; | |
271 | } | |
272 | ||
273 | .property:not([non-header]) > .details { | |
274 | -moz-margin-start: 10px; | |
275 | } | |
276 | ||
eec397be | 277 | /** |
37953ab4 RK |
278 | * Non enumerable, configurable and writable variables and properties. |
279 | */ | |
280 | ||
b8384c33 RK |
281 | .variable[proto] > .title > .name, |
282 | .property[proto] > .title > .name, | |
283 | .variable[non-enumerable]:not([self]):not([exception]) > .title > .name, | |
284 | .property[non-enumerable]:not([self]):not([exception]) > .title > .name { | |
37953ab4 RK |
285 | opacity: 0.5; |
286 | } | |
287 | ||
288 | .variable[non-configurable] > .title > .name, | |
b8384c33 | 289 | .property[non-configurable] > .title > .name { |
37953ab4 RK |
290 | border-bottom: 1px dashed #9C9CFF; |
291 | } | |
292 | ||
b8384c33 RK |
293 | .variable[non-configurable][non-writable] > .title > .name, |
294 | .property[non-configurable][non-writable] > .title > .name { | |
37953ab4 RK |
295 | border-bottom: 1px dashed #FF0000; |
296 | } | |
297 | ||
298 | .variable[non-writable] > .title:after, | |
299 | .property[non-writable] > .title:after { | |
300 | content: " "; | |
301 | display: inline-block; | |
302 | width: 16px; | |
303 | height: 16px; | |
304 | background: url("chrome://browser/skin/identity-icons-https.png") no-repeat; | |
305 | opacity: 0.5; | |
306 | } | |
307 | ||
b8384c33 RK |
308 | /* |
309 | @media (min-resolution: 2dppx) { | |
310 | .variable[non-writable] > .title:after, | |
311 | .property[non-writable] > .title:after { | |
312 | background-image: url("chrome://browser/skin/identity-icons-https@2x.png"); | |
313 | background-size: 32px; | |
314 | } | |
315 | } | |
316 | */ | |
317 | ||
318 | .variable[exception] > .title > .name, | |
319 | .property[exception] > .title > .name { | |
320 | color: #FF0000; | |
321 | } | |
322 | ||
323 | .variable > tooltip > label, | |
324 | .property > tooltip > label { | |
889649fd RK |
325 | margin: 0 2px 0 2px; |
326 | } | |
327 | ||
b8384c33 RK |
328 | .variable[non-enumerable] > tooltip > label[value="enumerable"], |
329 | .property[non-enumerable] > tooltip > label[value="enumerable"], | |
330 | .variable[non-configurable] > tooltip > label[value="configurable"], | |
331 | .property[non-configurable] > tooltip > label[value="configurable"], | |
332 | .variable[non-writable] > tooltip > label[value="writable"], | |
333 | .property[non-writable] > tooltip > label[value="writable"] { | |
889649fd RK |
334 | text-decoration: line-through; |
335 | } | |
336 | ||
37953ab4 | 337 | /** |
b8384c33 RK |
338 | * Variables and properties searching |
339 | */ | |
340 | ||
341 | #variables .devtools-searchinput { | |
342 | min-height: 24px; | |
343 | } | |
344 | ||
345 | .variable[non-match], | |
346 | .property[non-match] { | |
347 | border: none; | |
348 | margin: 0; | |
349 | } | |
350 | ||
351 | /** | |
352 | * Token value colors | |
eec397be RK |
353 | */ |
354 | ||
355 | .token-undefined { | |
eec397be RK |
356 | color: #8050B0; |
357 | } | |
358 | ||
359 | .token-null { | |
eec397be RK |
360 | color: #008484; |
361 | } | |
362 | ||
363 | .token-boolean { | |
eec397be RK |
364 | color: #FFCF00; |
365 | } | |
366 | ||
367 | .token-number { | |
eec397be RK |
368 | color: #E7ADE7; |
369 | } | |
370 | ||
371 | .token-string { | |
eec397be RK |
372 | color: #9C9CFF; |
373 | } | |
374 | ||
375 | .token-other { | |
eec397be RK |
376 | color: #FF9F00; |
377 | } | |
378 | ||
379 | /** | |
380 | * Expand/collapse arrow | |
381 | */ | |
382 | ||
383 | .arrow { | |
384 | width: 9px; | |
385 | height: 9px; | |
386 | -moz-margin-start: 5px; | |
387 | -moz-margin-end: 5px; | |
85cfb236 | 388 | margin-top: -2px; |
eec397be RK |
389 | background: url("chrome://global/skin/tree/twisty-closed.gif") center center no-repeat; |
390 | } | |
391 | ||
392 | .arrow[open] { | |
393 | background-image: url("chrome://global/skin/tree/twisty-open.gif"); | |
394 | } | |
395 | ||
396 | .scope > .title > .arrow { | |
397 | background-image: url("chrome://global/skin/tree/twisty-closed-selected.gif"); | |
398 | } | |
399 | ||
400 | .scope > .title > .arrow[open] { | |
401 | background-image: url("chrome://global/skin/tree/twisty-open-selected.gif"); | |
402 | } | |
403 | ||
b8384c33 RK |
404 | .arrow[invisible] { |
405 | visibility: hidden; | |
406 | } | |
407 | ||
eec397be RK |
408 | /** |
409 | * Animations | |
410 | */ | |
411 | ||
b8384c33 RK |
412 | #variables .details[open][animated], |
413 | #globalsearch .dbg-results-container[open][animated] { | |
c29b709d RK |
414 | animation-duration: 0.25s; |
415 | animation-name: showblock; | |
eec397be RK |
416 | } |
417 | ||
c29b709d | 418 | @keyframes showblock { |
eec397be RK |
419 | from { |
420 | opacity: 0; | |
71a617ff RK |
421 | transform-origin: top; |
422 | transform: scaleY(0); | |
eec397be RK |
423 | } |
424 | ||
425 | to { | |
426 | opacity: 1; | |
71a617ff RK |
427 | transform-origin: top; |
428 | transform: scaleY(1); | |
eec397be RK |
429 | } |
430 | } | |
431 | ||
5322a392 RK |
432 | /** |
433 | * Toolbar Controls | |
434 | */ | |
435 | ||
c29b709d | 436 | #toggle-panes { |
c29b709d RK |
437 | list-style-image: url("chrome://browser/skin/devtools/debugger-expand.png"); |
438 | -moz-image-region: rect(0px, 16px, 16px, 0px); | |
439 | } | |
440 | ||
b8384c33 | 441 | #toggle-panes:not([panesHidden]) { |
c29b709d RK |
442 | list-style-image: url("chrome://browser/skin/devtools/debugger-collapse.png"); |
443 | } | |
444 | ||
445 | #toggle-panes:hover, | |
446 | #toggle-panes:hover:active { | |
447 | -moz-image-region: rect(0px, 32px, 16px, 16px); | |
448 | } | |
449 | ||
5322a392 | 450 | #resume { |
37953ab4 | 451 | list-style-image: url("chrome://browser/skin/devtools/debugger-play.png"); |
5322a392 RK |
452 | -moz-image-region: rect(0px, 16px, 16px, 0px); |
453 | } | |
454 | ||
455 | #resume[checked=true], | |
456 | #resume:hover { | |
457 | -moz-image-region: rect(0px, 32px, 16px, 16px); | |
458 | } | |
459 | ||
460 | #step-over { | |
461 | list-style-image: url("chrome://browser/skin/devtools/debugger-step-over.png"); | |
462 | -moz-image-region: rect(0px, 16px, 16px, 0px); | |
463 | } | |
464 | #step-over:hover { | |
465 | -moz-image-region: rect(0px, 32px, 16px, 16px); | |
466 | } | |
467 | ||
468 | #step-in { | |
469 | list-style-image: url("chrome://browser/skin/devtools/debugger-step-in.png"); | |
470 | -moz-image-region: rect(0px, 16px, 16px, 0px); | |
471 | } | |
472 | #step-in:hover { | |
473 | -moz-image-region: rect(0px, 32px, 16px, 16px); | |
474 | } | |
475 | ||
476 | #step-out { | |
477 | list-style-image: url("chrome://browser/skin/devtools/debugger-step-out.png"); | |
478 | -moz-image-region: rect(0px, 16px, 16px, 0px); | |
479 | } | |
480 | #step-out:hover { | |
481 | -moz-image-region: rect(0px, 32px, 16px, 16px); | |
482 | } | |
483 | ||
484 | #debugger-controls > toolbarbutton { | |
485 | } | |
486 | ||
487 | #debugger-controls > toolbarbutton:last-of-type { | |
488 | } | |
489 | ||
490 | #debugger-controls { | |
491 | } |