Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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/. */
6 #requests-menu-empty-notice {
7 margin: 0;
8 padding: 12px;
9 font-size: 120%;
10 }
12 .theme-dark #requests-menu-empty-notice {
13 color: #f5f7fa; /* Light foreground text */
14 }
16 .theme-light #requests-menu-empty-notice {
17 color: #585959; /* Grey foreground text */
18 }
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,16px,16px,0px);
26 }
28 #requests-menu-perf-notice-button .button-text {
29 display: none;
30 }
32 %filter substitution
33 %define table_itemDarkStartBorder rgba(0,0,0,0.2)
34 %define table_itemDarkEndBorder rgba(128,128,128,0.15)
35 %define table_itemLightStartBorder rgba(128,128,128,0.25)
36 %define table_itemLightEndBorder transparent
38 /* Network requests table */
40 #requests-menu-toolbar {
41 padding: 0;
42 }
44 .requests-menu-header:first-child,
45 .requests-menu-subitem:first-child {
46 -moz-padding-start: 6px;
47 }
49 .requests-menu-subitem {
50 padding: 3px;
51 }
53 .theme-dark .requests-menu-header:not(:last-child),
54 .theme-dark .requests-menu-subitem:not(:last-child) {
55 -moz-border-end: 1px solid @table_itemDarkStartBorder@;
56 box-shadow: 1px 0 0 @table_itemDarkEndBorder@;
57 }
59 .theme-dark .requests-menu-header:not(:last-child):-moz-locale-dir(rtl),
60 .theme-dark .requests-menu-subitem:not(:last-child):-moz-locale-dir(rtl) {
61 box-shadow: -1px 0 0 @table_itemDarkEndBorder@;
62 }
64 .theme-light .requests-menu-header:not(:last-child),
65 .theme-light .requests-menu-subitem:not(:last-child) {
66 -moz-border-end: 1px solid @table_itemLightStartBorder@;
67 box-shadow: 1px 0 0 @table_itemLightEndBorder@;
68 }
70 .theme-light .requests-menu-header:not(:last-child):-moz-locale-dir(rtl),
71 .theme-light .requests-menu-subitem:not(:last-child):-moz-locale-dir(rtl) {
72 box-shadow: -1px 0 0 @table_itemLightEndBorder@;
73 }
75 .requests-menu-header-button {
76 -moz-appearance: none;
77 background: none;
78 min-width: 1px;
79 min-height: 32px;
80 margin: 0;
81 border: none;
82 padding: 0;
83 color: inherit;
84 font-weight: inherit !important;
85 transition: background-color 0.1s ease-in-out;
86 }
88 .requests-menu-header-button:hover {
89 background: rgba(0,0,0,0.10);
90 }
92 .requests-menu-header-button:hover:active {
93 background: rgba(0,0,0,0.25);
94 }
96 .requests-menu-header-button:not(:active)[sorted] {
97 background: rgba(0,0,0,0.15);
98 }
100 .requests-menu-header-button:not(:active)[sorted=ascending] {
101 background-image: radial-gradient(farthest-side at center top, hsla(200,100%,70%,.7), hsla(200,100%,70%,0.3));
102 background-size: 100% 1px;
103 background-repeat: no-repeat;
104 }
106 .requests-menu-header-button:not(:active)[sorted=descending] {
107 background-image: radial-gradient(farthest-side at center bottom, hsla(200,100%,70%,.7), hsla(200,100%,70%,0.3));
108 background-size: 100% 1px;
109 background-repeat: no-repeat;
110 background-position: bottom;
111 }
113 /* Network requests table: specific column dimensions */
115 .requests-menu-status-and-method {
116 width: 12em;
117 }
119 .requests-menu-status {
120 width: 20px;
121 height: 10px;
122 }
124 .requests-menu-method {
125 text-align: center;
126 font-weight: 600;
127 }
129 .requests-menu-icon-and-file {
130 width: 20vw;
131 min-width: 4em;
132 }
134 .requests-menu-icon {
135 background: #fff;
136 width: calc(1em + 4px);
137 height: calc(1em + 4px);
138 margin: -4px 0px;
139 -moz-margin-end: 4px;
140 }
142 .theme-dark .requests-menu-icon {
143 outline: 1px solid @table_itemDarkStartBorder@;
144 }
146 .theme-light .requests-menu-icon {
147 outline: 1px solid @table_itemLightStartBorder@;
148 }
150 .requests-menu-file {
151 text-align: start;
152 }
154 .requests-menu-domain {
155 width: 14vw;
156 min-width: 10em;
157 }
159 .requests-menu-type {
160 text-align: center;
161 width: 4em;
162 }
164 .requests-menu-size {
165 text-align: center;
166 width: 8em;
167 }
169 /* Network requests table: status codes */
171 box.requests-menu-status {
172 background: #fff;
173 width: 10px;
174 -moz-margin-start: 5px;
175 -moz-margin-end: 5px;
176 border-radius: 10px;
177 transition: box-shadow 0.5s ease-in-out;
178 }
180 label.requests-menu-status-code {
181 -moz-margin-start: 3px !important;
182 width: 3em;
183 -moz-margin-end: -3em !important;
184 }
186 .theme-dark box.requests-menu-status:not([code]) {
187 background-color: rgba(95, 115, 135, 1); /* dark grey */
188 }
190 .theme-light box.requests-menu-status:not([code]) {
191 background-color: rgba(143, 161, 178, 1); /* grey */
192 }
194 .theme-dark box.requests-menu-status[code^="1"] {
195 background-color: rgba(70, 175, 227, 1); /* light blue */
196 }
198 .theme-light box.requests-menu-status[code^="1"] {
199 background-color: rgba(0, 136, 204, 1); /* light blue */
200 }
202 .theme-dark box.requests-menu-status[code^="2"] {
203 background-color: rgba(112, 191, 83, 1); /* green */
204 }
206 .theme-light box.requests-menu-status[code^="2"] {
207 background-color: rgba(44, 187, 15, 1); /* green */
208 }
210 /* 3xx are triangles */
211 .theme-dark box.requests-menu-status[code^="3"] {
212 background-color: transparent;
213 width: 0;
214 height: 0;
215 border-left: 5px solid transparent;
216 border-right: 5px solid transparent;
217 border-bottom: 10px solid rgba(217, 155, 40, 1); /* light orange */
218 border-radius: 0;
219 }
221 .theme-light box.requests-menu-status[code^="3"] {
222 background-color: transparent;
223 width: 0;
224 height: 0;
225 border-left: 5px solid transparent;
226 border-right: 5px solid transparent;
227 border-bottom: 10px solid rgba(217, 126, 0, 1); /* light orange */
228 border-radius: 0;
229 }
231 /* 4xx and 5xx are squares - error codes */
232 .theme-dark box.requests-menu-status[code^="4"] {
233 background-color: rgba(235, 83, 104, 1); /* red */
234 border-radius: 0; /* squares */
235 }
237 .theme-light box.requests-menu-status[code^="4"] {
238 background-color: rgba(237, 38, 85, 1); /* red */
239 border-radius: 0; /* squares */
240 }
242 .theme-dark box.requests-menu-status[code^="5"] {
243 background-color: rgba(223, 128, 255, 1); /* pink? */
244 border-radius: 0;
245 transform: rotate(45deg);
246 }
248 .theme-light box.requests-menu-status[code^="5"] {
249 background-color: rgba(184, 46, 229, 1); /* pink! */
250 border-radius: 0;
251 transform: rotate(45deg);
252 }
254 /* Network requests table: waterfall header */
256 #requests-menu-waterfall-label {
257 -moz-padding-start: 8px;
258 -moz-padding-end: 8px;
259 }
261 .requests-menu-timings-division {
262 width: 100px;
263 padding-top: 2px;
264 -moz-padding-start: 4px;
265 font-size: 75%;
266 pointer-events: none;
267 }
269 .requests-menu-timings-division:not(:first-child) {
270 -moz-border-start: 1px dotted;
271 -moz-margin-start: -100px !important; /* Don't affect layout. */
272 }
274 .requests-menu-timings-division:-moz-locale-dir(ltr) {
275 transform-origin: left center;
276 }
278 .requests-menu-timings-division:-moz-locale-dir(rtl) {
279 transform-origin: right center;
280 }
282 .theme-dark .requests-menu-timings-division[division-scale=millisecond] {
283 -moz-border-start-color: #f5f7fa !important; /* Light foreground text */
284 }
286 .theme-light .requests-menu-timings-division[division-scale=millisecond] {
287 -moz-border-start-color: #585959 !important; /* Grey foreground text */
288 }
290 .theme-dark .requests-menu-timings-division[division-scale=second] {
291 -moz-border-start-color: #f5f7fa !important; /* Light foreground text */
292 font-weight: 600;
293 }
295 .theme-light .requests-menu-timings-division[division-scale=second] {
296 -moz-border-start-color: #585959 !important; /* Grey foreground text */
297 font-weight: 600;
298 }
300 .theme-dark .requests-menu-timings-division[division-scale=minute] {
301 -moz-border-start-color: #f5f7fa !important; /* Light foreground text */
302 font-weight: 600;
303 }
305 .theme-light .requests-menu-timings-division[division-scale=minute] {
306 -moz-border-start-color: #585959 !important; /* Grey foreground text */
307 font-weight: 600;
308 }
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-repeat: repeat-y; /* Background created on a <canvas> in js. */
316 background-position: -1px center;
317 }
319 .requests-menu-subitem.requests-menu-waterfall:-moz-locale-dir(rtl) {
320 background-position: right center;
321 }
323 .requests-menu-timings:-moz-locale-dir(ltr) {
324 transform-origin: left center;
325 }
327 .requests-menu-timings:-moz-locale-dir(rtl) {
328 transform-origin: right center;
329 }
331 .requests-menu-timings-total:-moz-locale-dir(ltr) {
332 transform-origin: left center;
333 }
335 .requests-menu-timings-total:-moz-locale-dir(rtl) {
336 transform-origin: right center;
337 }
339 .requests-menu-timings-total {
340 -moz-padding-start: 4px;
341 font-size: 85%;
342 font-weight: 600;
343 }
345 .requests-menu-timings-box {
346 height: 9px;
347 }
349 .requests-menu-timings-box.blocked {
350 background-color: rgba(235, 83, 104, 0.8); /* red */
351 }
353 .requests-menu-timings-box.dns {
354 background-color: rgba(223, 128, 255, 0.8); /* pink */
355 }
357 .requests-menu-timings-box.connect {
358 background-color: rgba(217, 102, 41, 0.8); /* orange */
359 }
361 /* Use custom colors for dark and light theme on remaining timing types. */
362 .theme-dark .requests-menu-timings-box.send {
363 background-color: rgba(70, 175, 227, 0.8); /* light blue */
364 }
366 .theme-light .requests-menu-timings-box.send {
367 background-color: rgba(0, 136, 204, 0.8); /* blue */
368 }
370 .theme-dark .requests-menu-timings-box.wait {
371 background-color: rgba(94, 136, 176, 0.8); /* blue grey */
372 }
374 .theme-light .requests-menu-timings-box.wait {
375 background-color: rgba(95, 136, 176, 0.8); /* blue grey */
376 }
378 .theme-dark .requests-menu-timings-box.receive {
379 background-color: rgba(112, 191, 83, 0.8); /* green */
380 }
382 .theme-light .requests-menu-timings-box.receive {
383 background-color: rgba(44, 187, 15, 0.8); /* green */
384 }
386 /* SideMenuWidget */
388 .side-menu-widget-item-contents {
389 padding: 0px;
390 }
392 .theme-dark .side-menu-widget-item:not(.selected)[odd] {
393 background: rgba(255,255,255,0.05);
394 }
396 .theme-light .side-menu-widget-item:not(.selected)[odd] {
397 background: rgba(128,128,128,0.05);
398 }
400 /* Network request details */
402 #details-pane-toggle {
403 background: none;
404 box-shadow: none;
405 border-color: transparent;
406 list-style-image: url("chrome://browser/skin/devtools/debugger-collapse.png");
407 -moz-image-region: rect(0px,16px,16px,0px);
408 }
410 #details-pane-toggle[pane-collapsed] {
411 list-style-image: url("chrome://browser/skin/devtools/debugger-expand.png");
412 }
414 #details-pane-toggle:active {
415 -moz-image-region: rect(0px,32px,16px,16px);
416 }
418 /* Network request details tabpanels */
420 .theme-dark .tabpanel-content {
421 background: url(background-noise-toolbar.png), #343c45; /* Toolbars */
422 color: #f5f7fa; /* Light foreground text */
423 }
425 /* Summary tabpanel */
427 .tabpanel-summary-container {
428 padding: 1px;
429 }
431 .tabpanel-summary-label {
432 -moz-padding-start: 4px;
433 -moz-padding-end: 3px;
434 font-weight: 600;
435 }
437 .tabpanel-summary-value {
438 -moz-padding-start: 3px;
439 }
441 /* Headers tabpanel */
443 #headers-summary-status,
444 #headers-summary-version {
445 padding-bottom: 2px;
446 }
448 #headers-summary-size {
449 padding-top: 2px;
450 }
452 #headers-summary-resend {
453 margin-top: -10px;
454 -moz-margin-end: 6px;
455 }
457 /* Response tabpanel */
459 #response-content-info-header {
460 margin: 0;
461 padding: 3px 8px;
462 }
464 .theme-dark #response-content-info-header {
465 background: url(background-noise-toolbar.png), #eb5368; /* Red highlight */
466 color: #f5f7fa; /* Light foreground text */
467 }
469 .theme-light #response-content-info-header {
470 background: url(background-noise-toolbar.png), #ed2655; /* Red highlight */
471 color: #f5f7fa; /* Light foreground text */
472 }
474 #response-content-image-box {
475 padding-top: 10px;
476 padding-bottom: 10px;
477 }
479 #response-content-image {
480 background: #fff;
481 border: 1px dashed GrayText;
482 margin-bottom: 10px;
483 }
485 /* Preview tabpanel */
487 #preview-tabpanel {
488 background: #fff;
489 }
491 #response-preview {
492 display: -moz-box;
493 -moz-box-flex: 1;
494 }
496 /* Timings tabpanel */
498 #timings-tabpanel .tabpanel-summary-label {
499 width: 10em;
500 }
502 #timings-tabpanel .requests-menu-timings-box {
503 transition: transform 0.2s ease-out;
504 border: none;
505 min-width: 1px;
506 }
508 #timings-tabpanel .requests-menu-timings-total {
509 transition: transform 0.2s ease-out;
510 }
512 /* Custom request form */
514 #custom-pane {
515 padding: 0.6em 0.5em;
516 }
518 .custom-header {
519 font-size: 1.1em;
520 }
522 .custom-section {
523 margin-top: 0.5em;
524 }
526 #custom-method-value {
527 width: 4.5em;
528 }
530 /* Footer */
532 .theme-dark #requests-menu-footer {
533 border-top: 1px solid @table_itemDarkStartBorder@;
534 box-shadow: 0 1px 0 @table_itemDarkEndBorder@ inset;
535 background: url(background-noise-toolbar.png), #343c45; /* Toolbars */
536 }
538 .theme-light #requests-menu-footer {
539 border-top: 1px solid @table_itemLightStartBorder@;
540 box-shadow: 0 1px 0 @table_itemLightEndBorder@ inset;
541 background: url(background-noise-toolbar.png), #f0f1f2; /* Toolbars */
542 }
544 .requests-menu-footer-button,
545 .requests-menu-footer-label {
546 min-width: 1em;
547 margin: 0;
548 border: none;
549 padding: 2px 1vw;
550 }
552 .theme-dark .requests-menu-footer-button,
553 .theme-dark .requests-menu-footer-label {
554 color: #f5f7fa; /* Light foreground text */
555 }
557 .theme-light .requests-menu-footer-button,
558 .theme-light .requests-menu-footer-label {
559 color: #18191a; /* Dark foreground text */
560 }
562 .requests-menu-footer-spacer {
563 min-width: 2px;
564 }
566 .theme-dark .requests-menu-footer-spacer:not(:first-child),
567 .theme-dark .requests-menu-footer-button:not(:first-child) {
568 -moz-border-start: 1px solid @table_itemDarkEndBorder@;
569 box-shadow: -1px 0 0 @table_itemDarkStartBorder@;
570 }
572 .theme-light .requests-menu-footer-spacer:not(:first-child),
573 .theme-light .requests-menu-footer-button:not(:first-child) {
574 -moz-border-start: 1px solid @table_itemLightEndBorder@;
575 box-shadow: -1px 0 0 @table_itemLightStartBorder@;
576 }
578 .requests-menu-footer-button {
579 -moz-appearance: none;
580 background: rgba(0,0,0,0.025);
581 }
583 .requests-menu-footer-button:hover {
584 background: rgba(0,0,0,0.10);
585 }
587 .theme-dark .requests-menu-footer-button:hover:active {
588 background-color: rgba(29,79,115,0.4); /* Select Highlight Blue at 40% opacity */
589 }
591 .theme-light .requests-menu-footer-button:hover:active {
592 background-color: rgba(76,158,217,0.4); /* Select Highlight Blue at 40% opacity */
593 }
595 .theme-dark .requests-menu-footer-button:not(:active)[checked] {
596 background-color: rgba(29,79,115,1); /* Select Highlight Blue */
597 color: rgba(245,247,250,1); /* Light foreground text */
598 }
600 .theme-light .requests-menu-footer-button:not(:active)[checked] {
601 background-color: rgba(76,158,217,1); /* Select Highlight Blue */
602 color: rgba(245,247,250,1); /* Light foreground text */
603 }
605 .requests-menu-footer-label {
606 padding-top: 3px;
607 font-weight: 600;
608 }
610 /* Performance analysis buttons */
612 #requests-menu-network-summary-button {
613 background: none;
614 box-shadow: none;
615 border-color: transparent;
616 list-style-image: url(profiler-stopwatch.png);
617 -moz-image-region: rect(0px,16px,16px,0px);
618 -moz-padding-end: 0;
619 cursor: pointer;
620 }
622 #requests-menu-network-summary-label {
623 -moz-padding-start: 0;
624 cursor: pointer;
625 }
627 #requests-menu-network-summary-label:hover {
628 text-decoration: underline;
629 }
631 /* Performance analysis view */
633 #network-statistics-toolbar {
634 border: none;
635 margin: 0;
636 padding: 0;
637 }
639 #network-statistics-back-button {
640 min-width: 4em;
641 min-height: 100vh;
642 margin: 0;
643 padding: 0;
644 border-radius: 0;
645 border-top: none;
646 border-bottom: none;
647 -moz-border-start: none;
648 }
650 #network-statistics-view-splitter {
651 border-color: rgba(0,0,0,0.2);
652 cursor: default;
653 pointer-events: none;
654 }
656 #network-statistics-charts {
657 min-height: 1px;
658 }
660 .theme-dark #network-statistics-charts {
661 background: url(background-noise-toolbar.png), #343c45; /* Toolbars */
662 }
664 .theme-light #network-statistics-charts {
665 background: url(background-noise-toolbar.png), #f0f1f2; /* Toolbars */
666 }
668 #network-statistics-charts .pie-chart-container {
669 -moz-margin-start: 3vw;
670 -moz-margin-end: 1vw;
671 }
673 #network-statistics-charts .table-chart-container {
674 -moz-margin-start: 1vw;
675 -moz-margin-end: 3vw;
676 }
678 .theme-dark .chart-colored-blob[name=html] {
679 fill: #5e88b0; /* Blue-Grey highlight */
680 background: #5e88b0;
681 }
683 .theme-light .chart-colored-blob[name=html] {
684 fill: #5f88b0; /* Blue-Grey highlight */
685 background: #5f88b0;
686 }
688 .theme-dark .chart-colored-blob[name=css] {
689 fill: #46afe3; /* Blue highlight */
690 background: #46afe3;
691 }
693 .theme-light .chart-colored-blob[name=css] {
694 fill: #0088cc; /* Blue highlight */
695 background: #0088cc;
696 }
698 .theme-dark .chart-colored-blob[name=js] {
699 fill: #d99b28; /* Light Orange highlight */
700 background: #d99b28;
701 }
703 .theme-light .chart-colored-blob[name=js] {
704 fill: #d97e00; /* Light Orange highlight */
705 background: #d97e00;
706 }
708 .theme-dark .chart-colored-blob[name=xhr] {
709 fill: #d96629; /* Orange highlight */
710 background: #d96629;
711 }
713 .theme-light .chart-colored-blob[name=xhr] {
714 fill: #f13c00; /* Orange highlight */
715 background: #f13c00;
716 }
718 .theme-dark .chart-colored-blob[name=fonts] {
719 fill: #6b7abb; /* Purple highlight */
720 background: #6b7abb;
721 }
723 .theme-light .chart-colored-blob[name=fonts] {
724 fill: #5b5fff; /* Purple highlight */
725 background: #5b5fff;
726 }
728 .theme-dark .chart-colored-blob[name=images] {
729 fill: #df80ff; /* Pink highlight */
730 background: #df80ff;
731 }
733 .theme-light .chart-colored-blob[name=images] {
734 fill: #b82ee5; /* Pink highlight */
735 background: #b82ee5;
736 }
738 .theme-dark .chart-colored-blob[name=media] {
739 fill: #70bf53; /* Green highlight */
740 background: #70bf53;
741 }
743 .theme-light .chart-colored-blob[name=media] {
744 fill: #2cbb0f; /* Green highlight */
745 background: #2cbb0f;
746 }
748 .theme-dark .chart-colored-blob[name=flash] {
749 fill: #eb5368; /* Red highlight */
750 background: #eb5368;
751 }
753 .theme-light .chart-colored-blob[name=flash] {
754 fill: #ed2655; /* Red highlight */
755 background: #ed2655;
756 }
758 .table-chart-row-label[name=cached] {
759 display: none;
760 }
762 .table-chart-row-label[name=count] {
763 width: 3em;
764 text-align: end;
765 }
767 .table-chart-row-label[name=label] {
768 width: 7em;
769 }
771 .table-chart-row-label[name=size] {
772 width: 7em;
773 }
775 .table-chart-row-label[name=time] {
776 width: 7em;
777 }
779 /* Responsive sidebar */
780 @media (max-width: 700px) {
781 #requests-menu-toolbar {
782 height: 22px;
783 }
785 .requests-menu-header-button {
786 min-height: 20px;
787 }
789 #details-pane {
790 margin: 0 !important;
791 /* To prevent all the margin hacks to hide the sidebar. */
792 }
794 .requests-menu-status-and-method {
795 width: 16vw;
796 }
798 .requests-menu-icon-and-file {
799 width: 30vw;
800 }
802 .requests-menu-domain {
803 width: 30vw;
804 }
806 .requests-menu-type {
807 width: 8vw;
808 }
810 .requests-menu-size {
811 width: 16vw;
812 border-width: 0 !important;
813 box-shadow: none !important;
814 /* The "Timeline" header is not visible anymore, and thus the
815 right border and box-shadow of "Size" column should be hidden. */
816 }
817 }