adjust network panel styling for recent changes
[themes.git] / LCARStrek / browser / devtools / netmonitor.css
CommitLineData
cc7e70eb
RK
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/. */
5
6window {
7 padding: 0;
8}
9
10/* Network requests table */
11
12#body {
13 background-color: #000000;
14}
15
16.requests-menu-empty-notice {
17 background-color: #A09090;
18 border-radius: 8px;
19 padding: 12px;
20 font-size: 110%;
21 color: #000000;
22}
23
24#requests-menu-toolbar {
25}
26
f30073a6
RK
27#requests-menu-toolbar > .toolbar-box > .toolbar-startcap,
28#requests-menu-toolbar > .toolbar-box > .toolbar-endcap {
29 display: none;
30}
31
cc7e70eb
RK
32.requests-menu-header {
33 text-align: center;
34}
35
f30073a6
RK
36.requests-menu-header:first-child {
37 -moz-padding-start: 4px;
38 -moz-margin-start: 4px;
39}
40
cc7e70eb 41.requests-menu-subitem {
f30073a6 42 padding: 4px;
cc7e70eb
RK
43}
44
f30073a6 45.requests-menu-header:not(:last-child),
cc7e70eb
RK
46.requests-menu-subitem:not(:last-child) {
47 -moz-border-end: 1px solid #9C9CFF;
48}
49
f30073a6
RK
50.requests-menu-header-button,
51#requests-menu-status-button {
52 background-color: transparent;
53 border-radius: 0;
54 min-width: 10px;
55 margin: 0;
56 transition: background-color 0.1s ease-in-out;
cc7e70eb
RK
57}
58
f30073a6
RK
59.requests-menu-header-button > .button-box,
60#requests-menu-status-button > .button-box {
61 border-radius: 0;
cc7e70eb
RK
62}
63
f30073a6
RK
64.requests-menu-header-button:hover {
65 background-color: #FFCF00;
cc7e70eb
RK
66}
67
f30073a6
RK
68.requests-menu-header-button:hover:active {
69 background-color: #FF9F00;
70}
71
72.requests-menu-header-button:not(:active)[sorted] {
cc7e70eb
RK
73 background-color: #008484;
74}
75
f30073a6
RK
76.requests-menu-header-button:not(:active)[sorted=ascending] {
77 background-image: radial-gradient(farthest-side at center top, rgba(0,0,0,.7), rgba(0,0,0,0.3));
78 background-size: 100% 1px;
79 background-repeat: no-repeat;
cc7e70eb
RK
80}
81
f30073a6
RK
82.requests-menu-header-button:not(:active)[sorted=descending] {
83 background-image: radial-gradient(farthest-side at center bottom, rgba(0,0,0,.7), rgba(0,0,0,0.3));
84 background-size: 100% 1px;
85 background-repeat: no-repeat;
86 background-position: bottom;
cc7e70eb
RK
87}
88
f30073a6
RK
89#requests-menu-status-button {
90 border: none;
91}
92
93#requests-menu-status-button > .button-box {
94 padding: 0;
95}
96
97/* Network requests table: specific column dimensions */
98
99.requests-menu-status-and-method {
100 width: 8em;
101}
102
103.requests-menu-status {
104 width: 10px;
105 height: 10px;
106 margin: 0px 2px;
cc7e70eb
RK
107}
108
109.requests-menu-method {
110 text-align: center;
111 font-weight: 600;
112}
113
114.requests-menu-file {
115 width: 16em;
116}
117
118.requests-menu-domain {
119 width: 16em;
120}
121
122.requests-menu-type {
123 text-align: center;
124 width: 4em;
125}
126
127.requests-menu-size {
128 text-align: center;
129 width: 8em;
130}
131
f30073a6
RK
132/* Network requests table: status codes */
133
134.requests-menu-status {
135 background-color: #A09090;
136 border-radius: 20px;
137 border: 1px solid #000000;
138 transition: background-color 0.5s ease-in-out;
139}
140
141.requests-menu-status[code^="1"] {
142 background-color: #9C9CFF;
143}
144
145.requests-menu-status[code^="2"] {
146 background-color: #008484;
147}
148
149.requests-menu-status[code^="3"] {
150 background-color: #FF9F00;
151}
152
153.requests-menu-status[code^="4"] {
154 background-color: #FF0000;
155}
156
157.requests-menu-status[code^="5"] {
158 background-color: #6000CF;
159}
160
161/* Network requests table: waterfall header */
162
163#requests-menu-waterfall-label {
cc7e70eb
RK
164 -moz-padding-start: 8px;
165 -moz-padding-end: 8px;
cc7e70eb
RK
166}
167
f30073a6
RK
168.requests-menu-timings-division {
169 width: 100px;
170 padding-top: 1px;
171 -moz-padding-start: 4px;
172 -moz-border-start: 1px dotted #000000;
173 font-size: 90%;
174 text-align: left;
175 pointer-events: none;
176}
177
178.requests-menu-timings-division:not(:first-child) {
179 -moz-margin-start: -100px !important; /* Don't affect layout. */
180}
181
182/* Network requests table: waterfall items */
cc7e70eb
RK
183
184.requests-menu-subitem.requests-menu-waterfall {
185 -moz-padding-start: 4px;
186 -moz-padding-end: 4px;
f30073a6
RK
187 background-repeat: repeat-y; /* Background created on a <canvas> in js. */
188 margin-top: -1px; /* Compensate borders. */
189 margin-bottom: -1px;
cc7e70eb
RK
190}
191
192.requests-menu-timings {
193 transform-origin: left center;
194}
195
196.requests-menu-timings-total {
197 -moz-padding-start: 8px;
198 font-size: 85%;
199 font-weight: 600;
200 transform-origin: left center;
201}
202
203.requests-menu-timings-cap {
204 width: 4px;
205 height: 10px;
206 border: 1px solid #FFCF00;
207}
208
209.requests-menu-timings-cap.start {
210 -moz-border-end: none;
211 border-radius: 4px 0 0 4px;
212 transform-origin: right center;
213}
214
215.requests-menu-timings-cap.end {
216 -moz-border-start: none;
217 border-radius: 0 4px 4px 0;
218 transform-origin: left center;
219}
220
221.requests-menu-timings-box {
222 height: 10px;
223 border-top: 1px solid #FFCF00;
224 border-bottom: 1px solid #FFCF00;
225}
226
227.requests-menu-timings-box.blocked,
228.requests-menu-timings-cap.blocked {
229 background-color: #FF0000;
230}
231
232.requests-menu-timings-box.dns,
233.requests-menu-timings-cap.dns {
234 background-color: #6000CF;
235}
236
237.requests-menu-timings-box.connect,
238.requests-menu-timings-cap.connect {
239 background-color: #FF9F00;
240}
241
242.requests-menu-timings-box.send,
243.requests-menu-timings-cap.send {
244 background-color: #FFCF00;
245}
246
247.requests-menu-timings-box.wait,
248.requests-menu-timings-cap.wait {
249 background-color: #9C9CFF;
250}
251
252.requests-menu-timings-box.receive,
253.requests-menu-timings-cap.receive {
254 background-color: #A09090;
255}
256
257.side-menu-widget-item:nth-child(even) {
258 background: rgba(255,159,0,0.1);
259}
260
f30073a6
RK
261.side-menu-widget-item-contents {
262 padding: 0px 4px;
263}
264
cc7e70eb
RK
265/* Network request details */
266
267#details-pane {
268 background-color: #000000;
269 max-width: 500px;
270}
271
272#details-pane-toggle {
273 list-style-image: url("chrome://browser/skin/devtools/debugger-collapse.png");
274 -moz-image-region: rect(0px,16px,16px,0px);
275}
276
277#details-pane-toggle[pane-collapsed] {
278 list-style-image: url("chrome://browser/skin/devtools/debugger-expand.png");
279}
280
281#details-pane-toggle:hover,
282#details-pane-toggle:hover:active {
283 -moz-image-region: rect(0px,32px,16px,16px);
284}
285
286/* Network request details tabpanels */
287
288.tabpanel-content {
289 background-color: #000000;
290 color: #FF9F00;
291}
292
293.tabpanel-summary-container {
294 padding: 1px;
295}
296
297.tabpanel-summary-label {
298 -moz-padding-start: 4px;
299 -moz-padding-end: 3px;
300 font-weight: 600;
301 color: #9C9CFF;
302}
303
304.tabpanel-summary-value {
305 -moz-padding-start: 3px;
306 font-family: "Liberation Mono", Consolas, "Courier New", monospace;
307}
308
309/* Headers tabpanel */
310
311#headers-summary-status,
312#headers-summary-version {
313 padding-bottom: 2px;
314}
315
316#headers-summary-size {
317 padding-top: 2px;
318}
319
320/* Response tabpanel */
321
322#response-content-image-box {
323 padding-top: 10px;
324 padding-bottom: 10px;
325}
326
327#response-content-image {
328 background: #FFFFFF;
329 border: 1px dashed #A09090;
330 margin-bottom: 10px;
331}
332
333/* Timings tabpanel */
334
335#timings-tabpanel .tabpanel-summary-label {
336 width: 10em;
337}
338
339#timings-tabpanel .requests-menu-timings-box {
340 transition: transform 0.2s ease-out;
341 min-width: 1px;
342}
343
344#timings-tabpanel .requests-menu-timings-total {
345 transition: transform 0.2s ease-out;
346}
f30073a6
RK
347
348/* Responsive sidebar */
349@media (max-width: 700px) {
350 #requests-menu-toolbar {
351 height: 24px;
352 }
353
354 .requests-menu-header-button {
355 min-height: 23px; /* Remaining 1px comes from border of the button. */
356 }
357
358 #details-pane {
359 max-width: none;
360 margin: 0 !important;
361 /* To prevent all the margin hacks to hide the sidebar. */
362 }
363
364 .requests-menu-status-and-method {
365 width: 14vw;
366 }
367
368 .requests-menu-file,
369 .requests-menu-domain {
370 width: 30vw;
371 min-width: 10em;
372 }
373
374 .requests-menu-type {
375 width: 8vw;
376 }
377
378 .requests-menu-size {
379 width: 16vw;
380 border-width: 0 !important;
381 box-shadow: none !important;
382 /* The "Timeline" header is not visible anymore, and thus the
383 right border and box-shadow of "Size" column should be hidden. */
384 }
385}
386
387@media (min-width: 701px) {
388 #network-table[type-overflows] .requests-menu-domain {
389 border-width: 0 !important;
390 box-shadow: none !important;
391 /* The "Type" header is not visible anymore, and thus the
392 right border and box-shadow of "Domain" column should be hidden. */
393 }
394
395 #network-table[domain-overflows] .requests-menu-file {
396 border-width: 0 !important;
397 box-shadow: none !important;
398 /* The "Domain" header is not visible anymore, and thus the
399 right border and box-shadow of "File" column should be hidden. */
400 }
401}