| 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: */ |
| 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/. */ |
| 6 | |
| 7 | window { |
| 8 | padding: 0; |
| 9 | } |
| 10 | |
| 11 | #body { |
| 12 | background-color: #000000; |
| 13 | } |
| 14 | |
| 15 | /** |
| 16 | * Debugger content |
| 17 | */ |
| 18 | |
| 19 | #chrome-globals, #sources { |
| 20 | width: 200px; |
| 21 | } |
| 22 | |
| 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 | */ |
| 27 | #searchbox { |
| 28 | width: 200px; |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | * Lists and headers |
| 33 | */ |
| 34 | |
| 35 | .list-item { |
| 36 | padding: 2px; |
| 37 | } |
| 38 | |
| 39 | .list-item:not(.selected):not(.empty):hover { |
| 40 | /* background: #cddae5; */ |
| 41 | } |
| 42 | |
| 43 | .list-item.selected { |
| 44 | background: #008484; |
| 45 | color: #FFCF00; |
| 46 | } |
| 47 | |
| 48 | .list-item.empty { |
| 49 | color: #8050B0; |
| 50 | /* padding: 4px; */ |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * Sources searching |
| 55 | */ |
| 56 | |
| 57 | #globalsearch { |
| 58 | background-color: #000000; |
| 59 | min-height: 10px; |
| 60 | } |
| 61 | |
| 62 | #globalsearch > vbox:not(:empty) { |
| 63 | min-height: 10px; |
| 64 | max-height: 150px; |
| 65 | } |
| 66 | |
| 67 | .dbg-source-results:not(:last-child) { |
| 68 | border-bottom: 1px dotted #9C9CFF; |
| 69 | } |
| 70 | |
| 71 | .dbg-results-header { |
| 72 | -moz-padding-start: 6px; |
| 73 | } |
| 74 | |
| 75 | .dbg-results-header .location { |
| 76 | font-weight: 600; |
| 77 | } |
| 78 | |
| 79 | .dbg-results-header .match-count { |
| 80 | -moz-padding-start: 6px; |
| 81 | color: #8050B0; |
| 82 | } |
| 83 | |
| 84 | .dbg-results-container .line-number { |
| 85 | background: #000000; |
| 86 | min-width: 40px; |
| 87 | -moz-padding-end: 4px; |
| 88 | -moz-border-end: 1px dotted #9C9CFF; |
| 89 | text-align: end; |
| 90 | font: 8pt monospace; |
| 91 | color: #FF9F00; |
| 92 | } |
| 93 | |
| 94 | .dbg-results-container .line-contents { |
| 95 | -moz-padding-start: 4px; |
| 96 | font: 8pt monospace; |
| 97 | } |
| 98 | |
| 99 | .dbg-results-container .line-contents:hover { |
| 100 | background: #000000; |
| 101 | } |
| 102 | |
| 103 | .dbg-results-container .line-contents > .string { |
| 104 | padding: 1px; |
| 105 | } |
| 106 | |
| 107 | .dbg-results-container .line-contents > .string[match=true] { |
| 108 | background: #E7ADE7; |
| 109 | color: #000000; |
| 110 | padding: 0; |
| 111 | border: 1px solid #9C9CFF; |
| 112 | border-radius: 4px; |
| 113 | cursor: pointer; |
| 114 | transition: transform 0.25s ease-in-out; |
| 115 | } |
| 116 | |
| 117 | .dbg-results-container .line-contents > .string[match=true][focused] { |
| 118 | transition-duration: 0.1s; |
| 119 | transform: scale(1.75, 1.75); |
| 120 | } |
| 121 | |
| 122 | /** |
| 123 | * Searchbox panel |
| 124 | */ |
| 125 | |
| 126 | #searchbox-panel .description { |
| 127 | margin: -6px 0 8px; |
| 128 | } |
| 129 | |
| 130 | #searchbox-panel button.operator { |
| 131 | min-width: 0; |
| 132 | margin: 0; |
| 133 | padding: 0; |
| 134 | font: 9pt "Liberation Mono", Consolas, "Courier New", monospace; |
| 135 | } |
| 136 | |
| 137 | #searchbox-panel label.operator { |
| 138 | -moz-padding-start: 6px; |
| 139 | padding-bottom: 1px; |
| 140 | } |
| 141 | |
| 142 | /** |
| 143 | * Filtered sources panel |
| 144 | */ |
| 145 | |
| 146 | #filtered-sources-panel { |
| 147 | padding: 4px; |
| 148 | } |
| 149 | |
| 150 | .dbg-source-item { |
| 151 | border: 1px solid #A09090; |
| 152 | border-top-color: #8050B0; |
| 153 | } |
| 154 | |
| 155 | .dbg-source-item.selected { |
| 156 | } |
| 157 | |
| 158 | .dbg-source-item:first-of-type { |
| 159 | border-top-color: #9C9CFF; |
| 160 | border-radius: 4px 4px 0 0; |
| 161 | } |
| 162 | |
| 163 | .dbg-source-item:last-of-type { |
| 164 | border-radius: 0 0 4px 4px; |
| 165 | } |
| 166 | |
| 167 | .dbg-source-item:only-of-type { |
| 168 | border-radius: 4px 4px 4px 4px; |
| 169 | } |
| 170 | |
| 171 | .dbg-source-item:not(:hover) { |
| 172 | /* text-shadow: 0 1px #fff;*/ |
| 173 | } |
| 174 | |
| 175 | .dbg-source-item-name { |
| 176 | color: #9C9CFF; |
| 177 | font-weight: 600; |
| 178 | } |
| 179 | |
| 180 | .dbg-source-item-details { |
| 181 | color: #FF9F00; |
| 182 | } |
| 183 | |
| 184 | /** |
| 185 | * Stack frames and breakpoints pane |
| 186 | */ |
| 187 | |
| 188 | #stackframes\+breakpoints { |
| 189 | background-color: #000000; |
| 190 | min-width: 50px; |
| 191 | } |
| 192 | |
| 193 | #stackframes\+breakpoints[animated] { |
| 194 | transition: margin 0.25s ease-in-out; |
| 195 | } |
| 196 | |
| 197 | /** |
| 198 | * Variables and watch expressions pane |
| 199 | */ |
| 200 | |
| 201 | #variables\+expressions { |
| 202 | background-color: #000000; |
| 203 | min-width: 50px; |
| 204 | } |
| 205 | |
| 206 | #variables\+expressions[animated] { |
| 207 | transition: margin 0.25s ease-in-out; |
| 208 | } |
| 209 | |
| 210 | /** |
| 211 | * Stack frames view |
| 212 | */ |
| 213 | |
| 214 | #stackframes { |
| 215 | /* background-color: white; */ |
| 216 | min-height: 10px; |
| 217 | } |
| 218 | |
| 219 | .dbg-stackframe { |
| 220 | -moz-padding-start: 4px; |
| 221 | -moz-padding-end: 4px; |
| 222 | } |
| 223 | |
| 224 | .dbg-stackframe-name { |
| 225 | font-weight: 600; |
| 226 | } |
| 227 | |
| 228 | .dbg-stackframe-details { |
| 229 | -moz-padding-start: 4px; |
| 230 | } |
| 231 | |
| 232 | /** |
| 233 | * Breakpoints view |
| 234 | */ |
| 235 | |
| 236 | #breakpoints { |
| 237 | background-color: #000000; |
| 238 | min-height: 10px; |
| 239 | } |
| 240 | |
| 241 | #breakpoints > vbox:not(:empty) { |
| 242 | min-height: 10px; |
| 243 | max-height: 200px; |
| 244 | } |
| 245 | |
| 246 | .dbg-breakpoint:not(:last-child) { |
| 247 | border-bottom: 1px solid #008484; |
| 248 | } |
| 249 | |
| 250 | .dbg-breakpoint-info { |
| 251 | font-weight: 600; |
| 252 | } |
| 253 | |
| 254 | .dbg-breakpoint-text { |
| 255 | font: 12px "Liberation Mono", Consolas, "Courier New", monospace; |
| 256 | } |
| 257 | |
| 258 | #conditional-breakpoint-panel .description { |
| 259 | margin: -6px 0 8px 0; |
| 260 | } |
| 261 | |
| 262 | #conditional-breakpoint-panel textbox { |
| 263 | margin: 0 0 -2px 0; |
| 264 | } |
| 265 | |
| 266 | /** |
| 267 | * Watch expressions view |
| 268 | */ |
| 269 | |
| 270 | #expressions { |
| 271 | background-color: #000000; |
| 272 | min-height: 10px; |
| 273 | } |
| 274 | |
| 275 | .dbg-expression { |
| 276 | height: 20px; |
| 277 | -moz-padding-start: 8px; |
| 278 | } |
| 279 | |
| 280 | .dbg-expression-arrow { |
| 281 | width: 10px; |
| 282 | height: auto; |
| 283 | background: url("chrome://browser/skin/devtools/commandline.png") 0px 4px no-repeat; |
| 284 | } |
| 285 | |
| 286 | .dbg-expression-input { |
| 287 | font: 9pt monospace; |
| 288 | } |
| 289 | |
| 290 | .dbg-expression-delete { |
| 291 | -moz-image-region: rect(0, 32px, 16px, 16px); |
| 292 | } |
| 293 | |
| 294 | /** |
| 295 | * Variables view |
| 296 | */ |
| 297 | |
| 298 | #variables { |
| 299 | /* background-color: white; */ |
| 300 | min-height: 10px; |
| 301 | } |
| 302 | |
| 303 | .dbg-variables-delete:not(:hover) { |
| 304 | -moz-image-region: rect(0, 32px, 16px, 16px); |
| 305 | opacity: 0.5; |
| 306 | } |
| 307 | |
| 308 | /** |
| 309 | * Scope element |
| 310 | */ |
| 311 | |
| 312 | .scope > .title { |
| 313 | background: #E7ADE7; |
| 314 | border-radius: 5px; |
| 315 | color: #000000; |
| 316 | } |
| 317 | |
| 318 | .scope > .details { |
| 319 | -moz-margin-start: 2px; |
| 320 | -moz-margin-end: 2px; |
| 321 | } |
| 322 | |
| 323 | .scope > .details.nonenum:not(:empty) { |
| 324 | border-top: 1px solid #9C9CFF; |
| 325 | } |
| 326 | |
| 327 | /** |
| 328 | * Variable element |
| 329 | */ |
| 330 | |
| 331 | .variable { |
| 332 | -moz-margin-start: 1px; |
| 333 | -moz-margin-end: 1px; |
| 334 | border-bottom: 1px solid #008484; |
| 335 | background: #000000; |
| 336 | transition: background 1s ease-in-out; |
| 337 | } |
| 338 | |
| 339 | .variable[changed] { |
| 340 | background: #FFCF00; |
| 341 | transition-duration: 0.4s; |
| 342 | } |
| 343 | |
| 344 | .variable > .title > .name { |
| 345 | color: #FF9F00; |
| 346 | font-weight: 600; |
| 347 | } |
| 348 | |
| 349 | .variable > .title > .value { |
| 350 | -moz-padding-start: 6px; |
| 351 | -moz-padding-end: 4px; |
| 352 | } |
| 353 | |
| 354 | .variable:not([non-header]) > .details { |
| 355 | -moz-margin-start: 10px; |
| 356 | } |
| 357 | |
| 358 | /** |
| 359 | * Property element |
| 360 | */ |
| 361 | |
| 362 | .property { |
| 363 | transition: background 1s ease-in-out; |
| 364 | background: #000000; |
| 365 | border-radius: 8px; |
| 366 | } |
| 367 | |
| 368 | .property[changed] { |
| 369 | transition-duration: 0.4s; |
| 370 | background: rgba(255, 207, 0, 0.8); |
| 371 | } |
| 372 | |
| 373 | .property > .title > .name { |
| 374 | color: #E7ADE7; |
| 375 | } |
| 376 | |
| 377 | .property > .title > .value { |
| 378 | -moz-padding-start: 6px; |
| 379 | -moz-padding-end: 4px; |
| 380 | } |
| 381 | |
| 382 | .property:not([non-header]) > .details { |
| 383 | -moz-margin-start: 10px; |
| 384 | } |
| 385 | |
| 386 | /** |
| 387 | * Non enumerable, configurable and writable variables and properties. |
| 388 | */ |
| 389 | |
| 390 | .variable[proto] > .title > .name, |
| 391 | .property[proto] > .title > .name, |
| 392 | .variable[non-enumerable]:not([self]):not([exception]) > .title > .name, |
| 393 | .property[non-enumerable]:not([self]):not([exception]) > .title > .name { |
| 394 | opacity: 0.5; |
| 395 | } |
| 396 | |
| 397 | .variable[non-configurable] > .title > .name, |
| 398 | .property[non-configurable] > .title > .name { |
| 399 | border-bottom: 1px dashed #9C9CFF; |
| 400 | } |
| 401 | |
| 402 | .variable[non-configurable][non-writable] > .title > .name, |
| 403 | .property[non-configurable][non-writable] > .title > .name { |
| 404 | border-bottom: 1px dashed #FF0000; |
| 405 | } |
| 406 | |
| 407 | .variable[non-writable] > .title:after, |
| 408 | .property[non-writable] > .title:after { |
| 409 | content: " "; |
| 410 | display: inline-block; |
| 411 | width: 16px; |
| 412 | height: 16px; |
| 413 | background: url("chrome://browser/skin/identity-icons-https.png") no-repeat; |
| 414 | opacity: 0.5; |
| 415 | } |
| 416 | |
| 417 | /* |
| 418 | @media (min-resolution: 2dppx) { |
| 419 | .variable[non-writable] > .title:after, |
| 420 | .property[non-writable] > .title:after { |
| 421 | background-image: url("chrome://browser/skin/identity-icons-https@2x.png"); |
| 422 | background-size: 32px; |
| 423 | } |
| 424 | } |
| 425 | */ |
| 426 | |
| 427 | .variable[exception] > .title > .name, |
| 428 | .property[exception] > .title > .name { |
| 429 | color: #FF0000; |
| 430 | } |
| 431 | |
| 432 | .variable > tooltip > label, |
| 433 | .property > tooltip > label { |
| 434 | margin: 0 2px 0 2px; |
| 435 | } |
| 436 | |
| 437 | .variable[non-enumerable] > tooltip > label[value="enumerable"], |
| 438 | .property[non-enumerable] > tooltip > label[value="enumerable"], |
| 439 | .variable[non-configurable] > tooltip > label[value="configurable"], |
| 440 | .property[non-configurable] > tooltip > label[value="configurable"], |
| 441 | .variable[non-writable] > tooltip > label[value="writable"], |
| 442 | .property[non-writable] > tooltip > label[value="writable"] { |
| 443 | text-decoration: line-through; |
| 444 | } |
| 445 | |
| 446 | /** |
| 447 | * Variables and properties editing |
| 448 | */ |
| 449 | |
| 450 | #variables .element-value-input { |
| 451 | -moz-margin-start: 5px !important; |
| 452 | } |
| 453 | |
| 454 | #variables .element-name-input { |
| 455 | -moz-margin-start: -1px !important; |
| 456 | color: #E7ADE7; |
| 457 | font-weight: 600; |
| 458 | } |
| 459 | |
| 460 | /** |
| 461 | * Variables and properties searching |
| 462 | */ |
| 463 | |
| 464 | .variables-searchinput.devtools-searchinput { |
| 465 | min-height: 24px; |
| 466 | } |
| 467 | |
| 468 | .variable[non-match], |
| 469 | .property[non-match] { |
| 470 | border: none; |
| 471 | margin: 0; |
| 472 | } |
| 473 | |
| 474 | /** |
| 475 | * Token value colors |
| 476 | */ |
| 477 | |
| 478 | .token-undefined { |
| 479 | color: #8050B0; |
| 480 | } |
| 481 | |
| 482 | .token-null { |
| 483 | color: #008484; |
| 484 | } |
| 485 | |
| 486 | .token-boolean { |
| 487 | color: #FFCF00; |
| 488 | } |
| 489 | |
| 490 | .token-number { |
| 491 | color: #E7ADE7; |
| 492 | } |
| 493 | |
| 494 | .token-string { |
| 495 | color: #9C9CFF; |
| 496 | } |
| 497 | |
| 498 | .token-other { |
| 499 | color: #FF9F00; |
| 500 | } |
| 501 | |
| 502 | /** |
| 503 | * Expand/collapse arrow |
| 504 | */ |
| 505 | |
| 506 | .arrow { |
| 507 | width: 9px; |
| 508 | height: 9px; |
| 509 | -moz-margin-start: 5px; |
| 510 | -moz-margin-end: 5px; |
| 511 | margin-top: -2px; |
| 512 | background: url("chrome://global/skin/tree/twisty-closed.gif") center center no-repeat; |
| 513 | } |
| 514 | |
| 515 | .arrow[open] { |
| 516 | background-image: url("chrome://global/skin/tree/twisty-open.gif"); |
| 517 | } |
| 518 | |
| 519 | .scope > .title > .arrow { |
| 520 | background-image: url("chrome://global/skin/tree/twisty-closed-selected.gif"); |
| 521 | } |
| 522 | |
| 523 | .scope > .title > .arrow[open] { |
| 524 | background-image: url("chrome://global/skin/tree/twisty-open-selected.gif"); |
| 525 | } |
| 526 | |
| 527 | .arrow[invisible] { |
| 528 | visibility: hidden; |
| 529 | } |
| 530 | |
| 531 | /** |
| 532 | * Toolbar Controls |
| 533 | */ |
| 534 | |
| 535 | #toggle-panes { |
| 536 | list-style-image: url("chrome://browser/skin/devtools/debugger-expand.png"); |
| 537 | -moz-image-region: rect(0px, 16px, 16px, 0px); |
| 538 | } |
| 539 | |
| 540 | #toggle-panes:not([panesHidden]) { |
| 541 | list-style-image: url("chrome://browser/skin/devtools/debugger-collapse.png"); |
| 542 | } |
| 543 | |
| 544 | #toggle-panes:hover, |
| 545 | #toggle-panes:hover:active { |
| 546 | -moz-image-region: rect(0px, 32px, 16px, 16px); |
| 547 | } |
| 548 | |
| 549 | #resume { |
| 550 | list-style-image: url("chrome://browser/skin/devtools/debugger-play.png"); |
| 551 | -moz-image-region: rect(0px, 16px, 16px, 0px); |
| 552 | } |
| 553 | |
| 554 | #resume[checked=true], |
| 555 | #resume:hover { |
| 556 | -moz-image-region: rect(0px, 32px, 16px, 16px); |
| 557 | } |
| 558 | |
| 559 | #step-over { |
| 560 | list-style-image: url("chrome://browser/skin/devtools/debugger-step-over.png"); |
| 561 | -moz-image-region: rect(0px, 16px, 16px, 0px); |
| 562 | } |
| 563 | #step-over:hover { |
| 564 | -moz-image-region: rect(0px, 32px, 16px, 16px); |
| 565 | } |
| 566 | |
| 567 | #step-in { |
| 568 | list-style-image: url("chrome://browser/skin/devtools/debugger-step-in.png"); |
| 569 | -moz-image-region: rect(0px, 16px, 16px, 0px); |
| 570 | } |
| 571 | #step-in:hover { |
| 572 | -moz-image-region: rect(0px, 32px, 16px, 16px); |
| 573 | } |
| 574 | |
| 575 | #step-out { |
| 576 | list-style-image: url("chrome://browser/skin/devtools/debugger-step-out.png"); |
| 577 | -moz-image-region: rect(0px, 16px, 16px, 0px); |
| 578 | } |
| 579 | #step-out:hover { |
| 580 | -moz-image-region: rect(0px, 32px, 16px, 16px); |
| 581 | } |
| 582 | |
| 583 | #debugger-controls > toolbarbutton { |
| 584 | } |
| 585 | |
| 586 | #debugger-controls > toolbarbutton:last-of-type { |
| 587 | } |
| 588 | |
| 589 | #debugger-controls { |
| 590 | } |