| 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 | |
| 6 | window { |
| 7 | padding: 0; |
| 8 | } |
| 9 | |
| 10 | /* === BEGIN netmonitor.inc.css === */ |
| 11 | |
| 12 | #requests-menu-empty-notice { |
| 13 | margin: 0; |
| 14 | padding: 12px; |
| 15 | font-size: 120%; |
| 16 | |
| 17 | color: #FF9F00; |
| 18 | } |
| 19 | |
| 20 | #requests-menu-perf-notice-button { |
| 21 | min-width: 30px; |
| 22 | min-height: 28px; |
| 23 | margin: 0; |
| 24 | list-style-image: url("profiler-stopwatch.png"); |
| 25 | -moz-image-region: rect(0px,32px,16px,16px); |
| 26 | } |
| 27 | |
| 28 | #requests-menu-perf-notice-button .button-text { |
| 29 | display: none; |
| 30 | } |
| 31 | |
| 32 | /* Network requests table */ |
| 33 | |
| 34 | #requests-menu-toolbar { |
| 35 | } |
| 36 | |
| 37 | #requests-menu-toolbar > .toolbar-box > .toolbar-startcap, |
| 38 | #requests-menu-toolbar > .toolbar-box > .toolbar-endcap { |
| 39 | display: none; |
| 40 | } |
| 41 | |
| 42 | .requests-menu-header:first-child { |
| 43 | -moz-padding-start: 4px; |
| 44 | -moz-margin-start: 4px; |
| 45 | } |
| 46 | |
| 47 | .requests-menu-subitem { |
| 48 | padding: 4px; |
| 49 | } |
| 50 | |
| 51 | .requests-menu-header:not(:last-child), |
| 52 | .requests-menu-subitem:not(:last-child) { |
| 53 | -moz-border-end: 1px solid #9C9CFF; |
| 54 | } |
| 55 | |
| 56 | .requests-menu-header:not(:last-child):-moz-locale-dir(rtl), |
| 57 | .requests-menu-subitem:not(:last-child):-moz-locale-dir(rtl) { |
| 58 | } |
| 59 | |
| 60 | .requests-menu-header-button, |
| 61 | #requests-menu-status-button { |
| 62 | background-color: transparent; |
| 63 | border-radius: 0; |
| 64 | min-width: 20px; |
| 65 | margin: 0; |
| 66 | font-weight: inherit !important; |
| 67 | transition: background-color 0.1s ease-in-out; |
| 68 | } |
| 69 | |
| 70 | .requests-menu-header-button > .button-box, |
| 71 | #requests-menu-status-button > .button-box { |
| 72 | border-radius: 0; |
| 73 | -moz-padding-start: 0; |
| 74 | -moz-padding-end: 0; |
| 75 | border: 0; |
| 76 | } |
| 77 | |
| 78 | .requests-menu-header-button:hover { |
| 79 | background-color: #FFCF00; |
| 80 | } |
| 81 | |
| 82 | .requests-menu-header-button:hover:active { |
| 83 | background-color: #FF9F00; |
| 84 | } |
| 85 | |
| 86 | .requests-menu-header-button:not(:active)[sorted] { |
| 87 | background-color: #008484; |
| 88 | } |
| 89 | |
| 90 | .requests-menu-header-button:not(:active)[sorted=ascending] { |
| 91 | background-image: radial-gradient(farthest-side at center top, rgba(0,0,0,.7), rgba(0,0,0,0.3)); |
| 92 | background-size: 100% 1px; |
| 93 | background-repeat: no-repeat; |
| 94 | } |
| 95 | |
| 96 | .requests-menu-header-button:not(:active)[sorted=descending] { |
| 97 | background-image: radial-gradient(farthest-side at center bottom, rgba(0,0,0,.7), rgba(0,0,0,0.3)); |
| 98 | background-size: 100% 1px; |
| 99 | background-repeat: no-repeat; |
| 100 | background-position: bottom; |
| 101 | } |
| 102 | |
| 103 | #requests-menu-status-button { |
| 104 | border: none; |
| 105 | } |
| 106 | |
| 107 | #requests-menu-status-button > .button-box { |
| 108 | padding: 0; |
| 109 | } |
| 110 | |
| 111 | /* Network requests table: specific column dimensions */ |
| 112 | |
| 113 | .requests-menu-status-and-method { |
| 114 | width: 8em; |
| 115 | } |
| 116 | |
| 117 | .requests-menu-status { |
| 118 | width: 10px; |
| 119 | height: 10px; |
| 120 | margin: 0px 2px; |
| 121 | } |
| 122 | |
| 123 | .requests-menu-method { |
| 124 | text-align: center; |
| 125 | font-weight: 600; |
| 126 | } |
| 127 | |
| 128 | .requests-menu-icon-and-file { |
| 129 | width: 20vw; |
| 130 | min-width: 4em; |
| 131 | } |
| 132 | |
| 133 | .requests-menu-icon { |
| 134 | background: #FFCF00; |
| 135 | width: calc(1em + 4px); |
| 136 | height: calc(1em + 4px); |
| 137 | margin: -4px 0px; |
| 138 | -moz-margin-end: 4px; |
| 139 | } |
| 140 | |
| 141 | .requests-menu-icon { |
| 142 | outline: 1px solid #A09090; |
| 143 | } |
| 144 | |
| 145 | .requests-menu-file { |
| 146 | text-align: start; |
| 147 | } |
| 148 | |
| 149 | .requests-menu-domain { |
| 150 | width: 14vw; |
| 151 | min-width: 10em; |
| 152 | } |
| 153 | |
| 154 | .requests-menu-type { |
| 155 | text-align: center; |
| 156 | width: 4em; |
| 157 | } |
| 158 | |
| 159 | .requests-menu-size { |
| 160 | text-align: center; |
| 161 | width: 8em; |
| 162 | } |
| 163 | |
| 164 | /* Network requests table: status codes */ |
| 165 | |
| 166 | box.requests-menu-status { |
| 167 | background-color: #A09090; |
| 168 | width: 10px; |
| 169 | -moz-margin-start: 5px; |
| 170 | -moz-margin-end: 5px; |
| 171 | border-radius: 20px; |
| 172 | border: 1px solid #000000; |
| 173 | transition: background-color 0.5s ease-in-out; |
| 174 | } |
| 175 | |
| 176 | label.requests-menu-status-code { |
| 177 | -moz-margin-start: 3px !important; |
| 178 | width: 3em; |
| 179 | -moz-margin-end: -3em !important; |
| 180 | } |
| 181 | |
| 182 | box.requests-menu-status:not([code]) { |
| 183 | background-color: #A09090; /* dark grey */ |
| 184 | } |
| 185 | |
| 186 | box.requests-menu-status[code^="1"] { |
| 187 | background-color: #9C9CFF; /* light blue */ |
| 188 | } |
| 189 | |
| 190 | box.requests-menu-status[code^="2"] { |
| 191 | background-color: #008484; /* green */ |
| 192 | } |
| 193 | |
| 194 | /* 3xx are triangles */ |
| 195 | box.requests-menu-status[code^="3"] { |
| 196 | background-color: transparent; |
| 197 | width: 0; |
| 198 | height: 0; |
| 199 | border-left: 5px solid transparent; |
| 200 | border-right: 5px solid transparent; |
| 201 | border-bottom: 10px solid #FF9F00; /* light orange */ |
| 202 | border-radius: 0; |
| 203 | } |
| 204 | |
| 205 | /* 4xx and 5xx are squares - error codes */ |
| 206 | box.requests-menu-status[code^="4"] { |
| 207 | background-color: #FF0000; /* red */ |
| 208 | border-radius: 0; /* squares */ |
| 209 | } |
| 210 | |
| 211 | box.requests-menu-status[code^="5"] { |
| 212 | background-color: #6000CF; /* pink? */ |
| 213 | border-radius: 0; |
| 214 | transform: rotate(45deg); |
| 215 | } |
| 216 | |
| 217 | /* Network requests table: waterfall header */ |
| 218 | |
| 219 | #requests-menu-waterfall-label { |
| 220 | -moz-padding-start: 8px; |
| 221 | -moz-padding-end: 8px; |
| 222 | } |
| 223 | |
| 224 | .requests-menu-timings-division { |
| 225 | width: 100px; |
| 226 | padding-top: 1px; |
| 227 | -moz-padding-start: 4px; |
| 228 | -moz-border-start: 1px dotted #000000; |
| 229 | font-size: 90%; |
| 230 | pointer-events: none; |
| 231 | } |
| 232 | |
| 233 | .requests-menu-timings-division:not(:first-child) { |
| 234 | -moz-border-start: 1px dotted; |
| 235 | -moz-margin-start: -100px !important; /* Don't affect layout. */ |
| 236 | } |
| 237 | |
| 238 | .requests-menu-timings-division:-moz-locale-dir(ltr) { |
| 239 | transform-origin: left center; |
| 240 | } |
| 241 | |
| 242 | .requests-menu-timings-division:-moz-locale-dir(rtl) { |
| 243 | transform-origin: right center; |
| 244 | } |
| 245 | |
| 246 | .requests-menu-timings-division[division-scale=millisecond] { |
| 247 | -moz-border-start-color: #FF9F00 !important; /* Light foreground text */ |
| 248 | } |
| 249 | |
| 250 | .requests-menu-timings-division[division-scale=second] { |
| 251 | -moz-border-start-color: #E7ADE7 !important; /* Light orange highlight color */ |
| 252 | font-weight: 600; |
| 253 | } |
| 254 | |
| 255 | .requests-menu-timings-division[division-scale=minute] { |
| 256 | -moz-border-start-color: #FF0000 !important; /* Red highlight color */ |
| 257 | font-weight: 600; |
| 258 | } |
| 259 | |
| 260 | /* Network requests table: waterfall items */ |
| 261 | |
| 262 | .requests-menu-subitem.requests-menu-waterfall { |
| 263 | -moz-padding-start: 0px; |
| 264 | -moz-padding-end: 4px; |
| 265 | background-repeat: repeat-y; /* Background created on a <canvas> in js. */ |
| 266 | background-position: -1px center; |
| 267 | } |
| 268 | |
| 269 | .requests-menu-subitem.requests-menu-waterfall:-moz-locale-dir(rtl) { |
| 270 | background-position: right center; |
| 271 | } |
| 272 | |
| 273 | .requests-menu-timings:-moz-locale-dir(ltr) { |
| 274 | transform-origin: left center; |
| 275 | } |
| 276 | |
| 277 | .requests-menu-timings:-moz-locale-dir(rtl) { |
| 278 | transform-origin: right center; |
| 279 | } |
| 280 | |
| 281 | .requests-menu-timings-total:-moz-locale-dir(ltr) { |
| 282 | transform-origin: left center; |
| 283 | } |
| 284 | |
| 285 | .requests-menu-timings-total:-moz-locale-dir(rtl) { |
| 286 | transform-origin: right center; |
| 287 | } |
| 288 | |
| 289 | .requests-menu-timings-total { |
| 290 | -moz-padding-start: 4px; |
| 291 | font-size: 85%; |
| 292 | font-weight: 600; |
| 293 | } |
| 294 | |
| 295 | .requests-menu-timings-box { |
| 296 | height: 9px; |
| 297 | } |
| 298 | |
| 299 | .requests-menu-timings-box.blocked { |
| 300 | background-color: #FF0000; /* red */ |
| 301 | } |
| 302 | |
| 303 | .requests-menu-timings-box.dns { |
| 304 | background-color: #E7ADE7; /* pink */ |
| 305 | } |
| 306 | |
| 307 | .requests-menu-timings-box.connect { |
| 308 | background-color: #FF9F00; /* orange */ |
| 309 | } |
| 310 | |
| 311 | .requests-menu-timings-box.send { |
| 312 | background-color: #FFCF00; /* light blue */ |
| 313 | } |
| 314 | |
| 315 | .requests-menu-timings-box.wait { |
| 316 | background-color: #9C9CFF; /* blue grey */ |
| 317 | } |
| 318 | |
| 319 | .requests-menu-timings-box.receive { |
| 320 | background-color: #A09090; /* green */ |
| 321 | } |
| 322 | |
| 323 | /* SideMenuWidget */ |
| 324 | |
| 325 | .side-menu-widget-item-contents { |
| 326 | padding: 0px; |
| 327 | } |
| 328 | |
| 329 | .side-menu-widget-container { |
| 330 | box-shadow: none !important; |
| 331 | } |
| 332 | |
| 333 | .side-menu-widget-item:not(.selected)[odd] { |
| 334 | background: rgba(255,159,0,0.1); |
| 335 | } |
| 336 | |
| 337 | /* Network request details */ |
| 338 | |
| 339 | #details-pane-toggle { |
| 340 | list-style-image: url("chrome://browser/skin/devtools/debugger-collapse.png"); |
| 341 | -moz-image-region: rect(0px,16px,16px,0px); |
| 342 | } |
| 343 | |
| 344 | #details-pane-toggle[pane-collapsed] { |
| 345 | list-style-image: url("chrome://browser/skin/devtools/debugger-expand.png"); |
| 346 | } |
| 347 | |
| 348 | #details-pane-toggle:hover, |
| 349 | #details-pane-toggle:hover:active { |
| 350 | -moz-image-region: rect(0px,32px,16px,16px); |
| 351 | } |
| 352 | |
| 353 | /* Network request details tabpanels */ |
| 354 | |
| 355 | .tabpanel-content { |
| 356 | background-color: #000000; |
| 357 | color: #FF9F00; |
| 358 | } |
| 359 | |
| 360 | /* Summary tabpanel */ |
| 361 | |
| 362 | .tabpanel-summary-container { |
| 363 | padding: 1px; |
| 364 | } |
| 365 | |
| 366 | .tabpanel-summary-label { |
| 367 | -moz-padding-start: 4px; |
| 368 | -moz-padding-end: 3px; |
| 369 | font-weight: 600; |
| 370 | } |
| 371 | |
| 372 | .tabpanel-summary-value { |
| 373 | -moz-padding-start: 3px; |
| 374 | } |
| 375 | |
| 376 | /* Headers tabpanel */ |
| 377 | |
| 378 | #headers-summary-status, |
| 379 | #headers-summary-version { |
| 380 | padding-bottom: 2px; |
| 381 | } |
| 382 | |
| 383 | #headers-summary-size { |
| 384 | padding-top: 2px; |
| 385 | } |
| 386 | |
| 387 | #headers-summary-resend { |
| 388 | margin: 0 6px; |
| 389 | /* min-height: 20px;*/ |
| 390 | } |
| 391 | |
| 392 | /* Response tabpanel */ |
| 393 | |
| 394 | #response-content-info-header { |
| 395 | margin: 0; |
| 396 | padding: 3px 8px; |
| 397 | |
| 398 | background-color: #FF0000; /* Red highlight */ |
| 399 | color: #000000; /* Light foreground text */ |
| 400 | } |
| 401 | |
| 402 | #response-content-image-box { |
| 403 | padding-top: 10px; |
| 404 | padding-bottom: 10px; |
| 405 | } |
| 406 | |
| 407 | #response-content-image { |
| 408 | background: #FFFFFF; |
| 409 | border: 1px dashed #A09090; |
| 410 | margin-bottom: 10px; |
| 411 | } |
| 412 | |
| 413 | /* Preview tabpanel */ |
| 414 | |
| 415 | #preview-tabpanel { |
| 416 | background: #fff; |
| 417 | } |
| 418 | |
| 419 | #response-preview { |
| 420 | display: -moz-box; |
| 421 | -moz-box-flex: 1; |
| 422 | } |
| 423 | |
| 424 | /* Timings tabpanel */ |
| 425 | |
| 426 | #timings-tabpanel .tabpanel-summary-label { |
| 427 | width: 10em; |
| 428 | } |
| 429 | |
| 430 | #timings-tabpanel .requests-menu-timings-box { |
| 431 | transition: transform 0.2s ease-out; |
| 432 | min-width: 1px; |
| 433 | border: none; |
| 434 | } |
| 435 | |
| 436 | #timings-tabpanel .requests-menu-timings-total { |
| 437 | transition: transform 0.2s ease-out; |
| 438 | } |
| 439 | |
| 440 | /* Custom request form */ |
| 441 | |
| 442 | #custom-pane { |
| 443 | padding: 0.6em 0.5em; |
| 444 | } |
| 445 | |
| 446 | .custom-header { |
| 447 | font-size: 1.1em; |
| 448 | } |
| 449 | |
| 450 | .custom-section { |
| 451 | margin-top: 0.5em; |
| 452 | } |
| 453 | |
| 454 | #custom-method-value { |
| 455 | width: 4.5em; |
| 456 | } |
| 457 | |
| 458 | /* Footer */ |
| 459 | |
| 460 | #requests-menu-footer { |
| 461 | border-top: 1px solid #9C9CFF; |
| 462 | padding-top: 3px; |
| 463 | } |
| 464 | |
| 465 | .requests-menu-footer-button, |
| 466 | .requests-menu-footer-label { |
| 467 | min-width: 1em; |
| 468 | margin: 0; |
| 469 | -moz-margin-end: 3px; |
| 470 | border: none; |
| 471 | padding: 0px 1vw; |
| 472 | |
| 473 | /* color: #fff;*/ |
| 474 | } |
| 475 | |
| 476 | .requests-menu-footer-spacer { |
| 477 | min-width: 2px; |
| 478 | } |
| 479 | |
| 480 | .requests-menu-footer-spacer, |
| 481 | .requests-menu-footer-button { |
| 482 | } |
| 483 | |
| 484 | .requests-menu-footer-button { |
| 485 | } |
| 486 | |
| 487 | .requests-menu-footer-button:hover { |
| 488 | } |
| 489 | |
| 490 | .requests-menu-footer-button:hover:active { |
| 491 | } |
| 492 | |
| 493 | .requests-menu-footer-button:not(:active)[checked] { |
| 494 | } |
| 495 | |
| 496 | .requests-menu-footer-label { |
| 497 | font-weight: 600; |
| 498 | } |
| 499 | |
| 500 | /* Performance analysis buttons */ |
| 501 | |
| 502 | #requests-menu-network-summary-button { |
| 503 | list-style-image: url("profiler-stopwatch.png"); |
| 504 | -moz-image-region: rect(0px,32px,16px,16px); |
| 505 | -moz-padding-end: 0; |
| 506 | cursor: pointer; |
| 507 | } |
| 508 | |
| 509 | #requests-menu-network-summary-label { |
| 510 | -moz-padding-start: 0; |
| 511 | cursor: pointer; |
| 512 | } |
| 513 | |
| 514 | #requests-menu-network-summary-label:hover { |
| 515 | text-decoration: underline; |
| 516 | } |
| 517 | |
| 518 | /* Performance analysis view */ |
| 519 | |
| 520 | #network-statistics-toolbar { |
| 521 | /* Make the toolbar invisible, it only hold the back button */ |
| 522 | -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar"); |
| 523 | background-color: #000000; |
| 524 | } |
| 525 | |
| 526 | #network-statistics-back-button { |
| 527 | min-width: 4em; |
| 528 | min-height: 100vh; |
| 529 | } |
| 530 | |
| 531 | #network-statistics-view-splitter { |
| 532 | cursor: default; |
| 533 | pointer-events: none; |
| 534 | } |
| 535 | |
| 536 | #network-statistics-charts { |
| 537 | min-height: 1px; |
| 538 | |
| 539 | background: #000000; /* Toolbars */ |
| 540 | } |
| 541 | |
| 542 | #network-statistics-charts .pie-chart-container { |
| 543 | -moz-margin-start: 3vw; |
| 544 | -moz-margin-end: 1vw; |
| 545 | } |
| 546 | |
| 547 | #network-statistics-charts .table-chart-container { |
| 548 | -moz-margin-start: 1vw; |
| 549 | -moz-margin-end: 3vw; |
| 550 | } |
| 551 | |
| 552 | .chart-colored-blob[name=html] { |
| 553 | fill: #A09090; /* Blue-Grey highlight */ |
| 554 | background: #A09090; |
| 555 | } |
| 556 | |
| 557 | .chart-colored-blob[name=css] { |
| 558 | fill: #9C9CFF; /* Blue highlight */ |
| 559 | background: #9C9CFF; |
| 560 | } |
| 561 | |
| 562 | .chart-colored-blob[name=js] { |
| 563 | fill: #FFCF00; /* Light Orange highlight */ |
| 564 | background: #FFCF00; |
| 565 | } |
| 566 | |
| 567 | .chart-colored-blob[name=xhr] { |
| 568 | fill: #FF9F00; /* Orange highlight */ |
| 569 | background: #FF9F00; |
| 570 | } |
| 571 | |
| 572 | .chart-colored-blob[name=fonts] { |
| 573 | fill: #6000CF; /* Purple highlight */ |
| 574 | background: #6000CF; |
| 575 | } |
| 576 | |
| 577 | .chart-colored-blob[name=images] { |
| 578 | fill: #E7ADE7; /* Pink highlight */ |
| 579 | background: #E7ADE7; |
| 580 | } |
| 581 | |
| 582 | .chart-colored-blob[name=media] { |
| 583 | fill: #008484; /* Green highlight */ |
| 584 | background: #008484; |
| 585 | } |
| 586 | |
| 587 | .chart-colored-blob[name=flash] { |
| 588 | fill: #FF0000; /* Red highlight */ |
| 589 | background: #FF0000; |
| 590 | } |
| 591 | |
| 592 | .table-chart-row-label[name=cached] { |
| 593 | display: none; |
| 594 | } |
| 595 | |
| 596 | .table-chart-row-label[name=count] { |
| 597 | width: 3em; |
| 598 | text-align: end; |
| 599 | } |
| 600 | |
| 601 | .table-chart-row-label[name=label] { |
| 602 | width: 7em; |
| 603 | } |
| 604 | |
| 605 | .table-chart-row-label[name=size] { |
| 606 | width: 7em; |
| 607 | } |
| 608 | |
| 609 | .table-chart-row-label[name=time] { |
| 610 | width: 7em; |
| 611 | } |
| 612 | |
| 613 | /* Responsive sidebar */ |
| 614 | @media (max-width: 700px) { |
| 615 | #requests-menu-toolbar { |
| 616 | height: 24px; |
| 617 | } |
| 618 | |
| 619 | .requests-menu-header-button { |
| 620 | min-height: 24px; |
| 621 | } |
| 622 | |
| 623 | #details-pane { |
| 624 | margin: 0 !important; |
| 625 | /* To prevent all the margin hacks to hide the sidebar. */ |
| 626 | } |
| 627 | |
| 628 | .requests-menu-status-and-method { |
| 629 | width: 16vw; |
| 630 | } |
| 631 | |
| 632 | .requests-menu-icon-and-file, |
| 633 | .requests-menu-domain { |
| 634 | width: 30vw; |
| 635 | } |
| 636 | |
| 637 | .requests-menu-type { |
| 638 | width: 8vw; |
| 639 | } |
| 640 | |
| 641 | .requests-menu-size { |
| 642 | width: 16vw; |
| 643 | border-width: 0 !important; |
| 644 | box-shadow: none !important; |
| 645 | /* The "Timeline" header is not visible anymore, and thus the |
| 646 | right border and box-shadow of "Size" column should be hidden. */ |
| 647 | } |
| 648 | } |
| 649 | |
| 650 | @media (min-width: 701px) { |
| 651 | #network-table[type-overflows] .requests-menu-domain { |
| 652 | border-width: 0 !important; |
| 653 | box-shadow: none !important; |
| 654 | /* The "Type" header is not visible anymore, and thus the |
| 655 | right border and box-shadow of "Domain" column should be hidden. */ |
| 656 | } |
| 657 | |
| 658 | #network-table[domain-overflows] .requests-menu-icon-and-file { |
| 659 | border-width: 0 !important; |
| 660 | box-shadow: none !important; |
| 661 | /* The "Domain" header is not visible anymore, and thus the |
| 662 | right border and box-shadow of "File" column should be hidden. */ |
| 663 | } |
| 664 | } |
| 665 | |
| 666 | /* === END netmonitor.inc.css === */ |