first part of syncing LCARStrek with Firefox 49/50 devtools theme changes
[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 {
6f751fd1 306 background-image: var(--theme-command-line-image-focus);
b27cc46e 307 width: 16px;
dccbbf95 308 height: 16px;
45dc7657 309 margin: 2px;
dccbbf95
RK
310}
311
990cba4b 312.dbg-expression-input {
de57e474 313 color: inherit;
990cba4b
RK
314}
315
45dc7657
RK
316.dbg-expression-button {
317 border: none;
318 background: none;
45dc7657 319 text-decoration: underline;
dccbbf95 320 cursor: pointer;
de5e780d 321 color: var(--theme-highlight-blue);
45dc7657
RK
322}
323
3a0880a9
RK
324/* Event listeners view */
325
3a0880a9
RK
326.dbg-event-listener-type {
327 font-weight: 600;
328}
329
7d6161c5
RK
330.dbg-event-listener-location {
331 color: var(--theme-highlight-pink);
332}
333
3a0880a9 334.dbg-event-listener-separator {
de5e780d 335 color: var(--theme-body-color-alt);
3a0880a9
RK
336}
337
338.dbg-event-listener-targets {
de5e780d 339 color: var(--theme-highlight-blue);
3a0880a9
RK
340}
341
7d6161c5
RK
342#event-listeners .selected {
343 /* Selected items shouldn't be displayed differently. */
344 background: none;
345 color: var(--theme-content-color1);
de57e474
RK
346}
347
82b4252f 348/* Searchbox and the search operations help panel */
56ab361a 349
d2ce251d 350#searchbox {
82b4252f 351 min-width: 220px;
dae45075 352 margin-inline-start: 1px;
56ab361a
RK
353}
354
fe524e0c 355#filter-label {
dae45075 356 margin-inline-start: 2px;
fe524e0c
RK
357}
358
359#searchbox-panel-operators {
360 margin-top: 5px;
82b4252f 361 margin-bottom: 8px;
dae45075 362 margin-inline-start: 2px;
c29b709d
RK
363}
364
82b4252f
RK
365.searchbox-panel-operator-button {
366 min-width: 26px;
367 margin-top: 0;
368 margin-bottom: 0;
dae45075
RK
369 margin-inline-start: 2px;
370 margin-inline-end: 6px;
82b4252f 371 text-align: center;
56ab361a
RK
372}
373
82b4252f
RK
374.searchbox-panel-operator-label {
375 padding-bottom: 2px;
56ab361a
RK
376}
377
82b4252f 378/* Searchbox results panel */
56ab361a 379
7d6161c5
RK
380#results-panel {
381 border: none;
56ab361a
RK
382}
383
82b4252f 384.results-panel-item {
7d6161c5
RK
385 padding: 6px 8px;
386 border-top: 1px solid #A09090;
56ab361a 387}
eec397be 388
82b4252f 389.results-panel-item:first-of-type {
7d6161c5 390 border-top: none;
82b4252f 391 border-radius: 4px 4px 0 0;
eec397be
RK
392}
393
82b4252f
RK
394.results-panel-item:last-of-type {
395 border-radius: 0 0 4px 4px;
b8384c33
RK
396}
397
82b4252f
RK
398.results-panel-item:only-of-type {
399 border-radius: 4px;
c29b709d
RK
400}
401
7d6161c5
RK
402.results-panel-item-label {
403 font-weight: 600;
85cfb236
RK
404}
405
45dc7657 406.results-panel-item-label-before {
dae45075 407 padding-inline-end: 6px;
56ab361a
RK
408}
409
45dc7657 410.results-panel-item-label {
de5e780d 411 color: var(--theme-highlight-blue);
7d6161c5
RK
412}
413
414.results-panel-item-label-before {
415 color: var(--theme-content-color2);
85cfb236
RK
416}
417
45dc7657 418.results-panel-item-label-below {
de5e780d 419 color: var(--theme-content-color3);
7d6161c5
RK
420}
421
422#results-panel .selected label {
423 /* Text inside a selected item should not be custom colored. */
424 color: inherit !important;
56ab361a
RK
425}
426
82b4252f 427/* Sources search view */
eec397be 428
82b4252f
RK
429#globalsearch {
430 min-height: 10px;
7d6161c5 431 max-height: 50vh;
eec397be
RK
432}
433
82b4252f 434#globalsearch + .devtools-horizontal-splitter {
7d6161c5 435 -moz-border-top-colors: var(--theme-splitter-color);
56ab361a
RK
436}
437
82b4252f
RK
438.dbg-source-results {
439 padding: 0;
440 background: none !important;
eec397be
RK
441}
442
46e71434 443.dbg-source-results:not(.selected):hover {
7d6161c5 444 background-color: var(--theme-sidebar-background);
46e71434
RK
445}
446
82b4252f 447.dbg-results-header {
dae45075 448 padding-inline-start: 6px;
37953ab4
RK
449}
450
82b4252f 451.dbg-results-header-location {
990cba4b
RK
452 font-weight: 600;
453}
454
82b4252f 455.dbg-results-header-match-count {
dae45075 456 padding-inline-start: 6px;
7d6161c5 457 color: var(--theme-body-color-inactive);
eec397be
RK
458}
459
82b4252f 460.dbg-results-line-number {
7d6161c5 461 min-width: 3em;
dae45075
RK
462 border-inline-end: 1px solid #9C9CFF;
463 padding-inline-end: 4px;
82b4252f 464 text-align: end;
eec397be
RK
465}
466
82b4252f 467.dbg-results-line-contents {
dae45075 468 padding-inline-start: 4px;
eec397be
RK
469}
470
82b4252f
RK
471.dbg-results-line-contents-string[match=true] {
472 background: #E7ADE7;
de5e780d 473 color: var(--theme-selection-color);
82b4252f
RK
474 border: 1px solid #9C9CFF;
475 border-radius: 4px;
7d6161c5
RK
476 margin-top: -1px !important;
477 margin-bottom: -1px !important;
82b4252f 478 cursor: pointer;
eec397be
RK
479}
480
82b4252f
RK
481.dbg-results-line-contents-string[match=true][focusing] {
482 transition: transform 0.3s ease-in-out;
eec397be
RK
483}
484
82b4252f
RK
485.dbg-results-line-contents-string[match=true][focused] {
486 transition-duration: 0.1s;
487 transform: scale(1.75, 1.75);
b8384c33
RK
488}
489
7d6161c5
RK
490.dbg-source-results:not(.selected):hover {
491 background-color: var(--theme-sidebar-background);
492}
5322a392 493
7d6161c5
RK
494.dbg-results-header {
495 background-color: var(--theme-tab-toolbar-background);
c29b709d
RK
496}
497
7d6161c5
RK
498.dbg-results-header {
499 color: var(--theme-content-color1);
c29b709d
RK
500}
501
7d6161c5
RK
502.dbg-search-result:hover {
503 background-color: #004242; /* Select highlight blue at 40% alpha */
c29b709d
RK
504}
505
7d6161c5
RK
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);
5322a392
RK
513}
514
7d6161c5
RK
515.dbg-results-line-contents-string {
516 color: var(--theme-body-color-alt);
5322a392
RK
517}
518
7d6161c5
RK
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);
3886293f
RK
535}
536
024a65e9 537@media (min-resolution: 1.1dppx) {
dccbbf95 538 #resume {
d0a8de80 539 list-style-image: url(images/debugger-pause@2x.png);
dccbbf95
RK
540 }
541
7d6161c5 542 #resume[checked] {
d0a8de80 543 list-style-image: url(images/debugger-play@2x.png);
dccbbf95
RK
544 }
545}
546
e9fbfc3a
RK
547#resume[break-on-next] {
548 background: var(--theme-highlight-lightorange);
3886293f
RK
549}
550
5322a392 551#step-over {
7d6161c5 552 list-style-image: url(images/debugger-step-over.png);
5322a392
RK
553}
554
555#step-in {
7d6161c5 556 list-style-image: url(images/debugger-step-in.png);
5322a392
RK
557}
558
559#step-out {
7d6161c5 560 list-style-image: url(images/debugger-step-out.png);
5322a392
RK
561}
562
024a65e9 563@media (min-resolution: 1.1dppx) {
dccbbf95 564 #step-over {
d0a8de80 565 list-style-image: url(images/debugger-step-over@2x.png);
dccbbf95
RK
566 }
567
568 #step-in {
d0a8de80 569 list-style-image: url(images/debugger-step-in@2x.png);
dccbbf95
RK
570 }
571
572 #step-out {
d0a8de80 573 list-style-image: url(images/debugger-step-out@2x.png);
dccbbf95
RK
574 }
575}
576
82b4252f 577#instruments-pane-toggle {
7d6161c5 578 list-style-image: var(--theme-pane-collapse-image);
82b4252f
RK
579}
580
ed1a91c6 581#instruments-pane-toggle[pane-collapsed] {
7d6161c5 582 list-style-image: var(--theme-pane-expand-image);
dccbbf95
RK
583}
584
3a0880a9
RK
585/* Horizontal vs. vertical layout */
586
587#vertical-layout-panes-container {
588 min-height: 35vh;
589 max-height: 80vh;
590}
591
7d6161c5 592#body[layout=vertical] #sources-pane > tabs {
dae45075 593 border-inline-end: none;
7d6161c5
RK
594}
595
3a0880a9
RK
596#body[layout=vertical] #instruments-pane {
597 margin: 0 !important;
598 /* To prevent all the margin hacks to hide the sidebar. */
599}
600
de57e474 601#body[layout=vertical] .side-menu-widget-container,
45dc7657 602#body[layout=vertical] .side-menu-widget-empty-text {
3a0880a9
RK
603 box-shadow: none !important;
604}
605
606#body[layout=vertical] .side-menu-widget-item-arrow {
607 background-image: none !important;
608}
45dc7657 609
7d6161c5
RK
610#body[layout=vertical] .side-menu-widget-group,
611#body[layout=vertical] .side-menu-widget-item {
dae45075 612 margin-inline-end: 0;
7d6161c5 613}