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-domain {
160 .requests-menu-type {
165 .requests-menu-size {
170 /* Network requests table: status codes */
172 box.requests-menu-status {
173 background-color: #A09090;
175 -moz-margin-start: 5px;
176 -moz-margin-end: 5px;
178 border: 1px solid #000000;
179 transition: background-color 0.5s ease-in-out;
182 label.requests-menu-status-code {
183 -moz-margin-start: 3px !important;
185 -moz-margin-end: -3em !important;
188 box.requests-menu-status:not([code]) {
189 background-color: #A09090; /* dark grey */
192 box.requests-menu-status[code^="1"] {
193 background-color: #9C9CFF; /* light blue */
196 box.requests-menu-status[code^="2"] {
197 background-color: #008484; /* green */
200 /* 3xx are triangles */
201 box.requests-menu-status[code^="3"] {
202 background-color: transparent;
205 border-left: 5px solid transparent;
206 border-right: 5px solid transparent;
207 border-bottom: 10px solid #FF9F00; /* light orange */
211 /* 4xx and 5xx are squares - error codes */
212 box.requests-menu-status[code^="4"] {
213 background-color: #FF0000; /* red */
214 border-radius: 0; /* squares */
217 box.requests-menu-status[code^="5"] {
218 background-color: #6000CF; /* pink? */
220 transform: rotate(45deg);
223 /* Network requests table: waterfall header */
225 #requests-menu-waterfall-label {
226 -moz-padding-start: 8px;
227 -moz-padding-end: 8px;
230 .requests-menu-timings-division {
233 -moz-padding-start: 4px;
234 -moz-border-start: 1px dotted #000000;
236 pointer-events: none;
239 .requests-menu-timings-division:not(:first-child) {
240 -moz-border-start: 1px dotted;
241 -moz-margin-start: -100px !important; /* Don't affect layout. */
244 .requests-menu-timings-division:-moz-locale-dir(ltr) {
245 transform-origin: left center;
248 .requests-menu-timings-division:-moz-locale-dir(rtl) {
249 transform-origin: right center;
252 .requests-menu-timings-division[division-scale=millisecond] {
253 -moz-border-start-color: var(--theme-body-color) !important;
256 .requests-menu-timings-division[division-scale=second] {
257 -moz-border-start-color: var(--theme-body-color) !important;
261 .requests-menu-timings-division[division-scale=minute] {
262 -moz-border-start-color: var(--theme-body-color) !important;
266 /* Network requests table: waterfall items */
268 .requests-menu-subitem.requests-menu-waterfall {
269 -moz-padding-start: 0px;
270 -moz-padding-end: 4px;
271 /* Background created on a <canvas> in js. */
272 /* @see browser/devtools/netmonitor/netmonitor-view.js */
273 background-image: -moz-element(#waterfall-background);
274 background-repeat: repeat-y;
275 background-position: -1px center;
278 .requests-menu-subitem.requests-menu-waterfall:-moz-locale-dir(rtl) {
279 background-position: right center;
282 .requests-menu-timings:-moz-locale-dir(ltr) {
283 transform-origin: left center;
286 .requests-menu-timings:-moz-locale-dir(rtl) {
287 transform-origin: right center;
290 .requests-menu-timings-total:-moz-locale-dir(ltr) {
291 transform-origin: left center;
294 .requests-menu-timings-total:-moz-locale-dir(rtl) {
295 transform-origin: right center;
298 .requests-menu-timings-total {
299 -moz-padding-start: 4px;
304 .requests-menu-timings-box {
308 .requests-menu-timings-box.blocked {
309 background-color: #FF0000; /* red */
312 .requests-menu-timings-box.dns {
313 background-color: #E7ADE7; /* pink */
316 .requests-menu-timings-box.connect {
317 background-color: #FF9F00; /* orange */
320 .requests-menu-timings-box.send {
321 background-color: #FFCF00; /* light blue */
324 .requests-menu-timings-box.wait {
325 background-color: #9C9CFF; /* blue grey */
328 .requests-menu-timings-box.receive {
329 background-color: #A09090; /* green */
334 .side-menu-widget-item-contents {
338 .side-menu-widget-container {
339 box-shadow: none !important;
342 .side-menu-widget-item:not(.selected)[odd] {
343 background: rgba(255,159,0,0.1);
346 /* Network request details */
348 #details-pane-toggle {
349 list-style-image: url("chrome://browser/skin/devtools/debugger-collapse.png");
350 -moz-image-region: rect(0px,16px,16px,0px);
353 #details-pane-toggle > .toolbarbutton-icon {
358 #details-pane-toggle[pane-collapsed] {
359 list-style-image: url("chrome://browser/skin/devtools/debugger-expand.png");
362 #details-pane-toggle:hover,
363 #details-pane-toggle:hover:active {
364 -moz-image-region: rect(0px,32px,16px,16px);
367 @media (min-resolution: 2dppx) {
368 #details-pane-toggle {
369 list-style-image: url("chrome://browser/skin/devtools/debugger-collapse@2x.png");
370 -moz-image-region: rect(0px,32px,32px,0px);
373 #details-pane-toggle[pane-collapsed] {
374 list-style-image: url("chrome://browser/skin/devtools/debugger-expand@2x.png");
377 #details-pane-toggle:active {
378 -moz-image-region: rect(0px,64px,32px,32px);
382 /* Network request details tabpanels */
385 background-color: var(--theme-toolbar-background);
386 color: var(--theme-body-color);
389 /* Summary tabpanel */
391 .tabpanel-summary-container {
395 .tabpanel-summary-label {
396 -moz-padding-start: 4px;
397 -moz-padding-end: 3px;
401 .tabpanel-summary-value {
402 -moz-padding-start: 3px;
405 /* Headers tabpanel */
407 #headers-summary-status,
408 #headers-summary-version {
412 #headers-summary-size {
416 #headers-summary-resend {
418 /* min-height: 20px;*/
421 #toggle-raw-headers {
423 -moz-margin-end: 6px;
426 .raw-response-textarea {
430 /* Response tabpanel */
432 #response-content-info-header {
435 background-color: var(--theme-highlight-red);
436 color: var(--theme-selection-color);
439 #response-content-image-box {
441 padding-bottom: 10px;
444 #response-content-image {
446 border: 1px dashed #A09090;
450 /* Preview tabpanel */
461 /* Timings tabpanel */
463 #timings-tabpanel .tabpanel-summary-label {
467 #timings-tabpanel .requests-menu-timings-box {
468 transition: transform 0.2s ease-out;
473 #timings-tabpanel .requests-menu-timings-total {
474 transition: transform 0.2s ease-out;
477 /* Custom request form */
480 padding: 0.6em 0.5em;
491 #custom-method-value {
497 #requests-menu-footer {
498 border-top: 1px solid #9C9CFF;
500 background-color: var(--theme-toolbar-background);
503 .requests-menu-footer-button,
504 .requests-menu-footer-label {
507 -moz-margin-end: 3px;
510 /* color: var(--theme-body-color);*/
513 .requests-menu-footer-spacer {
517 .requests-menu-footer-spacer,
518 .requests-menu-footer-button {
521 .requests-menu-footer-button {
524 .requests-menu-footer-button:hover {
527 .requests-menu-footer-button:hover:active {
530 .requests-menu-footer-button:not(:active)[checked] {
533 .requests-menu-footer-label {
537 /* Performance analysis buttons */
539 #requests-menu-network-summary-button {
540 list-style-image: url("profiler-stopwatch.svg");
545 #requests-menu-network-summary-label {
546 -moz-padding-start: 0;
550 #requests-menu-network-summary-label:hover {
551 text-decoration: underline;
554 /* Performance analysis view */
556 #network-statistics-toolbar {
557 /* Make the toolbar invisible, it only hold the back button */
558 -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar");
559 background-color: #000000;
562 #network-statistics-back-button {
567 #network-statistics-view-splitter {
569 pointer-events: none;
572 #network-statistics-charts {
574 background-color: var(--theme-toolbar-background);
577 #network-statistics-charts .pie-chart-container {
578 -moz-margin-start: 3vw;
579 -moz-margin-end: 1vw;
582 #network-statistics-charts .table-chart-container {
583 -moz-margin-start: 1vw;
584 -moz-margin-end: 3vw;
587 .chart-colored-blob[name=html] {
588 fill: var(--theme-highlight-bluegrey);
589 background: var(--theme-highlight-bluegrey);
592 .chart-colored-blob[name=css] {
593 fill: var(--theme-highlight-blue);
594 background: var(--theme-highlight-blue);
597 .chart-colored-blob[name=js] {
598 fill: var(--theme-highlight-lightorange);
599 background: var(--theme-highlight-lightorange);
602 .chart-colored-blob[name=xhr] {
603 fill: var(--theme-highlight-orange);
604 background: var(--theme-highlight-orange);
607 .chart-colored-blob[name=fonts] {
608 fill: var(--theme-highlight-darkpurple);
609 background: var(--theme-highlight-darkpurple);
612 .chart-colored-blob[name=images] {
613 fill: var(--theme-highlight-pink);
614 background: var(--theme-highlight-pink);
617 .chart-colored-blob[name=media] {
618 fill: var(--theme-highlight-green);
619 background: var(--theme-highlight-green);
622 .chart-colored-blob[name=flash] {
623 fill: var(--theme-highlight-red);
624 background: var(--theme-highlight-red);
627 .table-chart-row-label[name=cached] {
631 .table-chart-row-label[name=count] {
636 .table-chart-row-label[name=label] {
640 .table-chart-row-label[name=size] {
644 .table-chart-row-label[name=time] {
648 /* Responsive sidebar */
649 @media (max-width: 700px) {
650 #requests-menu-toolbar {
654 .requests-menu-header-button {
659 margin: 0 !important;
660 /* To prevent all the margin hacks to hide the sidebar. */
663 .requests-menu-status-and-method {
667 .requests-menu-icon-and-file,
668 .requests-menu-domain {
672 .requests-menu-type {
676 .requests-menu-size {
678 border-width: 0 !important;
679 box-shadow: none !important;
680 /* The "Timeline" header is not visible anymore, and thus the
681 right border and box-shadow of "Size" column should be hidden. */
685 /* === END netmonitor.inc.css === */