browser/themes/shared/devtools/canvasdebugger.inc.css

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
michael@0 3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 %filter substitution
michael@0 6 %define darkCheckerboardBackground #000
michael@0 7 %define lightCheckerboardBackground #fff
michael@0 8 %define checkerboardCell rgba(128,128,128,0.2)
michael@0 9 %define checkerboardPattern linear-gradient(45deg, @checkerboardCell@ 25%, transparent 25%, transparent 75%, @checkerboardCell@ 75%, @checkerboardCell@), linear-gradient(45deg, @checkerboardCell@ 25%, transparent 25%, transparent 75%, @checkerboardCell@ 75%, @checkerboardCell@)
michael@0 10 %define gutterWidth 3em
michael@0 11 %define gutterPaddingStart 22px
michael@0 12
michael@0 13 /* Reload and waiting notices */
michael@0 14
michael@0 15 .notice-container {
michael@0 16 margin-top: -50vh;
michael@0 17 font-size: 120%;
michael@0 18 }
michael@0 19
michael@0 20 .theme-dark .notice-container {
michael@0 21 background: url(background-noise-toolbar.png), #343c45; /* Toolbars */
michael@0 22 color: #f5f7fa; /* Light foreground text */
michael@0 23 }
michael@0 24
michael@0 25 .theme-light .notice-container {
michael@0 26 background: url(background-noise-toolbar.png), #f0f1f2; /* Toolbars */
michael@0 27 color: #585959; /* Grey foreground text */
michael@0 28 }
michael@0 29
michael@0 30 #reload-notice > button {
michael@0 31 min-height: 2em;
michael@0 32 }
michael@0 33
michael@0 34 #empty-notice > button {
michael@0 35 min-width: 30px;
michael@0 36 min-height: 28px;
michael@0 37 margin: 0;
michael@0 38 list-style-image: url(profiler-stopwatch.png);
michael@0 39 -moz-image-region: rect(0px,16px,16px,0px);
michael@0 40 }
michael@0 41
michael@0 42 #empty-notice > button .button-text {
michael@0 43 display: none;
michael@0 44 }
michael@0 45
michael@0 46 .theme-dark #import-notice {
michael@0 47 font-size: 250%;
michael@0 48 color: rgba(255,255,255,0.2);
michael@0 49 }
michael@0 50
michael@0 51 .theme-light #import-notice {
michael@0 52 font-size: 250%;
michael@0 53 color: rgba(0,0,0,0.2);
michael@0 54 }
michael@0 55
michael@0 56 /* Snapshots pane */
michael@0 57
michael@0 58 #snapshots-pane > tabs {
michael@0 59 -moz-border-end: 1px solid;
michael@0 60 }
michael@0 61
michael@0 62 #snapshots-pane .devtools-toolbar {
michael@0 63 -moz-border-end: 1px solid;
michael@0 64 }
michael@0 65
michael@0 66 .theme-dark #snapshots-pane > tabs,
michael@0 67 .theme-dark #snapshots-pane .devtools-toolbar {
michael@0 68 -moz-border-end-color: black; /* Match the splitter color. */
michael@0 69 }
michael@0 70
michael@0 71 .theme-light #snapshots-pane > tabs,
michael@0 72 .theme-light #snapshots-pane .devtools-toolbar {
michael@0 73 -moz-border-end-color: #aaa; /* Match the splitter color. */
michael@0 74 }
michael@0 75
michael@0 76 #record-snapshot {
michael@0 77 list-style-image: url("chrome://browser/skin/devtools/profiler-stopwatch.png");
michael@0 78 -moz-image-region: rect(0px,16px,16px,0px);
michael@0 79 }
michael@0 80
michael@0 81 #record-snapshot[checked] {
michael@0 82 -moz-image-region: rect(0px,32px,16px,16px);
michael@0 83 }
michael@0 84
michael@0 85 /* Snapshots items */
michael@0 86
michael@0 87 .snapshot-item-thumbnail {
michael@0 88 image-rendering: -moz-crisp-edges;
michael@0 89 background-image: @checkerboardPattern@;
michael@0 90 background-size: 12px 12px, 12px 12px;
michael@0 91 background-position: 0px 0px, 6px 6px;
michael@0 92 background-repeat: repeat, repeat;
michael@0 93 }
michael@0 94
michael@0 95 .snapshot-item-thumbnail[flipped=true] {
michael@0 96 transform: scaleY(-1);
michael@0 97 }
michael@0 98
michael@0 99 .theme-dark .snapshot-item-thumbnail {
michael@0 100 background-color: @darkCheckerboardBackground@;
michael@0 101 }
michael@0 102
michael@0 103 .theme-light .snapshot-item-thumbnail {
michael@0 104 background-color: @lightCheckerboardBackground@;
michael@0 105 }
michael@0 106
michael@0 107 .snapshot-item-details {
michael@0 108 -moz-padding-start: 6px;
michael@0 109 }
michael@0 110
michael@0 111 .snapshot-item-calls {
michael@0 112 padding-top: 4px;
michael@0 113 font-size: 80%;
michael@0 114 }
michael@0 115
michael@0 116 .snapshot-item-save {
michael@0 117 padding-bottom: 2px;
michael@0 118 font-size: 90%;
michael@0 119 }
michael@0 120
michael@0 121 .theme-dark .snapshot-item-calls,
michael@0 122 .theme-dark .snapshot-item-save {
michael@0 123 color: #b6babf; /* Foreground (Text) - Grey */
michael@0 124 }
michael@0 125
michael@0 126 .theme-light .snapshot-item-calls,
michael@0 127 .theme-light .snapshot-item-save {
michael@0 128 color: #585959; /* Foreground (Text) - Grey */
michael@0 129 }
michael@0 130
michael@0 131 .snapshot-item-save {
michael@0 132 text-decoration: underline;
michael@0 133 cursor: pointer;
michael@0 134 }
michael@0 135
michael@0 136 .snapshot-item-save[disabled=true] {
michael@0 137 text-decoration: none;
michael@0 138 pointer-events: none;
michael@0 139 }
michael@0 140
michael@0 141 .snapshot-item-footer[saving]::before {
michael@0 142 display: inline-block;
michael@0 143 content: "";
michael@0 144 background: url("chrome://global/skin/icons/loading_16.png") center no-repeat;
michael@0 145 width: 16px;
michael@0 146 height: 16px;
michael@0 147 margin-top: -2px;
michael@0 148 -moz-margin-end: 4px;
michael@0 149 }
michael@0 150
michael@0 151 #snapshots-list .selected label {
michael@0 152 /* Text inside a selected item should not be custom colored. */
michael@0 153 color: inherit !important;
michael@0 154 }
michael@0 155
michael@0 156 /* Debugging pane controls */
michael@0 157
michael@0 158 #resume {
michael@0 159 list-style-image: url(debugger-play.png);
michael@0 160 -moz-image-region: rect(0px,32px,16px,16px);
michael@0 161 }
michael@0 162
michael@0 163 #step-over {
michael@0 164 list-style-image: url(debugger-step-over.png);
michael@0 165 }
michael@0 166
michael@0 167 #step-in {
michael@0 168 list-style-image: url(debugger-step-in.png);
michael@0 169 }
michael@0 170
michael@0 171 #step-out {
michael@0 172 list-style-image: url(debugger-step-out.png);
michael@0 173 }
michael@0 174
michael@0 175 #debugging-controls > toolbarbutton {
michael@0 176 transition: opacity 0.15s ease-in-out;
michael@0 177 }
michael@0 178
michael@0 179 #debugging-controls > toolbarbutton[disabled=true] {
michael@0 180 opacity: 0.5;
michael@0 181 }
michael@0 182
michael@0 183 #calls-slider {
michael@0 184 -moz-padding-end: 24px;
michael@0 185 }
michael@0 186
michael@0 187 #calls-slider .scale-slider {
michael@0 188 margin: 0;
michael@0 189 }
michael@0 190
michael@0 191 #debugging-toolbar-sizer-button {
michael@0 192 /* This button's only purpose in life is to make the
michael@0 193 container .devtools-toolbar have the right height. */
michael@0 194 visibility: hidden;
michael@0 195 min-width: 1px;
michael@0 196 }
michael@0 197
michael@0 198 /* Calls list pane */
michael@0 199
michael@0 200 #calls-list .side-menu-widget-container {
michael@0 201 background: transparent;
michael@0 202 }
michael@0 203
michael@0 204 #calls-list .side-menu-widget-item {
michael@0 205 padding: 0;
michael@0 206 }
michael@0 207
michael@0 208 /* Calls list items */
michael@0 209
michael@0 210 .theme-dark #calls-list .side-menu-widget-item {
michael@0 211 border-color: #111;
michael@0 212 border-bottom-color: transparent;
michael@0 213 }
michael@0 214
michael@0 215 .theme-light #calls-list .side-menu-widget-item {
michael@0 216 border-color: #eee;
michael@0 217 border-bottom-color: transparent;
michael@0 218 }
michael@0 219
michael@0 220 .theme-dark .call-item-view:hover {
michael@0 221 background-color: rgba(255,255,255,.025);
michael@0 222 }
michael@0 223
michael@0 224 .theme-light .call-item-view:hover {
michael@0 225 background-color: rgba(0,0,0,.025);
michael@0 226 }
michael@0 227
michael@0 228 .theme-dark .call-item-view[draw-call] {
michael@0 229 background-color: rgba(112,191,83,0.15);
michael@0 230 }
michael@0 231
michael@0 232 .theme-light .call-item-view[draw-call] {
michael@0 233 background-color: rgba(44,187,15,0.1);
michael@0 234 }
michael@0 235
michael@0 236 .theme-dark .call-item-view[interesting-call] {
michael@0 237 background-color: rgba(223,128,255,0.15);
michael@0 238 }
michael@0 239
michael@0 240 .theme-light .call-item-view[interesting-call] {
michael@0 241 background-color: rgba(184,46,229,0.1);
michael@0 242 }
michael@0 243
michael@0 244 .call-item-gutter {
michael@0 245 width: calc(@gutterWidth@ + @gutterPaddingStart@);
michael@0 246 -moz-padding-start: @gutterPaddingStart@;
michael@0 247 -moz-padding-end: 4px;
michael@0 248 padding-top: 2px;
michael@0 249 padding-bottom: 2px;
michael@0 250 -moz-border-end: 1px solid;
michael@0 251 -moz-margin-end: 6px;
michael@0 252 }
michael@0 253
michael@0 254 .selected .call-item-gutter {
michael@0 255 background-image: url("editor-debug-location.png");
michael@0 256 background-repeat: no-repeat;
michael@0 257 background-position: 6px center;
michael@0 258 background-size: 12px;
michael@0 259 }
michael@0 260
michael@0 261 .theme-dark .call-item-gutter {
michael@0 262 background-color: #181d20;
michael@0 263 color: #5f7387;
michael@0 264 border-color: #000;
michael@0 265 }
michael@0 266
michael@0 267 .theme-light .call-item-gutter {
michael@0 268 background-color: #f7f7f7;
michael@0 269 color: #667380;
michael@0 270 border-color: #aaa;
michael@0 271 }
michael@0 272
michael@0 273 .call-item-index {
michael@0 274 text-align: end;
michael@0 275 }
michael@0 276
michael@0 277 .theme-dark .call-item-context {
michael@0 278 color: #eb5368; /* Highlight Orange */
michael@0 279 }
michael@0 280
michael@0 281 .theme-light .call-item-context {
michael@0 282 color: #f13c00; /* Highlight Orange */
michael@0 283 }
michael@0 284
michael@0 285 .theme-dark .call-item-name {
michael@0 286 color: #46afe3; /* Highlight Blue */
michael@0 287 }
michael@0 288
michael@0 289 .theme-light .call-item-name {
michael@0 290 color: #0088cc; /* Highlight Blue */
michael@0 291 }
michael@0 292
michael@0 293 .call-item-location {
michael@0 294 -moz-padding-start: 2px;
michael@0 295 -moz-padding-end: 6px;
michael@0 296 text-align: end;
michael@0 297 cursor: pointer;
michael@0 298 }
michael@0 299
michael@0 300 .theme-dark .call-item-location:hover {
michael@0 301 color: #0088cc; /* Highlight Blue */
michael@0 302 }
michael@0 303
michael@0 304 .theme-light .call-item-location:hover {
michael@0 305 color: #46afe3; /* Highlight Blue */
michael@0 306 }
michael@0 307
michael@0 308 .call-item-view:hover .call-item-location,
michael@0 309 .call-item-view[expanded] .call-item-location {
michael@0 310 text-decoration: underline;
michael@0 311 }
michael@0 312
michael@0 313 .theme-dark .call-item-location {
michael@0 314 border-color: #111;
michael@0 315 color: #5e88b0; /* Highlight Blue-Grey */
michael@0 316 }
michael@0 317
michael@0 318 .theme-light .call-item-location {
michael@0 319 border-color: #eee;
michael@0 320 color: #5f88b0; /* Highlight Blue-Grey */
michael@0 321 }
michael@0 322
michael@0 323 .call-item-stack {
michael@0 324 -moz-padding-start: calc(@gutterWidth@ + @gutterPaddingStart@);
michael@0 325 padding-bottom: 10px;
michael@0 326 }
michael@0 327
michael@0 328 .theme-dark .call-item-stack {
michael@0 329 background: rgba(0,0,0,0.9);
michael@0 330 }
michael@0 331
michael@0 332 .theme-light .call-item-stack {
michael@0 333 background: rgba(255,255,255,0.9);
michael@0 334 }
michael@0 335
michael@0 336 .call-item-stack-fn {
michael@0 337 padding-top: 2px;
michael@0 338 padding-bottom: 2px;
michael@0 339 }
michael@0 340
michael@0 341 .call-item-stack-fn-location {
michael@0 342 -moz-padding-start: 2px;
michael@0 343 -moz-padding-end: 6px;
michael@0 344 text-align: end;
michael@0 345 cursor: pointer;
michael@0 346 text-decoration: underline;
michael@0 347 }
michael@0 348
michael@0 349 .theme-dark .call-item-stack-fn-name {
michael@0 350 color: #a9bacb; /* Content (Text) - Light */
michael@0 351 }
michael@0 352
michael@0 353 .theme-light .call-item-stack-fn-name {
michael@0 354 color: #667380; /* Content (Text) - Dark Grey */
michael@0 355 }
michael@0 356
michael@0 357 .theme-dark .call-item-stack-fn-location {
michael@0 358 color: #5e88b0; /* Highlight Blue-Grey */
michael@0 359 }
michael@0 360
michael@0 361 .theme-light .call-item-stack-fn-location {
michael@0 362 color: #5e88b0; /* Highlight Blue-Grey */
michael@0 363 }
michael@0 364
michael@0 365 .theme-dark .call-item-stack-fn-location:hover {
michael@0 366 color: #0088cc; /* Highlight Blue */
michael@0 367 }
michael@0 368
michael@0 369 .theme-light .call-item-stack-fn-location:hover {
michael@0 370 color: #46afe3; /* Highlight Blue */
michael@0 371 }
michael@0 372
michael@0 373 #calls-list .selected .call-item-contents > label:not(.call-item-gutter) {
michael@0 374 /* Text inside a selected item should not be custom colored. */
michael@0 375 color: inherit !important;
michael@0 376 }
michael@0 377
michael@0 378 /* Rendering preview */
michael@0 379
michael@0 380 #screenshot-container {
michael@0 381 background-image: @checkerboardPattern@;
michael@0 382 background-size: 30px 30px, 30px 30px;
michael@0 383 background-position: 0px 0px, 15px 15px;
michael@0 384 background-repeat: repeat, repeat;
michael@0 385 }
michael@0 386
michael@0 387 .theme-dark #screenshot-container {
michael@0 388 background-color: @darkCheckerboardBackground@;
michael@0 389 }
michael@0 390
michael@0 391 .theme-light #screenshot-container {
michael@0 392 background-color: @lightCheckerboardBackground@;
michael@0 393 }
michael@0 394
michael@0 395 @media (min-width: 701px) {
michael@0 396 #screenshot-container {
michael@0 397 width: 30vw;
michael@0 398 max-width: 50vw;
michael@0 399 min-width: 100px;
michael@0 400 }
michael@0 401 }
michael@0 402
michael@0 403 @media (max-width: 700px) {
michael@0 404 #screenshot-container {
michael@0 405 height: 40vh;
michael@0 406 max-height: 70vh;
michael@0 407 min-height: 100px;
michael@0 408 }
michael@0 409 }
michael@0 410
michael@0 411 #screenshot-image {
michael@0 412 background-image: -moz-element(#screenshot-rendering);
michael@0 413 background-size: contain;
michael@0 414 background-position: center, center;
michael@0 415 background-repeat: no-repeat;
michael@0 416 }
michael@0 417
michael@0 418 #screenshot-image[flipped=true] {
michael@0 419 transform: scaleY(-1);
michael@0 420 }
michael@0 421
michael@0 422 #screenshot-dimensions {
michael@0 423 padding-top: 4px;
michael@0 424 padding-bottom: 4px;
michael@0 425 text-align: center;
michael@0 426 }
michael@0 427
michael@0 428 .theme-dark #screenshot-dimensions {
michael@0 429 background-color: rgba(0,0,0,0.4);
michael@0 430 }
michael@0 431
michael@0 432 .theme-light #screenshot-dimensions {
michael@0 433 background-color: rgba(255,255,255,0.8);
michael@0 434 }
michael@0 435
michael@0 436 /* Snapshot filmstrip */
michael@0 437
michael@0 438 #snapshot-filmstrip {
michael@0 439 overflow: hidden;
michael@0 440 }
michael@0 441
michael@0 442 .theme-dark #snapshot-filmstrip {
michael@0 443 border-top: 1px solid #000;
michael@0 444 background-image: url(background-noise-toolbar.png);
michael@0 445 color: #f5f7fa; /* Light foreground text */
michael@0 446 }
michael@0 447
michael@0 448 .theme-light #snapshot-filmstrip {
michael@0 449 border-top: 1px solid #aaa;
michael@0 450 background-image: url(background-noise-toolbar.png);
michael@0 451 color: #585959; /* Grey foreground text */
michael@0 452 }
michael@0 453
michael@0 454 .filmstrip-thumbnail {
michael@0 455 image-rendering: -moz-crisp-edges;
michael@0 456 background-image: @checkerboardPattern@;
michael@0 457 background-size: 12px 12px, 12px 12px;
michael@0 458 background-position: 0px -1px, 6px 5px;
michael@0 459 background-repeat: repeat, repeat;
michael@0 460 background-origin: content-box;
michael@0 461 cursor: pointer;
michael@0 462 padding-top: 1px;
michael@0 463 padding-bottom: 1px;
michael@0 464 transition: opacity 0.1s ease-in-out;
michael@0 465 }
michael@0 466
michael@0 467 .filmstrip-thumbnail[flipped=true] {
michael@0 468 transform: scaleY(-1);
michael@0 469 }
michael@0 470
michael@0 471 .theme-dark .filmstrip-thumbnail {
michael@0 472 background-color: @darkCheckerboardBackground@;
michael@0 473 }
michael@0 474
michael@0 475 .theme-light .filmstrip-thumbnail {
michael@0 476 background-color: @lightCheckerboardBackground@;
michael@0 477 }
michael@0 478
michael@0 479 .theme-dark .filmstrip-thumbnail {
michael@0 480 -moz-border-end: 1px solid #000;
michael@0 481 }
michael@0 482
michael@0 483 .theme-light .filmstrip-thumbnail {
michael@0 484 -moz-border-end: 1px solid #aaa;
michael@0 485 }
michael@0 486
michael@0 487 .theme-dark #snapshot-filmstrip > .filmstrip-thumbnail:hover,
michael@0 488 .theme-dark #snapshot-filmstrip:not(:hover) > .filmstrip-thumbnail[highlighted] {
michael@0 489 border: 1px solid #46afe3; /* Highlight Blue */
michael@0 490 margin: 0 0 0 -1px;
michael@0 491 padding: 0;
michael@0 492 opacity: 0.66;
michael@0 493 }
michael@0 494
michael@0 495 .theme-light #snapshot-filmstrip > .filmstrip-thumbnail:hover,
michael@0 496 .theme-light #snapshot-filmstrip:not(:hover) > .filmstrip-thumbnail[highlighted] {
michael@0 497 border: 1px solid #0088cc; /* Highlight Blue */
michael@0 498 margin: 0 0 0 -1px;
michael@0 499 padding: 0;
michael@0 500 opacity: 0.66;
michael@0 501 }

mercurial