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