first part of syncing LCARStrek with Firefox 49/50 devtools theme changes
[themes.git] / LCARStrek / devtools / debugger.css
... / ...
CommitLineData
1/* vim:set ts=2 sw=2 sts=2 et: */
2/* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6window {
7 padding: 0;
8}
9
10/* Sources and breakpoints pane */
11
12#sources-pane[selectedIndex="0"] + #sources-and-editor-splitter {
13 border-color: transparent;
14}
15
16#sources-pane > tabs {
17/* border-inline-end: 1px solid;*/
18}
19
20#sources-pane .devtools-toolbar {
21 border: none; /* Remove the devtools-toolbar bottom border. */
22/* border-inline-end: 1px solid;*/
23}
24
25#sources-pane > tabs,
26#sources-pane .devtools-toolbar {
27 border-inline-end-color: var(--theme-splitter-color);
28}
29
30/* Sources and breakpoints list */
31
32.dbg-source-item {
33 padding: 2px 0px;
34}
35
36.dbg-wasm-item .icon {
37 display: block;
38 background-image: url(chrome://devtools/skin/images/webconsole.svg);
39 background-repeat: no-repeat;
40 background-size: 72px 60px;
41 /* show warning icon */
42 background-position: -24px -24px;
43 width: 10px;
44 height: 10px;
45 position: absolute;
46 margin-inline-start: -15px;
47 margin-top: 3px;
48}
49
50.dbg-breakpoint-line {
51 font-weight: 600;
52}
53
54.dbg-breakpoint-text {
55 padding-inline-start: 6px;
56 font-style: italic;
57 font-size: 90%;
58}
59
60.dbg-breakpoint-checkbox {
61 width: 16px;
62 height: 16px;
63 margin: 2px;
64}
65
66.dbg-breakpoint-condition-thrown-message {
67 display: none;
68 color: var(--theme-highlight-red);
69}
70
71.dbg-breakpoint.dbg-breakpoint-condition-thrown .dbg-breakpoint-condition-thrown-message {
72 display: block;
73 padding-inline-start: 0;
74}
75
76/* Sources toolbar */
77
78#sources-toolbar > .devtools-toolbarbutton,
79#sources-controls > .devtools-toolbarbutton {
80 min-width: 16px;
81}
82
83#sources-toolbar .devtools-toolbarbutton:not([label]) {
84 -moz-image-region: rect(0,16px,16px,0);
85}
86
87@media (min-resolution: 1.1dppx) {
88 #sources-toolbar .devtools-toolbarbutton:not([label]) {
89 -moz-image-region: rect(0,32px,32px,0);
90 }
91}
92
93#black-box {
94 list-style-image: url("images/debugger-blackbox.png");
95}
96
97@media (min-resolution: 1.1dppx) {
98 #black-box {
99 list-style-image: url(images/debugger-blackbox@2x.png);
100 }
101}
102
103#pretty-print {
104 list-style-image: url(images/debugger-prettyprint.png);
105}
106
107@media (min-resolution: 1.1dppx) {
108 #pretty-print {
109 list-style-image: url(images/debugger-prettyprint@2x.png);
110 }
111}
112
113#toggle-breakpoints {
114 list-style-image: url(images/debugger-toggleBreakpoints.svg);
115 -moz-image-region: rect(0,32px,16px,16px) !important;
116}
117
118#toggle-breakpoints[checked] {
119 -moz-image-region: rect(0,16px,16px,0) !important;
120}
121
122#toggle-breakpoints[checked] > image {
123 /* This button has a special checked image, don't make it blue */
124 filter: none;
125}
126
127#toggle-promise-debugger {
128 /* TODO Bug 1186119: Add a toggle promise debugger image */
129}
130
131#sources .black-boxed {
132 color: #8050B0;
133}
134
135#sources .selected .black-boxed {
136 color: #000000;
137}
138
139#sources .black-boxed ~ .dbg-breakpoint {
140 display: none;
141}
142
143/* Debugger unblackbox button */
144
145#black-boxed-message-button > .button-box > .button-icon {
146 width: 16px;
147 height: 16px;
148 background-image: url("images/debugger-blackbox.png");
149 background-position: 0 0;
150 background-size: 32px 16px;
151 background-repeat: no-repeat;
152 margin-inline-end: 5px;
153}
154
155@media (min-resolution: 1.1dppx) {
156 #black-boxed-message-button > .button-box > .button-icon {
157 background-image: url("images/debugger-blackbox@2x.png");
158 }
159}
160
161/* Black box message and source progress meter */
162
163#black-boxed-message,
164#source-progress-container {
165 background-color: #A09090;
166 /* Prevent the container deck from aquiring the size from this message. */
167 min-width: 1px;
168 min-height: 1px;
169 color: #000000;
170}
171
172#source-progress {
173 min-height: 2em;
174 min-width: 40em;
175}
176
177#black-boxed-message-label,
178#black-boxed-message-button {
179 text-align: center;
180 font-size: 120%;
181}
182
183#black-boxed-message-button {
184 margin-top: 1em;
185 padding: .25em;
186}
187
188/* Breadcrumbs stack frames view */
189
190.dbg-stackframe-details {
191 padding-inline-start: 4px;
192}
193
194/* Classic stack frames view */
195
196.dbg-classic-stackframe {
197 display: block;
198}
199
200.dbg-classic-stackframe-title {
201 font-weight: 600;
202}
203
204.dbg-classic-stackframe-details:-moz-locale-dir(ltr) {
205 float: right;
206}
207
208.dbg-classic-stackframe-details:-moz-locale-dir(rtl) {
209 float: left;
210}
211
212.dbg-classic-stackframe-details-url {
213 max-width: 90%;
214 text-align: end;
215}
216
217.dbg-classic-stackframe-details-url {
218 color: var(--theme-content-color1);
219}
220
221.dbg-classic-stackframe-details-sep {
222 color: var(--theme-body-color-alt)
223}
224
225.dbg-classic-stackframe-details-line {
226 color: var(--theme-highlight-bluegrey);
227}
228
229#callstack-list .selected label {
230 /* Text inside a selected item should not be custom colored. */
231 color: inherit !important;
232}
233
234/* Tracer */
235
236#trace {
237 list-style-image: url("images/tracer-icon.png");
238}
239
240@media (min-resolution: 1.1dppx) {
241 #trace {
242 list-style-image: url("images/tracer-icon@2x.png");
243 }
244}
245
246#clear-tracer {
247 /* Make this button as narrow as the text inside it. */
248 min-width: 1px;
249}
250
251.trace-name {
252 padding-inline-start: 4px;
253}
254
255/* Tracer dark+light theme */
256
257.trace-item {
258 color: var(--theme-content-color1);
259}
260
261.trace-item.black-boxed {
262 color: #A09090;
263}
264
265.trace-item.selected-matching {
266 background-color: #004242; /* Select highlight blue at 40% alpha */
267}
268
269.selected > .trace-item {
270 background-color: #004242; /* Select highlight blue at 75% alpha */
271}
272
273.trace-call {
274 color: var(--theme-highlight-blue);
275}
276
277.trace-return,
278.trace-yield {
279 color: var(--theme-highlight-green);
280}
281
282.trace-throw {
283 color: var(--theme-highlight-red);
284}
285
286.trace-param {
287 color: var(--theme-highlight-pink);
288}
289
290.trace-syntax {
291 color: var(--theme-content-color2);
292}
293
294/* Watch expressions view */
295
296#expressions {
297 min-height: 10px;
298 max-height: 125px;
299}
300
301.dbg-expression {
302 height: 20px;
303}
304
305.dbg-expression-arrow {
306 background-image: var(--theme-command-line-image-focus);
307 width: 16px;
308 height: 16px;
309 margin: 2px;
310}
311
312.dbg-expression-input {
313 color: inherit;
314}
315
316.dbg-expression-button {
317 border: none;
318 background: none;
319 text-decoration: underline;
320 cursor: pointer;
321 color: var(--theme-highlight-blue);
322}
323
324/* Event listeners view */
325
326.dbg-event-listener-type {
327 font-weight: 600;
328}
329
330.dbg-event-listener-location {
331 color: var(--theme-highlight-pink);
332}
333
334.dbg-event-listener-separator {
335 color: var(--theme-body-color-alt);
336}
337
338.dbg-event-listener-targets {
339 color: var(--theme-highlight-blue);
340}
341
342#event-listeners .selected {
343 /* Selected items shouldn't be displayed differently. */
344 background: none;
345 color: var(--theme-content-color1);
346}
347
348/* Searchbox and the search operations help panel */
349
350#searchbox {
351 min-width: 220px;
352 margin-inline-start: 1px;
353}
354
355#filter-label {
356 margin-inline-start: 2px;
357}
358
359#searchbox-panel-operators {
360 margin-top: 5px;
361 margin-bottom: 8px;
362 margin-inline-start: 2px;
363}
364
365.searchbox-panel-operator-button {
366 min-width: 26px;
367 margin-top: 0;
368 margin-bottom: 0;
369 margin-inline-start: 2px;
370 margin-inline-end: 6px;
371 text-align: center;
372}
373
374.searchbox-panel-operator-label {
375 padding-bottom: 2px;
376}
377
378/* Searchbox results panel */
379
380#results-panel {
381 border: none;
382}
383
384.results-panel-item {
385 padding: 6px 8px;
386 border-top: 1px solid #A09090;
387}
388
389.results-panel-item:first-of-type {
390 border-top: none;
391 border-radius: 4px 4px 0 0;
392}
393
394.results-panel-item:last-of-type {
395 border-radius: 0 0 4px 4px;
396}
397
398.results-panel-item:only-of-type {
399 border-radius: 4px;
400}
401
402.results-panel-item-label {
403 font-weight: 600;
404}
405
406.results-panel-item-label-before {
407 padding-inline-end: 6px;
408}
409
410.results-panel-item-label {
411 color: var(--theme-highlight-blue);
412}
413
414.results-panel-item-label-before {
415 color: var(--theme-content-color2);
416}
417
418.results-panel-item-label-below {
419 color: var(--theme-content-color3);
420}
421
422#results-panel .selected label {
423 /* Text inside a selected item should not be custom colored. */
424 color: inherit !important;
425}
426
427/* Sources search view */
428
429#globalsearch {
430 min-height: 10px;
431 max-height: 50vh;
432}
433
434#globalsearch + .devtools-horizontal-splitter {
435 -moz-border-top-colors: var(--theme-splitter-color);
436}
437
438.dbg-source-results {
439 padding: 0;
440 background: none !important;
441}
442
443.dbg-source-results:not(.selected):hover {
444 background-color: var(--theme-sidebar-background);
445}
446
447.dbg-results-header {
448 padding-inline-start: 6px;
449}
450
451.dbg-results-header-location {
452 font-weight: 600;
453}
454
455.dbg-results-header-match-count {
456 padding-inline-start: 6px;
457 color: var(--theme-body-color-inactive);
458}
459
460.dbg-results-line-number {
461 min-width: 3em;
462 border-inline-end: 1px solid #9C9CFF;
463 padding-inline-end: 4px;
464 text-align: end;
465}
466
467.dbg-results-line-contents {
468 padding-inline-start: 4px;
469}
470
471.dbg-results-line-contents-string[match=true] {
472 background: #E7ADE7;
473 color: var(--theme-selection-color);
474 border: 1px solid #9C9CFF;
475 border-radius: 4px;
476 margin-top: -1px !important;
477 margin-bottom: -1px !important;
478 cursor: pointer;
479}
480
481.dbg-results-line-contents-string[match=true][focusing] {
482 transition: transform 0.3s ease-in-out;
483}
484
485.dbg-results-line-contents-string[match=true][focused] {
486 transition-duration: 0.1s;
487 transform: scale(1.75, 1.75);
488}
489
490.dbg-source-results:not(.selected):hover {
491 background-color: var(--theme-sidebar-background);
492}
493
494.dbg-results-header {
495 background-color: var(--theme-tab-toolbar-background);
496}
497
498.dbg-results-header {
499 color: var(--theme-content-color1);
500}
501
502.dbg-search-result:hover {
503 background-color: #004242; /* Select highlight blue at 40% alpha */
504}
505
506.dbg-results-header-match-count {
507 color: var(--theme-content-color3);
508}
509
510.dbg-results-line-number {
511 background-color: var(--theme-tab-toolbar-background);
512 color: var(--theme-body-color-alt);
513}
514
515.dbg-results-line-contents-string {
516 color: var(--theme-body-color-alt);
517}
518
519.theme-dark .dbg-results-line-contents-string[match=true] {
520 color: var(--theme-selection-color);
521}
522
523.theme-light .dbg-results-line-contents-string[match=true] {
524 color: var(--theme-body-color);
525}
526
527/* Toolbar controls */
528
529#resume {
530 list-style-image: url(images/debugger-pause.png);
531}
532
533#resume[checked] {
534 list-style-image: url(images/debugger-play.png);
535}
536
537@media (min-resolution: 1.1dppx) {
538 #resume {
539 list-style-image: url(images/debugger-pause@2x.png);
540 }
541
542 #resume[checked] {
543 list-style-image: url(images/debugger-play@2x.png);
544 }
545}
546
547#resume[break-on-next] {
548 background: var(--theme-highlight-lightorange);
549}
550
551#step-over {
552 list-style-image: url(images/debugger-step-over.png);
553}
554
555#step-in {
556 list-style-image: url(images/debugger-step-in.png);
557}
558
559#step-out {
560 list-style-image: url(images/debugger-step-out.png);
561}
562
563@media (min-resolution: 1.1dppx) {
564 #step-over {
565 list-style-image: url(images/debugger-step-over@2x.png);
566 }
567
568 #step-in {
569 list-style-image: url(images/debugger-step-in@2x.png);
570 }
571
572 #step-out {
573 list-style-image: url(images/debugger-step-out@2x.png);
574 }
575}
576
577#instruments-pane-toggle {
578 list-style-image: var(--theme-pane-collapse-image);
579}
580
581#instruments-pane-toggle[pane-collapsed] {
582 list-style-image: var(--theme-pane-expand-image);
583}
584
585/* Horizontal vs. vertical layout */
586
587#vertical-layout-panes-container {
588 min-height: 35vh;
589 max-height: 80vh;
590}
591
592#body[layout=vertical] #sources-pane > tabs {
593 border-inline-end: none;
594}
595
596#body[layout=vertical] #instruments-pane {
597 margin: 0 !important;
598 /* To prevent all the margin hacks to hide the sidebar. */
599}
600
601#body[layout=vertical] .side-menu-widget-container,
602#body[layout=vertical] .side-menu-widget-empty-text {
603 box-shadow: none !important;
604}
605
606#body[layout=vertical] .side-menu-widget-item-arrow {
607 background-image: none !important;
608}
609
610#body[layout=vertical] .side-menu-widget-group,
611#body[layout=vertical] .side-menu-widget-item {
612 margin-inline-end: 0;
613}