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/. */
10 /* === BEGIN netmonitor.inc.css === */
12 #requests-menu-empty-notice {
20 #notice-perf-message {
24 #requests-menu-perf-notice-button {
28 list-style-image: url("profiler-stopwatch.svg");
31 #requests-menu-perf-notice-button .button-text {
35 #requests-menu-reload-notice-button {
40 /* Network requests table */
42 #requests-menu-toolbar {
45 #requests-menu-toolbar > .toolbar-box > .toolbar-startcap,
46 #requests-menu-toolbar > .toolbar-box > .toolbar-endcap {
50 .requests-menu-header:first-child {
51 -moz-padding-start: 4px;
52 -moz-margin-start: 4px;
55 .requests-menu-subitem {
59 .requests-menu-header:not(:last-child),
60 .requests-menu-subitem:not(:last-child) {
61 -moz-border-end: 1px solid #9C9CFF;
64 .requests-menu-header:not(:last-child):-moz-locale-dir(rtl),
65 .requests-menu-subitem:not(:last-child):-moz-locale-dir(rtl) {
68 .requests-menu-header-button,
69 #requests-menu-status-button {
70 background-color: transparent;
74 font-weight: inherit !important;
75 transition: background-color 0.1s ease-in-out;
78 .requests-menu-header-button > .button-box,
79 #requests-menu-status-button > .button-box {
81 -moz-padding-start: 0;
86 .requests-menu-header-button:hover {
87 background-color: #FFCF00;
90 .requests-menu-header-button:hover:active {
91 background-color: #FF9F00;
94 .requests-menu-header-button:not(:active)[sorted] {
95 background-color: #008484;
98 .requests-menu-header-button:not(:active)[sorted=ascending] {
99 background-image: radial-gradient(farthest-side at center top, rgba(0,0,0,.7), rgba(0,0,0,0.3));
100 background-size: 100% 1px;
101 background-repeat: no-repeat;
104 .requests-menu-header-button:not(:active)[sorted=descending] {
105 background-image: radial-gradient(farthest-side at center bottom, rgba(0,0,0,.7), rgba(0,0,0,0.3));
106 background-size: 100% 1px;
107 background-repeat: no-repeat;
108 background-position: bottom;
111 #requests-menu-status-button {
115 #requests-menu-status-button > .button-box {
119 /* Network requests table: specific column dimensions */
121 .requests-menu-status-and-method {
125 .requests-menu-status {
131 .requests-menu-method {
136 .requests-menu-icon-and-file {
141 .requests-menu-icon {
143 width: calc(1em + 4px);
144 height: calc(1em + 4px);
146 -moz-margin-end: 4px;
149 .requests-menu-icon {
150 outline: 1px solid #A09090;
153 .requests-menu-file {
157 .requests-menu-domain {
162 .requests-menu-type {
167 .requests-menu-size {
172 /* Network requests table: status codes */
174 box.requests-menu-status {
175 background-color: #A09090;
177 -moz-margin-start: 5px;
178 -moz-margin-end: 5px;
180 border: 1px solid #000000;
181 transition: background-color 0.5s ease-in-out;
184 label.requests-menu-status-code {
185 -moz-margin-start: 3px !important;
187 -moz-margin-end: -3em !important;
190 box.requests-menu-status:not([code]) {
191 background-color: #A09090; /* dark grey */
194 box.requests-menu-status[code^="1"] {
195 background-color: #9C9CFF; /* light blue */
198 box.requests-menu-status[code^="2"] {
199 background-color: #008484; /* green */
202 /* 3xx are triangles */
203 box.requests-menu-status[code^="3"] {
204 background-color: transparent;
207 border-left: 5px solid transparent;
208 border-right: 5px solid transparent;
209 border-bottom: 10px solid #FF9F00; /* light orange */
213 /* 4xx and 5xx are squares - error codes */
214 box.requests-menu-status[code^="4"] {
215 background-color: #FF0000; /* red */
216 border-radius: 0; /* squares */
219 box.requests-menu-status[code^="5"] {
220 background-color: #6000CF; /* pink? */
222 transform: rotate(45deg);
225 /* Network requests table: waterfall header */
227 #requests-menu-waterfall-label {
228 -moz-padding-start: 8px;
229 -moz-padding-end: 8px;
232 .requests-menu-timings-division {
235 -moz-padding-start: 4px;
236 -moz-border-start: 1px dotted #000000;
238 pointer-events: none;
241 .requests-menu-timings-division:not(:first-child) {
242 -moz-border-start: 1px dotted;
243 -moz-margin-start: -100px !important; /* Don't affect layout. */
246 .requests-menu-timings-division:-moz-locale-dir(ltr) {
247 transform-origin: left center;
250 .requests-menu-timings-division:-moz-locale-dir(rtl) {
251 transform-origin: right center;
254 .requests-menu-timings-division[division-scale=millisecond] {
255 -moz-border-start-color: #FF9F00 !important; /* Light foreground text */
258 .requests-menu-timings-division[division-scale=second] {
259 -moz-border-start-color: #FF9F00 !important; /* Light foreground text */
263 .requests-menu-timings-division[division-scale=minute] {
264 -moz-border-start-color: #FF9F00 !important; /* Light foreground text */
268 /* Network requests table: waterfall items */
270 .requests-menu-subitem.requests-menu-waterfall {
271 -moz-padding-start: 0px;
272 -moz-padding-end: 4px;
273 background-repeat: repeat-y; /* Background created on a <canvas> in js. */
274 background-position: -1px center;
277 .requests-menu-subitem.requests-menu-waterfall:-moz-locale-dir(rtl) {
278 background-position: right center;
281 .requests-menu-timings:-moz-locale-dir(ltr) {
282 transform-origin: left center;
285 .requests-menu-timings:-moz-locale-dir(rtl) {
286 transform-origin: right center;
289 .requests-menu-timings-total:-moz-locale-dir(ltr) {
290 transform-origin: left center;
293 .requests-menu-timings-total:-moz-locale-dir(rtl) {
294 transform-origin: right center;
297 .requests-menu-timings-total {
298 -moz-padding-start: 4px;
303 .requests-menu-timings-box {
307 .requests-menu-timings-box.blocked {
308 background-color: #FF0000; /* red */
311 .requests-menu-timings-box.dns {
312 background-color: #E7ADE7; /* pink */
315 .requests-menu-timings-box.connect {
316 background-color: #FF9F00; /* orange */
319 .requests-menu-timings-box.send {
320 background-color: #FFCF00; /* light blue */
323 .requests-menu-timings-box.wait {
324 background-color: #9C9CFF; /* blue grey */
327 .requests-menu-timings-box.receive {
328 background-color: #A09090; /* green */
333 .side-menu-widget-item-contents {
337 .side-menu-widget-container {
338 box-shadow: none !important;
341 .side-menu-widget-item:not(.selected)[odd] {
342 background: rgba(255,159,0,0.1);
345 /* Network request details */
347 #details-pane-toggle {
348 list-style-image: url("chrome://browser/skin/devtools/debugger-collapse.png");
349 -moz-image-region: rect(0px,16px,16px,0px);
352 #details-pane-toggle > .toolbarbutton-icon {
357 #details-pane-toggle[pane-collapsed] {
358 list-style-image: url("chrome://browser/skin/devtools/debugger-expand.png");
361 #details-pane-toggle:hover,
362 #details-pane-toggle:hover:active {
363 -moz-image-region: rect(0px,32px,16px,16px);
366 @media (min-resolution: 2dppx) {
367 #details-pane-toggle {
368 list-style-image: url("chrome://browser/skin/devtools/debugger-collapse@2x.png");
369 -moz-image-region: rect(0px,32px,32px,0px);
372 #details-pane-toggle[pane-collapsed] {
373 list-style-image: url("chrome://browser/skin/devtools/debugger-expand@2x.png");
376 #details-pane-toggle:active {
377 -moz-image-region: rect(0px,64px,32px,32px);
381 /* Network request details tabpanels */
384 background-color: #000000;
388 /* Summary tabpanel */
390 .tabpanel-summary-container {
394 .tabpanel-summary-label {
395 -moz-padding-start: 4px;
396 -moz-padding-end: 3px;
400 .tabpanel-summary-value {
401 -moz-padding-start: 3px;
404 /* Headers tabpanel */
406 #headers-summary-status,
407 #headers-summary-version {
411 #headers-summary-size {
415 #headers-summary-resend {
417 /* min-height: 20px;*/
420 /* Response tabpanel */
422 #response-content-info-header {
426 background-color: #FF0000; /* Red highlight */
427 color: #000000; /* Light foreground text */
430 #response-content-image-box {
432 padding-bottom: 10px;
435 #response-content-image {
437 border: 1px dashed #A09090;
441 /* Preview tabpanel */
452 /* Timings tabpanel */
454 #timings-tabpanel .tabpanel-summary-label {
458 #timings-tabpanel .requests-menu-timings-box {
459 transition: transform 0.2s ease-out;
464 #timings-tabpanel .requests-menu-timings-total {
465 transition: transform 0.2s ease-out;
468 /* Custom request form */
471 padding: 0.6em 0.5em;
482 #custom-method-value {
488 #requests-menu-footer {
489 border-top: 1px solid #9C9CFF;
493 .requests-menu-footer-button,
494 .requests-menu-footer-label {
497 -moz-margin-end: 3px;
504 .requests-menu-footer-spacer {
508 .requests-menu-footer-spacer,
509 .requests-menu-footer-button {
512 .requests-menu-footer-button {
515 .requests-menu-footer-button:hover {
518 .requests-menu-footer-button:hover:active {
521 .requests-menu-footer-button:not(:active)[checked] {
524 .requests-menu-footer-label {
528 /* Performance analysis buttons */
530 #requests-menu-network-summary-button {
531 list-style-image: url("profiler-stopwatch.svg");
536 #requests-menu-network-summary-label {
537 -moz-padding-start: 0;
541 #requests-menu-network-summary-label:hover {
542 text-decoration: underline;
545 /* Performance analysis view */
547 #network-statistics-toolbar {
548 /* Make the toolbar invisible, it only hold the back button */
549 -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar");
550 background-color: #000000;
553 #network-statistics-back-button {
558 #network-statistics-view-splitter {
560 pointer-events: none;
563 #network-statistics-charts {
566 background: #000000; /* Toolbars */
569 #network-statistics-charts .pie-chart-container {
570 -moz-margin-start: 3vw;
571 -moz-margin-end: 1vw;
574 #network-statistics-charts .table-chart-container {
575 -moz-margin-start: 1vw;
576 -moz-margin-end: 3vw;
579 .chart-colored-blob[name=html] {
580 fill: #A09090; /* Blue-Grey highlight */
584 .chart-colored-blob[name=css] {
585 fill: #9C9CFF; /* Blue highlight */
589 .chart-colored-blob[name=js] {
590 fill: #FFCF00; /* Light Orange highlight */
594 .chart-colored-blob[name=xhr] {
595 fill: #FF9F00; /* Orange highlight */
599 .chart-colored-blob[name=fonts] {
600 fill: #6000CF; /* Purple highlight */
604 .chart-colored-blob[name=images] {
605 fill: #E7ADE7; /* Pink highlight */
609 .chart-colored-blob[name=media] {
610 fill: #008484; /* Green highlight */
614 .chart-colored-blob[name=flash] {
615 fill: #FF0000; /* Red highlight */
619 .table-chart-row-label[name=cached] {
623 .table-chart-row-label[name=count] {
628 .table-chart-row-label[name=label] {
632 .table-chart-row-label[name=size] {
636 .table-chart-row-label[name=time] {
640 /* Responsive sidebar */
641 @media (max-width: 700px) {
642 #requests-menu-toolbar {
646 .requests-menu-header-button {
651 margin: 0 !important;
652 /* To prevent all the margin hacks to hide the sidebar. */
655 .requests-menu-status-and-method {
659 .requests-menu-icon-and-file,
660 .requests-menu-domain {
664 .requests-menu-type {
668 .requests-menu-size {
670 border-width: 0 !important;
671 box-shadow: none !important;
672 /* The "Timeline" header is not visible anymore, and thus the
673 right border and box-shadow of "Size" column should be hidden. */
677 /* === END netmonitor.inc.css === */