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 === */
14 --table-splitter-color: #A09090;
15 --table-zebra-background: rgba(255,159,0,0.1);
18 #requests-menu-empty-notice {
24 #notice-perf-message {
28 #requests-menu-perf-notice-button {
32 list-style-image: url("profiler-stopwatch.svg");
35 #requests-menu-perf-notice-button .button-text {
39 #requests-menu-reload-notice-button {
44 /* Network requests table */
46 #requests-menu-toolbar {
49 #requests-menu-toolbar > .toolbar-box > .toolbar-startcap,
50 #requests-menu-toolbar > .toolbar-box > .toolbar-endcap {
54 .requests-menu-header:first-child {
55 -moz-padding-start: 4px;
56 -moz-margin-start: 4px;
59 .requests-menu-subitem {
63 .requests-menu-header:not(:last-child),
64 .requests-menu-subitem:not(:last-child) {
65 -moz-border-end: 1px solid var(--table-splitter-color);
68 .requests-menu-header:not(:last-child):-moz-locale-dir(rtl),
69 .requests-menu-subitem:not(:last-child):-moz-locale-dir(rtl) {
72 .requests-menu-header-button,
73 #requests-menu-status-button {
74 background-color: transparent;
78 font-weight: inherit !important;
79 transition: background-color 0.1s ease-in-out;
82 .requests-menu-header-button > .button-box,
83 #requests-menu-status-button > .button-box {
85 -moz-padding-start: 0;
90 .requests-menu-header-button:hover {
91 background-color: #FFCF00;
94 .requests-menu-header-button:hover:active {
95 background-color: #FF9F00;
98 .requests-menu-header-button:not(:active)[sorted] {
99 background-color: #008484;
102 .requests-menu-header-button:not(:active)[sorted=ascending] {
103 background-image: radial-gradient(farthest-side at center top, rgba(0,0,0,.7), rgba(0,0,0,0.3));
104 background-size: 100% 1px;
105 background-repeat: no-repeat;
108 .requests-menu-header-button:not(:active)[sorted=descending] {
109 background-image: radial-gradient(farthest-side at center bottom, rgba(0,0,0,.7), rgba(0,0,0,0.3));
110 background-size: 100% 1px;
111 background-repeat: no-repeat;
112 background-position: bottom;
115 #requests-menu-status-button {
119 #requests-menu-status-button > .button-box {
123 /* Network requests table: specific column dimensions */
125 .requests-menu-status-and-method {
129 .requests-menu-status {
135 .requests-menu-method {
140 .requests-menu-icon-and-file {
145 .requests-menu-icon {
147 width: calc(1em + 4px);
148 height: calc(1em + 4px);
150 -moz-margin-end: 4px;
153 .requests-menu-icon {
154 outline: 1px solid var(--table-splitter-color);
157 .requests-menu-file {
161 .requests-menu-security-and-domain {
166 .requests-security-state-icon {
169 -moz-margin-end: 4px;
173 .security-state-insecure {
174 list-style-image: url("chrome://browser/skin/identity-mixed-active-loaded.svg");
177 .security-state-secure {
178 list-style-image: url("chrome://browser/skin/identity-secure.svg");
181 .security-state-weak {
182 list-style-image: url("chrome://browser/skin/identity-mixed-passive-loaded.svg");
185 .security-state-broken {
186 list-style-image: url("chrome://browser/skin/controlcenter/warning-gray.svg");
189 .security-state-local {
190 list-style-image: url("chrome://browser/skin/identity-not-secure.svg");
193 .requests-menu-type {
198 .requests-menu-size {
203 .requests-menu-transferred {
208 /* Network requests table: status codes */
210 box.requests-menu-status {
211 background-color: #A09090;
213 -moz-margin-start: 5px;
214 -moz-margin-end: 5px;
216 border: 1px solid #000000;
217 transition: background-color 0.5s ease-in-out;
220 label.requests-menu-status-code {
221 -moz-margin-start: 3px !important;
223 -moz-margin-end: -3em !important;
226 box.requests-menu-status:not([code]) {
227 background-color: var(--theme-highlight-red);
228 border-radius: 0; /* squares */
231 box.requests-menu-status[code="cached"] {
232 border: 2px solid var(--theme-content-color2);
233 background-color: transparent;
236 box.requests-menu-status[code^="1"] {
237 background-color: var(---theme-highlight-blue);
240 box.requests-menu-status[code^="2"] {
241 background-color: var(--theme-highlight-green);
244 /* 3xx are triangles */
245 box.requests-menu-status[code^="3"] {
246 background-color: transparent;
249 border-left: 5px solid transparent;
250 border-right: 5px solid transparent;
251 border-bottom: 10px solid var(--theme-highlight-lightorange);
255 /* 4xx and 5xx are squares - error codes */
256 box.requests-menu-status[code^="4"] {
257 background-color: var(--theme-highlight-red);
258 border-radius: 0; /* squares */
261 box.requests-menu-status[code^="5"] {
262 background-color: var(--theme-highlight-pink);
264 transform: rotate(45deg);
267 /* Network requests table: waterfall header */
269 #requests-menu-waterfall-label {
270 -moz-padding-start: 8px;
271 -moz-padding-end: 8px;
274 .requests-menu-timings-division {
277 -moz-padding-start: 4px;
278 -moz-border-start: 1px dotted #000000;
280 pointer-events: none;
283 .requests-menu-timings-division:not(:first-child) {
284 -moz-border-start: 1px dotted;
285 -moz-margin-start: -100px !important; /* Don't affect layout. */
288 .requests-menu-timings-division:-moz-locale-dir(ltr) {
289 transform-origin: left center;
292 .requests-menu-timings-division:-moz-locale-dir(rtl) {
293 transform-origin: right center;
296 .requests-menu-timings-division[division-scale=millisecond] {
297 -moz-border-start-color: var(--theme-body-color) !important;
300 .requests-menu-timings-division[division-scale=second] {
301 -moz-border-start-color: var(--theme-body-color) !important;
305 .requests-menu-timings-division[division-scale=minute] {
306 -moz-border-start-color: var(--theme-body-color) !important;
310 /* Network requests table: waterfall items */
312 .requests-menu-subitem.requests-menu-waterfall {
313 -moz-padding-start: 0px;
314 -moz-padding-end: 4px;
315 /* Background created on a <canvas> in js. */
316 /* @see browser/devtools/netmonitor/netmonitor-view.js */
317 background-image: -moz-element(#waterfall-background);
318 background-repeat: repeat-y;
319 background-position: -1px center;
322 .requests-menu-subitem.requests-menu-waterfall:-moz-locale-dir(rtl) {
323 background-position: right center;
326 .requests-menu-timings:-moz-locale-dir(ltr) {
327 transform-origin: left center;
330 .requests-menu-timings:-moz-locale-dir(rtl) {
331 transform-origin: right center;
334 .requests-menu-timings-total:-moz-locale-dir(ltr) {
335 transform-origin: left center;
338 .requests-menu-timings-total:-moz-locale-dir(rtl) {
339 transform-origin: right center;
342 .requests-menu-timings-total {
343 -moz-padding-start: 4px;
348 .requests-menu-timings-box {
352 .requests-menu-timings-box.blocked {
353 background-color: #FF0000; /* red */
356 .requests-menu-timings-box.dns {
357 background-color: #E7ADE7; /* pink */
360 .requests-menu-timings-box.connect {
361 background-color: #FF9F00; /* orange */
364 .requests-menu-timings-box.send {
365 background-color: #FFCF00; /* light blue */
368 .requests-menu-timings-box.wait {
369 background-color: #9C9CFF; /* blue grey */
372 .requests-menu-timings-box.receive {
373 background-color: #A09090; /* green */
378 #network-table .side-menu-widget-empty-text,
379 #network-table .side-menu-widget-container {
380 background-color: var(--theme-body-background);
383 #network-table .side-menu-widget-item {
384 border-top-color: transparent;
385 border-bottom-color: transparent;
388 .side-menu-widget-item-contents {
392 .side-menu-widget-container {
393 box-shadow: none !important;
396 .side-menu-widget-item:not(.selected)[odd] {
397 background-color: var(--table-zebra-background);
400 .side-menu-widget-item:not(.selected):hover {
401 background-color: var(--theme-selection-background-semitransparent);
404 /* Network request details */
406 #details-pane-toggle {
407 list-style-image: url("chrome://devtools/skin/debugger-collapse.png");
408 -moz-image-region: rect(0px,16px,16px,0px);
411 #details-pane-toggle > .toolbarbutton-icon {
416 #details-pane-toggle[pane-collapsed] {
417 list-style-image: url("chrome://devtools/skin/debugger-expand.png");
420 #details-pane-toggle:hover,
421 #details-pane-toggle:hover:active {
422 -moz-image-region: rect(0px,32px,16px,16px);
425 @media (min-resolution: 1.1dppx) {
426 #details-pane-toggle {
427 list-style-image: url("chrome://devtools/skin/debugger-collapse@2x.png");
428 -moz-image-region: rect(0px,32px,32px,0px);
431 #details-pane-toggle[pane-collapsed] {
432 list-style-image: url("chrome://devtools/skin/debugger-expand@2x.png");
435 #details-pane-toggle:active {
436 -moz-image-region: rect(0px,64px,32px,32px);
440 /* Network request details tabpanels */
443 background-color: var(--theme-sidebar-background);
446 .theme-dark .tabpanel-content {
447 color: var(--theme-body-color);
451 background-color: var(--theme-toolbar-background);
454 /* Summary tabpanel */
456 .tabpanel-summary-container {
460 .tabpanel-summary-label {
461 -moz-padding-start: 4px;
462 -moz-padding-end: 3px;
466 .tabpanel-summary-value {
468 -moz-padding-start: 3px;
471 /* Headers tabpanel */
473 #headers-summary-status,
474 #headers-summary-version {
478 #headers-summary-size {
482 #headers-summary-resend {
484 /* min-height: 20px;*/
487 #toggle-raw-headers {
489 -moz-margin-end: 6px;
492 .raw-response-textarea {
496 /* Response tabpanel */
498 #response-content-info-header {
501 background-color: var(--theme-highlight-red);
502 color: var(--theme-selection-color);
505 #response-content-image-box {
507 padding-bottom: 10px;
510 #response-content-image {
512 border: 1px dashed #A09090;
516 /* Preview tabpanel */
527 /* Timings tabpanel */
529 #timings-tabpanel .tabpanel-summary-label {
533 #timings-tabpanel .requests-menu-timings-box {
534 transition: transform 0.2s ease-out;
539 #timings-tabpanel .requests-menu-timings-total {
540 transition: transform 0.2s ease-out;
543 /* Security tabpanel */
545 .security-info-section {
546 -moz-padding-start: 1em;
553 .security-warning-icon {
554 background-image: url("images/alerticon-warning.png");
555 background-size: 13px 12px;
556 -moz-margin-start: 5px;
562 @media (min-resolution: 1.1dppx) {
563 .security-warning-icon {
564 background-image: url("images/alerticon-warning@2x.png");
568 /* Custom request form */
571 padding: 0.6em 0.5em;
582 #custom-method-value {
588 #requests-menu-footer {
590 background-color: var(--theme-toolbar-background);
591 border-top: 1px solid var(--table-splitter-color);
594 .requests-menu-footer-button,
595 .requests-menu-footer-label {
598 -moz-margin-end: 3px;
601 /* color: var(--theme-body-color);*/
604 .requests-menu-footer-spacer {
608 .requests-menu-footer-spacer,
609 .requests-menu-footer-button {
612 .requests-menu-footer-button {
615 .requests-menu-footer-button:hover:active {
618 .requests-menu-footer-button:not(:active)[checked] {
621 .requests-menu-footer-label {
625 #requests-menu-filter-freetext-text {
626 transition-property: max-width, -moz-padding-end, -moz-padding-start;
627 transition-duration: 250ms;
628 transition-timing-function: ease;
631 #requests-menu-filter-freetext-text:not([focused]):not([filled]) > .textbox-input-box {
635 #requests-menu-filter-freetext-text:not([focused]):not([filled]) {
636 max-width: 20px !important;
637 -moz-padding-end: 5px;
638 -moz-padding-start: 22px;
639 background-position: 8px center, top left, top left;
642 #requests-menu-filter-freetext-text[focused],
643 #requests-menu-filter-freetext-text[filled] {
644 max-width: 200px !important;
647 /* Performance analysis buttons */
649 #requests-menu-network-summary-button {
650 list-style-image: url("profiler-stopwatch.svg");
655 #requests-menu-network-summary-label {
656 -moz-padding-start: 0;
660 #requests-menu-network-summary-label:hover {
661 text-decoration: underline;
664 /* Performance analysis view */
666 #network-statistics-toolbar {
667 /* Make the toolbar invisible, it only hold the back button */
668 -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar");
669 background-color: #000000;
672 #network-statistics-back-button {
677 #network-statistics-view-splitter {
679 pointer-events: none;
682 #network-statistics-charts {
684 background-color: var(--theme-sidebar-background);
687 #network-statistics-charts .pie-chart-container {
688 -moz-margin-start: 3vw;
689 -moz-margin-end: 1vw;
692 #network-statistics-charts .table-chart-container {
693 -moz-margin-start: 1vw;
694 -moz-margin-end: 3vw;
697 .chart-colored-blob[name=html] {
698 fill: var(--theme-highlight-bluegrey);
699 background: var(--theme-highlight-bluegrey);
702 .chart-colored-blob[name=css] {
703 fill: var(--theme-highlight-blue);
704 background: var(--theme-highlight-blue);
707 .chart-colored-blob[name=js] {
708 fill: var(--theme-highlight-lightorange);
709 background: var(--theme-highlight-lightorange);
712 .chart-colored-blob[name=xhr] {
713 fill: var(--theme-highlight-orange);
714 background: var(--theme-highlight-orange);
717 .chart-colored-blob[name=fonts] {
718 fill: var(--theme-highlight-darkpurple);
719 background: var(--theme-highlight-darkpurple);
722 .chart-colored-blob[name=images] {
723 fill: var(--theme-highlight-pink);
724 background: var(--theme-highlight-pink);
727 .chart-colored-blob[name=media] {
728 fill: var(--theme-highlight-green);
729 background: var(--theme-highlight-green);
732 .chart-colored-blob[name=flash] {
733 fill: var(--theme-highlight-red);
734 background: var(--theme-highlight-red);
737 .table-chart-row-label[name=cached] {
741 .table-chart-row-label[name=count] {
746 .table-chart-row-label[name=label] {
750 .table-chart-row-label[name=size] {
754 .table-chart-row-label[name=time] {
758 /* Responsive sidebar */
759 @media (max-width: 700px) {
760 #requests-menu-toolbar {
764 .requests-menu-header-button {
769 margin: 0 !important;
770 /* To prevent all the margin hacks to hide the sidebar. */
773 .requests-menu-status-and-method {
777 .requests-menu-icon-and-file,
778 .requests-menu-security-and-domain {
782 .requests-menu-type {
786 .requests-menu-size {
788 border-width: 0 !important;
789 box-shadow: none !important;
790 /* The "Timeline" header is not visible anymore, and thus the
791 right border and box-shadow of "Size" column should be hidden. */
795 /* === END netmonitor.inc.css === */