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 {
18 #notice-perf-message {
22 #requests-menu-perf-notice-button {
26 list-style-image: url("profiler-stopwatch.svg");
29 #requests-menu-perf-notice-button .button-text {
33 #requests-menu-reload-notice-button {
38 /* Network requests table */
40 #requests-menu-toolbar {
43 #requests-menu-toolbar > .toolbar-box > .toolbar-startcap,
44 #requests-menu-toolbar > .toolbar-box > .toolbar-endcap {
48 .requests-menu-header:first-child {
49 -moz-padding-start: 4px;
50 -moz-margin-start: 4px;
53 .requests-menu-subitem {
57 .requests-menu-header:not(:last-child),
58 .requests-menu-subitem:not(:last-child) {
59 -moz-border-end: 1px solid #9C9CFF;
62 .requests-menu-header:not(:last-child):-moz-locale-dir(rtl),
63 .requests-menu-subitem:not(:last-child):-moz-locale-dir(rtl) {
66 .requests-menu-header-button,
67 #requests-menu-status-button {
68 background-color: transparent;
72 font-weight: inherit !important;
73 transition: background-color 0.1s ease-in-out;
76 .requests-menu-header-button > .button-box,
77 #requests-menu-status-button > .button-box {
79 -moz-padding-start: 0;
84 .requests-menu-header-button:hover {
85 background-color: #FFCF00;
88 .requests-menu-header-button:hover:active {
89 background-color: #FF9F00;
92 .requests-menu-header-button:not(:active)[sorted] {
93 background-color: #008484;
96 .requests-menu-header-button:not(:active)[sorted=ascending] {
97 background-image: radial-gradient(farthest-side at center top, rgba(0,0,0,.7), rgba(0,0,0,0.3));
98 background-size: 100% 1px;
99 background-repeat: no-repeat;
102 .requests-menu-header-button:not(:active)[sorted=descending] {
103 background-image: radial-gradient(farthest-side at center bottom, rgba(0,0,0,.7), rgba(0,0,0,0.3));
104 background-size: 100% 1px;
105 background-repeat: no-repeat;
106 background-position: bottom;
109 #requests-menu-status-button {
113 #requests-menu-status-button > .button-box {
117 /* Network requests table: specific column dimensions */
119 .requests-menu-status-and-method {
123 .requests-menu-status {
129 .requests-menu-method {
134 .requests-menu-icon-and-file {
139 .requests-menu-icon {
141 width: calc(1em + 4px);
142 height: calc(1em + 4px);
144 -moz-margin-end: 4px;
147 .requests-menu-icon {
148 outline: 1px solid #A09090;
151 .requests-menu-file {
155 .requests-menu-security-and-domain {
160 .requests-security-state-icon {
161 -moz-margin-end: 4px;
162 -moz-image-region:rect(0px, 16px, 16px, 0px);
165 .requests-security-state-icon:hover {
166 -moz-image-region: rect(0px, 32px, 16px, 16px);
169 .requests-security-state-icon:active {
170 -moz-image-region: rect(0px, 48px, 16px, 32px);
173 .security-state-insecure {
174 list-style-image: url("chrome://browser/skin/identity-icons-generic.png");
177 .security-state-secure {
179 list-style-image: url("chrome://browser/skin/identity-icons-https.png");
182 .security-state-weak {
184 list-style-image: url("chrome://browser/skin/identity-icons-https-mixed-display.png");
187 .security-state-broken {
189 list-style-image: url("chrome://browser/skin/identity-icons-https-mixed-active.png");
192 .requests-menu-type {
197 .requests-menu-size {
202 .requests-menu-transferred {
207 /* Network requests table: status codes */
209 box.requests-menu-status {
210 background-color: #A09090;
212 -moz-margin-start: 5px;
213 -moz-margin-end: 5px;
215 border: 1px solid #000000;
216 transition: background-color 0.5s ease-in-out;
219 label.requests-menu-status-code {
220 -moz-margin-start: 3px !important;
222 -moz-margin-end: -3em !important;
225 box.requests-menu-status:not([code]) {
226 background-color: #A09090; /* dark grey */
229 box.requests-menu-status[code="cached"] {
230 border: 2px solid #A09090; /* dark grey */
231 background-color: transparent;
234 box.requests-menu-status[code^="1"] {
235 background-color: #9C9CFF; /* light blue */
238 box.requests-menu-status[code^="2"] {
239 background-color: #008484; /* green */
242 /* 3xx are triangles */
243 box.requests-menu-status[code^="3"] {
244 background-color: transparent;
247 border-left: 5px solid transparent;
248 border-right: 5px solid transparent;
249 border-bottom: 10px solid #FF9F00; /* light orange */
253 /* 4xx and 5xx are squares - error codes */
254 box.requests-menu-status[code^="4"] {
255 background-color: #FF0000; /* red */
256 border-radius: 0; /* squares */
259 box.requests-menu-status[code^="5"] {
260 background-color: #6000CF; /* pink? */
262 transform: rotate(45deg);
265 /* Network requests table: waterfall header */
267 #requests-menu-waterfall-label {
268 -moz-padding-start: 8px;
269 -moz-padding-end: 8px;
272 .requests-menu-timings-division {
275 -moz-padding-start: 4px;
276 -moz-border-start: 1px dotted #000000;
278 pointer-events: none;
281 .requests-menu-timings-division:not(:first-child) {
282 -moz-border-start: 1px dotted;
283 -moz-margin-start: -100px !important; /* Don't affect layout. */
286 .requests-menu-timings-division:-moz-locale-dir(ltr) {
287 transform-origin: left center;
290 .requests-menu-timings-division:-moz-locale-dir(rtl) {
291 transform-origin: right center;
294 .requests-menu-timings-division[division-scale=millisecond] {
295 -moz-border-start-color: var(--theme-body-color) !important;
298 .requests-menu-timings-division[division-scale=second] {
299 -moz-border-start-color: var(--theme-body-color) !important;
303 .requests-menu-timings-division[division-scale=minute] {
304 -moz-border-start-color: var(--theme-body-color) !important;
308 /* Network requests table: waterfall items */
310 .requests-menu-subitem.requests-menu-waterfall {
311 -moz-padding-start: 0px;
312 -moz-padding-end: 4px;
313 /* Background created on a <canvas> in js. */
314 /* @see browser/devtools/netmonitor/netmonitor-view.js */
315 background-image: -moz-element(#waterfall-background);
316 background-repeat: repeat-y;
317 background-position: -1px center;
320 .requests-menu-subitem.requests-menu-waterfall:-moz-locale-dir(rtl) {
321 background-position: right center;
324 .requests-menu-timings:-moz-locale-dir(ltr) {
325 transform-origin: left center;
328 .requests-menu-timings:-moz-locale-dir(rtl) {
329 transform-origin: right center;
332 .requests-menu-timings-total:-moz-locale-dir(ltr) {
333 transform-origin: left center;
336 .requests-menu-timings-total:-moz-locale-dir(rtl) {
337 transform-origin: right center;
340 .requests-menu-timings-total {
341 -moz-padding-start: 4px;
346 .requests-menu-timings-box {
350 .requests-menu-timings-box.blocked {
351 background-color: #FF0000; /* red */
354 .requests-menu-timings-box.dns {
355 background-color: #E7ADE7; /* pink */
358 .requests-menu-timings-box.connect {
359 background-color: #FF9F00; /* orange */
362 .requests-menu-timings-box.send {
363 background-color: #FFCF00; /* light blue */
366 .requests-menu-timings-box.wait {
367 background-color: #9C9CFF; /* blue grey */
370 .requests-menu-timings-box.receive {
371 background-color: #A09090; /* green */
376 .side-menu-widget-item-contents {
380 .side-menu-widget-container {
381 box-shadow: none !important;
384 .side-menu-widget-item:not(.selected)[odd] {
385 background: rgba(255,159,0,0.1);
388 /* Network request details */
390 #details-pane-toggle {
391 list-style-image: url("chrome://browser/skin/devtools/debugger-collapse.png");
392 -moz-image-region: rect(0px,16px,16px,0px);
395 #details-pane-toggle > .toolbarbutton-icon {
400 #details-pane-toggle[pane-collapsed] {
401 list-style-image: url("chrome://browser/skin/devtools/debugger-expand.png");
404 #details-pane-toggle:hover,
405 #details-pane-toggle:hover:active {
406 -moz-image-region: rect(0px,32px,16px,16px);
409 @media (min-resolution: 2dppx) {
410 #details-pane-toggle {
411 list-style-image: url("chrome://browser/skin/devtools/debugger-collapse@2x.png");
412 -moz-image-region: rect(0px,32px,32px,0px);
415 #details-pane-toggle[pane-collapsed] {
416 list-style-image: url("chrome://browser/skin/devtools/debugger-expand@2x.png");
419 #details-pane-toggle:active {
420 -moz-image-region: rect(0px,64px,32px,32px);
424 /* Network request details tabpanels */
427 background-color: var(--theme-toolbar-background);
428 color: var(--theme-body-color);
431 /* Summary tabpanel */
433 .tabpanel-summary-container {
437 .tabpanel-summary-label {
438 -moz-padding-start: 4px;
439 -moz-padding-end: 3px;
443 .tabpanel-summary-value {
445 -moz-padding-start: 3px;
448 /* Headers tabpanel */
450 #headers-summary-status,
451 #headers-summary-version {
455 #headers-summary-size {
459 #headers-summary-resend {
461 /* min-height: 20px;*/
464 #toggle-raw-headers {
466 -moz-margin-end: 6px;
469 .raw-response-textarea {
473 /* Response tabpanel */
475 #response-content-info-header {
478 background-color: var(--theme-highlight-red);
479 color: var(--theme-selection-color);
482 #response-content-image-box {
484 padding-bottom: 10px;
487 #response-content-image {
489 border: 1px dashed #A09090;
493 /* Preview tabpanel */
504 /* Timings tabpanel */
506 #timings-tabpanel .tabpanel-summary-label {
510 #timings-tabpanel .requests-menu-timings-box {
511 transition: transform 0.2s ease-out;
516 #timings-tabpanel .requests-menu-timings-total {
517 transition: transform 0.2s ease-out;
520 /* Security tabpanel */
522 .security-info-section {
523 -moz-padding-start: 1em;
530 .security-warning-icon {
531 background-image: url("alerticon-warning.png");
532 background-size: 13px 12px;
533 -moz-margin-start: 5px;
539 @media (min-resolution: 2dppx) {
540 .security-warning-icon {
541 background-image: url("alerticon-warning@2x.png");
545 /* Custom request form */
548 padding: 0.6em 0.5em;
559 #custom-method-value {
565 #requests-menu-footer {
566 border-top: 1px solid #9C9CFF;
568 background-color: var(--theme-toolbar-background);
571 .requests-menu-footer-button,
572 .requests-menu-footer-label {
575 -moz-margin-end: 3px;
578 /* color: var(--theme-body-color);*/
581 .requests-menu-footer-spacer {
585 .requests-menu-footer-spacer,
586 .requests-menu-footer-button {
589 .requests-menu-footer-button {
592 .requests-menu-footer-button:hover {
595 .requests-menu-footer-button:hover:active {
598 .requests-menu-footer-button:not(:active)[checked] {
601 .requests-menu-footer-label {
605 #requests-menu-filter-freetext-text {
606 transition-property: max-width, -moz-padding-end, -moz-padding-start;
607 transition-duration: 250ms;
608 transition-timing-function: ease;
611 #requests-menu-filter-freetext-text:not([focused]):not([filled]) > .textbox-input-box {
615 #requests-menu-filter-freetext-text:not([focused]):not([filled]) {
616 max-width: 20px !important;
617 -moz-padding-end: 5px;
618 -moz-padding-start: 22px;
619 background-position: 8px center, top left, top left;
622 #requests-menu-filter-freetext-text[focused],
623 #requests-menu-filter-freetext-text[filled] {
624 max-width: 200px !important;
627 /* Performance analysis buttons */
629 #requests-menu-network-summary-button {
630 list-style-image: url("profiler-stopwatch.svg");
635 #requests-menu-network-summary-label {
636 -moz-padding-start: 0;
640 #requests-menu-network-summary-label:hover {
641 text-decoration: underline;
644 /* Performance analysis view */
646 #network-statistics-toolbar {
647 /* Make the toolbar invisible, it only hold the back button */
648 -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar");
649 background-color: #000000;
652 #network-statistics-back-button {
657 #network-statistics-view-splitter {
659 pointer-events: none;
662 #network-statistics-charts {
664 background-color: var(--theme-toolbar-background);
667 #network-statistics-charts .pie-chart-container {
668 -moz-margin-start: 3vw;
669 -moz-margin-end: 1vw;
672 #network-statistics-charts .table-chart-container {
673 -moz-margin-start: 1vw;
674 -moz-margin-end: 3vw;
677 .chart-colored-blob[name=html] {
678 fill: var(--theme-highlight-bluegrey);
679 background: var(--theme-highlight-bluegrey);
682 .chart-colored-blob[name=css] {
683 fill: var(--theme-highlight-blue);
684 background: var(--theme-highlight-blue);
687 .chart-colored-blob[name=js] {
688 fill: var(--theme-highlight-lightorange);
689 background: var(--theme-highlight-lightorange);
692 .chart-colored-blob[name=xhr] {
693 fill: var(--theme-highlight-orange);
694 background: var(--theme-highlight-orange);
697 .chart-colored-blob[name=fonts] {
698 fill: var(--theme-highlight-darkpurple);
699 background: var(--theme-highlight-darkpurple);
702 .chart-colored-blob[name=images] {
703 fill: var(--theme-highlight-pink);
704 background: var(--theme-highlight-pink);
707 .chart-colored-blob[name=media] {
708 fill: var(--theme-highlight-green);
709 background: var(--theme-highlight-green);
712 .chart-colored-blob[name=flash] {
713 fill: var(--theme-highlight-red);
714 background: var(--theme-highlight-red);
717 .table-chart-row-label[name=cached] {
721 .table-chart-row-label[name=count] {
726 .table-chart-row-label[name=label] {
730 .table-chart-row-label[name=size] {
734 .table-chart-row-label[name=time] {
738 /* Responsive sidebar */
739 @media (max-width: 700px) {
740 #requests-menu-toolbar {
744 .requests-menu-header-button {
749 margin: 0 !important;
750 /* To prevent all the margin hacks to hide the sidebar. */
753 .requests-menu-status-and-method {
757 .requests-menu-icon-and-file,
758 .requests-menu-security-and-domain {
762 .requests-menu-type {
766 .requests-menu-size {
768 border-width: 0 !important;
769 box-shadow: none !important;
770 /* The "Timeline" header is not visible anymore, and thus the
771 right border and box-shadow of "Size" column should be hidden. */
775 /* === END netmonitor.inc.css === */