Commit | Line | Data |
---|---|---|
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 | ||
11ddc405 RK |
6 | @import url("resource://devtools/client/shared/components/tree/tree-view.css"); |
7 | @import url(variables.css); /* No idea why this is needed but we get error messages without it */ | |
8 | ||
cc7e70eb RK |
9 | window { |
10 | padding: 0; | |
11 | } | |
12 | ||
9f6401c2 RK |
13 | #toolbar-labels { |
14 | overflow: hidden; | |
11ddc405 RK |
15 | display: flex; |
16 | flex: auto; | |
9f6401c2 RK |
17 | } |
18 | ||
19 | .devtools-toolbar-container { | |
20 | display: flex; | |
21 | justify-content: space-between; | |
22 | } | |
23 | ||
24 | .devtools-toolbar-group { | |
25 | display: flex; | |
26 | flex: 0 0 auto; | |
27 | flex-wrap: nowrap; | |
28 | align-items: stretch; | |
29 | } | |
30 | ||
31 | /** | |
32 | * Collapsed details pane needs to be truly hidden to prevent both accessibility | |
33 | * tools and keyboard from accessing its contents. | |
34 | */ | |
35 | #details-pane.pane-collapsed { | |
36 | visibility: hidden; | |
37 | } | |
38 | ||
39 | #details-pane-toggle[disabled] { | |
40 | display: none; | |
41 | } | |
42 | ||
43 | #custom-pane { | |
44 | overflow: auto; | |
45 | } | |
46 | ||
47 | #response-content-image-box { | |
48 | overflow: auto; | |
49 | } | |
50 | ||
51 | #network-statistics-charts { | |
52 | overflow: auto; | |
53 | } | |
54 | ||
55 | .cropped-textbox .textbox-input { | |
56 | /* workaround for textbox not supporting the @crop attribute */ | |
57 | text-overflow: ellipsis; | |
58 | } | |
59 | ||
60 | /* Responsive sidebar */ | |
61 | @media (max-width: 700px) { | |
62 | #toolbar-spacer, | |
63 | #details-pane-toggle, | |
64 | #details-pane.pane-collapsed, | |
65 | .requests-menu-waterfall, | |
66 | #requests-menu-network-summary-button > .summary-info-text { | |
67 | display: none; | |
68 | } | |
69 | } | |
70 | ||
2e389898 RK |
71 | :root.theme-dark, |
72 | :root.theme-light { | |
19988d2d | 73 | --table-splitter-color: #A09090; |
2e389898 | 74 | --table-zebra-background: rgba(255,159,0,0.1); |
7d6161c5 RK |
75 | |
76 | --timing-blocked-color: #FF0000; | |
77 | --timing-dns-color: #E7ADE7; /* pink */ | |
78 | --timing-connect-color: #FF9F00; /* orange */ | |
79 | --timing-send-color: #FFCF00; /* light blue */ | |
6f751fd1 | 80 | --timing-wait-color: #9C9CFF; /* blue grey */ |
7d6161c5 RK |
81 | --timing-receive-color: #A09090; /* green */ |
82 | ||
83 | --sort-ascending-image: url(chrome://devtools/skin/images/sort-arrows.svg#ascending); | |
84 | --sort-descending-image: url(chrome://devtools/skin/images/sort-arrows.svg#descending); | |
2e389898 RK |
85 | } |
86 | ||
11ddc405 RK |
87 | #network-table { |
88 | display: -moz-box; | |
89 | -moz-box-orient: vertical; | |
90 | -moz-box-flex: 1; | |
91 | overflow: hidden; | |
92 | } | |
93 | ||
94 | .request-list-container { | |
95 | display: -moz-box; | |
96 | -moz-box-orient: vertical; | |
97 | -moz-box-flex: 1; | |
98 | } | |
99 | ||
100 | #requests-menu-empty-notice, | |
101 | .request-list-empty-notice { | |
45dc7657 | 102 | margin: 0; |
cc7e70eb | 103 | padding: 12px; |
46e71434 | 104 | font-size: 120%; |
46e71434 RK |
105 | } |
106 | ||
2b5a5147 RK |
107 | #notice-perf-message { |
108 | margin-top: 2px; | |
109 | } | |
110 | ||
46e71434 RK |
111 | #requests-menu-perf-notice-button { |
112 | min-width: 30px; | |
2b5a5147 | 113 | min-height: 26px; |
dadba0f2 | 114 | list-style-image: url("images/profiler-stopwatch.svg"); |
11ddc405 RK |
115 | margin: 0 5px; |
116 | vertical-align: middle; | |
117 | } | |
118 | ||
119 | #requests-menu-perf-notice-button::before { | |
120 | background-image: url("images/profiler-stopwatch.svg"); | |
46e71434 RK |
121 | } |
122 | ||
6f751fd1 RK |
123 | /* Make sure the icon is visible on Linux (to overwrite a rule |
124 | in xul.css that hides the icon if there is no label. | |
125 | See also bug 1278050. */ | |
126 | #requests-menu-perf-notice-button .button-icon { | |
127 | display: block; | |
128 | } | |
129 | ||
46e71434 RK |
130 | #requests-menu-perf-notice-button .button-text { |
131 | display: none; | |
cc7e70eb RK |
132 | } |
133 | ||
2b5a5147 | 134 | #requests-menu-reload-notice-button { |
11ddc405 | 135 | font-size: inherit; |
2b5a5147 | 136 | min-height: 26px; |
11ddc405 RK |
137 | padding-left: 10px; |
138 | padding-right: 10px; | |
139 | margin: 0 5px; | |
2b5a5147 RK |
140 | } |
141 | ||
45dc7657 RK |
142 | /* Network requests table */ |
143 | ||
cc7e70eb | 144 | #requests-menu-toolbar { |
11ddc405 RK |
145 | background: var(--theme-capped-toolbar-background); |
146 | } | |
147 | ||
148 | #requests-menu-toolbar::before, #requests-menu-toolbar::after { | |
149 | display: none; /* Remove caps from this toolbar (and above background rule make the background fill it completely) */ | |
cc7e70eb RK |
150 | } |
151 | ||
9f6401c2 RK |
152 | #requests-menu-filter-buttons { |
153 | display: flex; | |
154 | flex-wrap: nowrap; | |
155 | } | |
156 | ||
f30073a6 RK |
157 | #requests-menu-toolbar > .toolbar-box > .toolbar-startcap, |
158 | #requests-menu-toolbar > .toolbar-box > .toolbar-endcap { | |
159 | display: none; | |
160 | } | |
161 | ||
11ddc405 RK |
162 | .requests-menu-contents { |
163 | display: -moz-box; | |
164 | -moz-box-orient: vertical; | |
165 | -moz-box-flex: 1; | |
166 | overflow-x: hidden; | |
167 | overflow-y: auto; | |
168 | ||
169 | --timings-scale: 1; | |
170 | --timings-rev-scale: 1; | |
171 | } | |
172 | ||
cc7e70eb | 173 | .requests-menu-subitem { |
11ddc405 RK |
174 | display: flex; |
175 | flex: none; | |
176 | box-sizing: border-box; | |
177 | align-items: center; | |
7d6161c5 | 178 | padding: 3px; |
cc7e70eb RK |
179 | } |
180 | ||
11ddc405 RK |
181 | .subitem-label { |
182 | white-space: nowrap; | |
183 | overflow: hidden; | |
184 | text-overflow: ellipsis; | |
185 | } | |
186 | ||
187 | .requests-menu-header { | |
188 | display: flex; | |
189 | flex: none; | |
45dc7657 RK |
190 | } |
191 | ||
7d6161c5 RK |
192 | #requests-menu-status-button, |
193 | .requests-menu-header-button { | |
11ddc405 RK |
194 | display: flex; |
195 | align-items: center; | |
196 | flex: auto; | |
197 | -moz-appearance: none; | |
f30073a6 | 198 | background-color: transparent; |
7d6161c5 | 199 | border-image: linear-gradient(transparent 15%, |
1e9e1791 RK |
200 | var(--theme-toolbar-background) 15%, |
201 | var(--theme-toolbar-background) 85%, | |
7d6161c5 | 202 | transparent 85%) 1 1; |
d0a8de80 RK |
203 | border-style: solid; |
204 | border-width: 0; | |
205 | border-inline-start-width: 1px; | |
f30073a6 | 206 | border-radius: 0; |
d0a8de80 RK |
207 | min-width: 1px; |
208 | min-height: 24px; | |
f30073a6 | 209 | margin: 0; |
d0a8de80 | 210 | padding-top: 2px; |
11ddc405 RK |
211 | padding-bottom: 2px; |
212 | padding-inline-start: 16px; | |
213 | padding-inline-end: 0; | |
d0a8de80 | 214 | text-align: center; |
7d6161c5 | 215 | /* color: inherit;*/ |
e2734cc7 | 216 | font-weight: inherit !important; |
cc7e70eb RK |
217 | } |
218 | ||
11ddc405 RK |
219 | .requests-menu-header-button::-moz-focus-inner { |
220 | border: 0; | |
221 | padding: 0; | |
222 | } | |
223 | ||
d0a8de80 RK |
224 | .requests-menu-header:first-child .requests-menu-header-button { |
225 | border-width: 0; | |
cc7e70eb RK |
226 | } |
227 | ||
f30073a6 | 228 | .requests-menu-header-button:hover { |
d0a8de80 RK |
229 | background-color: var(--theme-hover-background); |
230 | color: var(--theme-hover-color); | |
cc7e70eb RK |
231 | } |
232 | ||
f30073a6 | 233 | .requests-menu-header-button:hover:active { |
d0a8de80 RK |
234 | background-color: var(--theme-active-background); |
235 | color: var(--theme-active-color); | |
236 | } | |
237 | ||
11ddc405 RK |
238 | .requests-menu-header-button > .button-text { |
239 | flex: auto; | |
240 | white-space: nowrap; | |
241 | overflow: hidden; | |
242 | text-overflow: ellipsis; | |
243 | } | |
244 | ||
d0a8de80 RK |
245 | .requests-menu-header-button > .button-box > .button-icon, |
246 | #requests-menu-waterfall-image { | |
247 | display: -moz-box; | |
11ddc405 RK |
248 | -moz-box-ordinal-group: 2; |
249 | } | |
250 | .requests-menu-header-button > .button-box > .button-icon, | |
251 | #requests-menu-waterfall-image, | |
252 | .requests-menu-header-button > .button-icon { | |
253 | flex: none; | |
d0a8de80 | 254 | height: 4px; |
11ddc405 | 255 | margin-inline-start: 3px; |
d0a8de80 | 256 | margin-inline-end: 6px; |
d0a8de80 RK |
257 | width: 7px; |
258 | } | |
259 | ||
d0a8de80 RK |
260 | .requests-menu-header-button[sorted=ascending] > .button-box > .button-icon, |
261 | .requests-menu-header-button[sorted=ascending] #requests-menu-waterfall-image { | |
7d6161c5 | 262 | list-style-image: var(--sort-ascending-image); |
f30073a6 RK |
263 | } |
264 | ||
11ddc405 RK |
265 | .requests-menu-header-button[data-sorted=ascending] > .button-icon { |
266 | background-image: var(--sort-ascending-image); | |
267 | } | |
268 | ||
d0a8de80 RK |
269 | .requests-menu-header-button[sorted=descending] > .button-box > .button-icon, |
270 | .requests-menu-header-button[sorted=descending] #requests-menu-waterfall-image { | |
7d6161c5 | 271 | list-style-image: var(--sort-descending-image); |
cc7e70eb RK |
272 | } |
273 | ||
11ddc405 RK |
274 | .requests-menu-header-button[data-sorted=descending] > .button-icon { |
275 | background-image: var(--sort-descending-image); | |
276 | } | |
277 | ||
d0a8de80 RK |
278 | .requests-menu-header-button > .button-box > .button-text, |
279 | #requests-menu-waterfall-label-wrapper { | |
280 | -moz-box-flex: 1; | |
281 | } | |
282 | ||
11ddc405 RK |
283 | .requests-menu-waterfall-label-wrapper { |
284 | display: flex; | |
285 | } | |
286 | ||
7d6161c5 | 287 | .requests-menu-header-button[sorted], |
11ddc405 RK |
288 | .requests-menu-header-button[sorted]:hover, |
289 | .requests-menu-header-button[data-sorted], | |
290 | .requests-menu-header-button[data-sorted]:hover { | |
d0a8de80 RK |
291 | background-color: var(--theme-selection-background); |
292 | color: var(--theme-selection-color); | |
cc7e70eb RK |
293 | } |
294 | ||
d0a8de80 | 295 | .requests-menu-header-button[sorted], |
11ddc405 RK |
296 | .requests-menu-header[active] + .requests-menu-header .requests-menu-header-button, |
297 | .requests-menu-header-button[data-sorted], | |
298 | .requests-menu-header[data-active] + .requests-menu-header .requests-menu-header-button { | |
d0a8de80 | 299 | border-image: linear-gradient(var(--theme-splitter-color), var(--theme-splitter-color)) 1 1; |
cc7e70eb RK |
300 | } |
301 | ||
f30073a6 RK |
302 | #requests-menu-status-button { |
303 | border: none; | |
304 | } | |
305 | ||
306 | #requests-menu-status-button > .button-box { | |
307 | padding: 0; | |
308 | } | |
309 | ||
310 | /* Network requests table: specific column dimensions */ | |
311 | ||
f30073a6 | 312 | .requests-menu-status { |
d0a8de80 RK |
313 | max-width: 6em; |
314 | text-align: center; | |
315 | width: 10vw; | |
cc7e70eb RK |
316 | } |
317 | ||
d0a8de80 RK |
318 | .requests-menu-method, |
319 | .requests-menu-method-box { | |
320 | max-width: 7em; | |
cc7e70eb | 321 | text-align: center; |
d0a8de80 | 322 | width: 10vw; |
cc7e70eb RK |
323 | } |
324 | ||
c1d2ce3e | 325 | .requests-menu-icon-and-file { |
d0a8de80 | 326 | width: 22vw; |
c1d2ce3e RK |
327 | } |
328 | ||
329 | .requests-menu-icon { | |
11ddc405 RK |
330 | background: transparent; |
331 | width: 15px; | |
332 | height: 15px; | |
dae45075 | 333 | margin-inline-end: 4px; |
c1d2ce3e RK |
334 | } |
335 | ||
336 | .requests-menu-icon { | |
2e389898 | 337 | outline: 1px solid var(--table-splitter-color); |
c1d2ce3e RK |
338 | } |
339 | ||
20752032 | 340 | .requests-menu-security-and-domain { |
c1d2ce3e | 341 | width: 14vw; |
cc7e70eb RK |
342 | } |
343 | ||
20752032 | 344 | .requests-security-state-icon { |
11ddc405 | 345 | flex: none; |
1437a48c RK |
346 | width: 16px; |
347 | height: 16px; | |
dae45075 | 348 | margin-inline-end: 4px; |
20752032 RK |
349 | } |
350 | ||
351 | .security-state-insecure { | |
d0a8de80 | 352 | list-style-image: url("chrome://devtools/skin/images/security-state-insecure.svg"); |
20752032 RK |
353 | } |
354 | ||
355 | .security-state-secure { | |
d0a8de80 | 356 | list-style-image: url("chrome://devtools/skin/images/security-state-secure.svg"); |
20752032 RK |
357 | } |
358 | ||
d533ec21 | 359 | .security-state-weak { |
d0a8de80 | 360 | list-style-image: url("chrome://devtools/skin/images/security-state-weak.svg"); |
d533ec21 RK |
361 | } |
362 | ||
20752032 | 363 | .security-state-broken { |
d0a8de80 | 364 | list-style-image: url("chrome://devtools/skin/images/security-state-broken.svg"); |
e9fbfc3a RK |
365 | } |
366 | ||
367 | .security-state-local { | |
d0a8de80 | 368 | list-style-image: url("chrome://devtools/skin/images/security-state-local.svg"); |
cc7e70eb RK |
369 | } |
370 | ||
d0a8de80 | 371 | .requests-menu-type, |
cc7e70eb | 372 | .requests-menu-size { |
d0a8de80 | 373 | max-width: 6em; |
cc7e70eb | 374 | text-align: center; |
d0a8de80 | 375 | width: 8vw; |
11ddc405 RK |
376 | justify-content: center; |
377 | } | |
378 | ||
379 | .requests-menu-transferred { | |
380 | max-width: 8em; | |
381 | width: 8vw; | |
382 | justify-content: center; | |
383 | } | |
384 | ||
385 | .request-list-item.selected .requests-menu-transferred.theme-comment { | |
386 | color: var(--theme-selection-color); | |
cc7e70eb RK |
387 | } |
388 | ||
1e9e1791 RK |
389 | .requests-menu-cause { |
390 | max-width: 8em; | |
391 | width: 8vw; | |
392 | } | |
393 | ||
394 | .requests-menu-cause-stack { | |
395 | background-color: var(--theme-body-color-alt); | |
396 | color: var(--theme-body-background); | |
397 | font-size: 8px; | |
398 | font-weight: bold; | |
399 | line-height: 10px; | |
400 | border-radius: 3px; | |
401 | padding: 0 2px; | |
402 | margin: 0; | |
403 | margin-inline-end: 3px; | |
404 | -moz-user-select: none; | |
405 | } | |
406 | ||
2f2239a0 | 407 | .requests-menu-transferred { |
d0a8de80 | 408 | max-width: 8em; |
2f2239a0 | 409 | text-align: center; |
7d6161c5 | 410 | width: 8vw; |
2f2239a0 RK |
411 | } |
412 | ||
f30073a6 RK |
413 | /* Network requests table: status codes */ |
414 | ||
d0a8de80 | 415 | .requests-menu-status-code { |
dae45075 | 416 | margin-inline-start: 3px !important; |
d0a8de80 | 417 | width: 3em; |
dae45075 | 418 | margin-inline-end: -3em !important; |
d0a8de80 RK |
419 | } |
420 | ||
421 | .requests-menu-status-icon { | |
f30073a6 | 422 | background-color: #A09090; |
d0a8de80 | 423 | height: 10px; |
46e71434 | 424 | width: 10px; |
dae45075 RK |
425 | margin-inline-start: 5px; |
426 | margin-inline-end: 5px; | |
f30073a6 RK |
427 | border-radius: 20px; |
428 | border: 1px solid #000000; | |
429 | transition: background-color 0.5s ease-in-out; | |
430 | } | |
431 | ||
11ddc405 RK |
432 | .request-list-item.selected .requests-menu-status-icon { |
433 | } | |
434 | ||
435 | .requests-menu-status-icon:not([code]), | |
436 | .requests-menu-status-icon:not([data-code]) { | |
d0a8de80 | 437 | background-color: var(--theme-content-color2); |
f30073a6 RK |
438 | } |
439 | ||
11ddc405 RK |
440 | .requests-menu-status-icon[code="cached"], |
441 | .requests-menu-status-icon[data-code="cached"] { | |
2e389898 | 442 | border: 2px solid var(--theme-content-color2); |
7d6161c5 | 443 | background-color: transparent; |
a5cb6e53 RK |
444 | } |
445 | ||
11ddc405 RK |
446 | .requests-menu-status-icon[code^="1"], |
447 | .requests-menu-status-icon[data-code^="1"] { | |
d0a8de80 | 448 | background-color: var(--theme-highlight-blue); |
46e71434 RK |
449 | } |
450 | ||
11ddc405 RK |
451 | .requests-menu-status-icon[code^="2"], |
452 | .requests-menu-status-icon[data-code^="2"] { | |
2e389898 | 453 | background-color: var(--theme-highlight-green); |
f30073a6 RK |
454 | } |
455 | ||
46e71434 | 456 | /* 3xx are triangles */ |
11ddc405 RK |
457 | .requests-menu-status-icon[code^="3"], |
458 | .requests-menu-status-icon[data-code^="3"] { | |
46e71434 RK |
459 | background-color: transparent; |
460 | width: 0; | |
461 | height: 0; | |
462 | border-left: 5px solid transparent; | |
463 | border-right: 5px solid transparent; | |
2e389898 | 464 | border-bottom: 10px solid var(--theme-highlight-lightorange); |
46e71434 | 465 | border-radius: 0; |
f30073a6 RK |
466 | } |
467 | ||
46e71434 | 468 | /* 4xx and 5xx are squares - error codes */ |
11ddc405 RK |
469 | .requests-menu-status-icon[code^="4"], |
470 | .requests-menu-status-icon[data-code^="4"] { | |
2e389898 | 471 | background-color: var(--theme-highlight-red); |
46e71434 RK |
472 | border-radius: 0; /* squares */ |
473 | } | |
474 | ||
11ddc405 RK |
475 | .requests-menu-status-icon[code^="5"], |
476 | .requests-menu-status-icon[data-code^="5"] { | |
2e389898 | 477 | background-color: var(--theme-highlight-pink); |
46e71434 RK |
478 | border-radius: 0; |
479 | transform: rotate(45deg); | |
f30073a6 RK |
480 | } |
481 | ||
482 | /* Network requests table: waterfall header */ | |
483 | ||
d0a8de80 | 484 | .requests-menu-waterfall { |
11ddc405 | 485 | flex: auto; |
d0a8de80 RK |
486 | padding-inline-start: 0; |
487 | } | |
488 | ||
11ddc405 RK |
489 | #requests-menu-waterfall-label:not(.requests-menu-waterfall-visible), |
490 | .requests-menu-waterfall-label-wrapper:not(.requests-menu-waterfall-visible) { | |
491 | padding-inline-start: 16px; | |
cc7e70eb RK |
492 | } |
493 | ||
f30073a6 RK |
494 | .requests-menu-timings-division { |
495 | width: 100px; | |
7d6161c5 | 496 | padding-top: 2px; |
d0a8de80 | 497 | padding-inline-start: 4px; |
7d6161c5 | 498 | font-size: 75%; |
f30073a6 | 499 | pointer-events: none; |
d0a8de80 RK |
500 | box-sizing: border-box; |
501 | text-align: start; | |
11ddc405 RK |
502 | /* Allow the timing label to shrink if the container gets too narrow. |
503 | * The container width then is not limited by the content. */ | |
504 | flex: initial; | |
d0a8de80 RK |
505 | } |
506 | ||
507 | .requests-menu-timings-division:first-child { | |
508 | width: 98px; /* Substract 2px for borders */ | |
f30073a6 RK |
509 | } |
510 | ||
511 | .requests-menu-timings-division:not(:first-child) { | |
7d6161c5 | 512 | border-inline-start: 1px dashed; |
11ddc405 | 513 | /* margin-inline-start: -100px !important; / Don't affect layout. */ |
f30073a6 RK |
514 | } |
515 | ||
c4460289 RK |
516 | .requests-menu-timings-division:-moz-locale-dir(ltr) { |
517 | transform-origin: left center; | |
518 | } | |
519 | ||
520 | .requests-menu-timings-division:-moz-locale-dir(rtl) { | |
521 | transform-origin: right center; | |
522 | } | |
523 | ||
d0a8de80 RK |
524 | .requests-menu-timings-division { |
525 | border-inline-start-color: var(--theme-body-color) !important; | |
45dc7657 RK |
526 | } |
527 | ||
d0a8de80 | 528 | .requests-menu-timings-division[division-scale=second], |
11ddc405 RK |
529 | .requests-menu-timings-division[division-scale=minute], |
530 | .requests-menu-timings-division[data-division-scale=second], | |
531 | .requests-menu-timings-division[data-division-scale=minute] { | |
45dc7657 RK |
532 | font-weight: 600; |
533 | } | |
534 | ||
f30073a6 | 535 | /* Network requests table: waterfall items */ |
cc7e70eb RK |
536 | |
537 | .requests-menu-subitem.requests-menu-waterfall { | |
11ddc405 | 538 | padding-inline-start: 0; |
dae45075 | 539 | padding-inline-end: 4px; |
d1e87ec1 | 540 | /* Background created on a <canvas> in js. */ |
7d6161c5 | 541 | /* @see devtools/client/netmonitor/netmonitor-view.js */ |
d1e87ec1 RK |
542 | background-image: -moz-element(#waterfall-background); |
543 | background-repeat: repeat-y; | |
11ddc405 | 544 | background-position: left center; |
cc7e70eb RK |
545 | } |
546 | ||
c4460289 RK |
547 | .requests-menu-subitem.requests-menu-waterfall:-moz-locale-dir(rtl) { |
548 | background-position: right center; | |
549 | } | |
550 | ||
11ddc405 RK |
551 | .requests-menu-timings { |
552 | display: flex; | |
553 | flex: none; | |
554 | align-items: center; | |
555 | transform: scaleX(var(--timings-scale)); | |
556 | } | |
557 | ||
c4460289 | 558 | .requests-menu-timings:-moz-locale-dir(ltr) { |
11ddc405 | 559 | transform-origin: left center; |
c4460289 RK |
560 | } |
561 | ||
562 | .requests-menu-timings:-moz-locale-dir(rtl) { | |
563 | transform-origin: right center; | |
564 | } | |
565 | ||
566 | .requests-menu-timings-total:-moz-locale-dir(ltr) { | |
cc7e70eb RK |
567 | transform-origin: left center; |
568 | } | |
569 | ||
c4460289 RK |
570 | .requests-menu-timings-total:-moz-locale-dir(rtl) { |
571 | transform-origin: right center; | |
572 | } | |
573 | ||
cc7e70eb | 574 | .requests-menu-timings-total { |
11ddc405 | 575 | display: inline-block; |
dae45075 | 576 | padding-inline-start: 4px; |
cc7e70eb RK |
577 | font-size: 85%; |
578 | font-weight: 600; | |
11ddc405 RK |
579 | white-space: nowrap; |
580 | /* This node should not be scaled - apply a reversed transformation */ | |
581 | transform: scaleX(var(--timings-rev-scale)); | |
cc7e70eb RK |
582 | } |
583 | ||
cc7e70eb | 584 | .requests-menu-timings-box { |
11ddc405 | 585 | display: inline-block; |
46e71434 | 586 | height: 9px; |
cc7e70eb RK |
587 | } |
588 | ||
46e71434 | 589 | .requests-menu-timings-box.blocked { |
7d6161c5 | 590 | background-color: var(--timing-blocked-color); |
cc7e70eb RK |
591 | } |
592 | ||
46e71434 | 593 | .requests-menu-timings-box.dns { |
7d6161c5 | 594 | background-color: var(--timing-dns-color); |
cc7e70eb RK |
595 | } |
596 | ||
46e71434 | 597 | .requests-menu-timings-box.connect { |
7d6161c5 | 598 | background-color: var(--timing-connect-color); |
cc7e70eb RK |
599 | } |
600 | ||
46e71434 | 601 | .requests-menu-timings-box.send { |
7d6161c5 | 602 | background-color: var(--timing-send-color); |
cc7e70eb RK |
603 | } |
604 | ||
46e71434 | 605 | .requests-menu-timings-box.wait { |
7d6161c5 | 606 | background-color: var(--timing-wait-color); |
cc7e70eb RK |
607 | } |
608 | ||
46e71434 | 609 | .requests-menu-timings-box.receive { |
7d6161c5 | 610 | background-color: var(--timing-receive-color); |
cc7e70eb RK |
611 | } |
612 | ||
e2734cc7 RK |
613 | /* SideMenuWidget */ |
614 | ||
2e389898 | 615 | #network-table .side-menu-widget-empty-text, |
11ddc405 RK |
616 | #network-table .side-menu-widget-container, |
617 | #network-table .request-list-empty-notice, | |
618 | #network-table .request-list-container { | |
2e389898 RK |
619 | background-color: var(--theme-body-background); |
620 | } | |
621 | ||
11ddc405 RK |
622 | #network-table .side-menu-widget-item, |
623 | .request-list-item { | |
624 | display: flex; | |
2e389898 RK |
625 | border-top-color: transparent; |
626 | border-bottom-color: transparent; | |
11ddc405 RK |
627 | padding: 0; |
628 | } | |
629 | ||
630 | .request-list-item.selected { | |
631 | background-color: var(--theme-selection-background); | |
632 | color: var(--theme-selection-color); | |
2e389898 RK |
633 | } |
634 | ||
45dc7657 RK |
635 | .side-menu-widget-item-contents { |
636 | padding: 0px; | |
637 | } | |
638 | ||
de57e474 RK |
639 | .side-menu-widget-container { |
640 | box-shadow: none !important; | |
641 | } | |
642 | ||
11ddc405 RK |
643 | .side-menu-widget-item:not(.selected)[odd], |
644 | .request-list-item:not(.selected).odd { | |
2e389898 RK |
645 | background-color: var(--table-zebra-background); |
646 | } | |
647 | ||
11ddc405 RK |
648 | .side-menu-widget-item:not(.selected):hover, |
649 | .request-list-item:not(.selected):hover { | |
2e389898 | 650 | background-color: var(--theme-selection-background-semitransparent); |
cc7e70eb RK |
651 | } |
652 | ||
11ddc405 RK |
653 | /* Method Column */ |
654 | ||
655 | .request-list-item.selected .requests-menu-method { | |
656 | color: var(--theme-selection-color); | |
657 | } | |
658 | ||
cc7e70eb RK |
659 | /* Network request details */ |
660 | ||
cc7e70eb | 661 | #details-pane-toggle { |
7d6161c5 | 662 | list-style-image: var(--theme-pane-collapse-image); |
3d64e0ce RK |
663 | } |
664 | ||
6f751fd1 | 665 | #details-pane-toggle.pane-collapsed { |
7d6161c5 | 666 | list-style-image: var(--theme-pane-expand-image); |
3d64e0ce RK |
667 | } |
668 | ||
9f6401c2 RK |
669 | #details-pane-toggle:-moz-locale-dir(ltr)::before, |
670 | #details-pane-toggle.pane-collapsed:-moz-locale-dir(rtl)::before { | |
671 | background-image: var(--theme-pane-collapse-image); | |
672 | } | |
673 | ||
674 | #details-pane-toggle.pane-collapsed:-moz-locale-dir(ltr)::before, | |
675 | #details-pane-toggle:-moz-locale-dir(rtl)::before { | |
676 | background-image: var(--theme-pane-expand-image); | |
677 | } | |
678 | ||
cc7e70eb RK |
679 | /* Network request details tabpanels */ |
680 | ||
681 | .tabpanel-content { | |
2e389898 | 682 | background-color: var(--theme-sidebar-background); |
2e389898 | 683 | |
de5e780d | 684 | color: var(--theme-body-color); |
cc7e70eb RK |
685 | } |
686 | ||
2e389898 RK |
687 | #headers-tabpanel { |
688 | background-color: var(--theme-toolbar-background); | |
689 | } | |
690 | ||
46e71434 RK |
691 | /* Summary tabpanel */ |
692 | ||
cc7e70eb RK |
693 | .tabpanel-summary-container { |
694 | padding: 1px; | |
695 | } | |
696 | ||
697 | .tabpanel-summary-label { | |
11ddc405 | 698 | display: inline-block; |
dae45075 RK |
699 | padding-inline-start: 4px; |
700 | padding-inline-end: 3px; | |
cc7e70eb | 701 | font-weight: 600; |
cc7e70eb RK |
702 | } |
703 | ||
704 | .tabpanel-summary-value { | |
e184b661 | 705 | color: inherit; |
dae45075 | 706 | padding-inline-start: 3px; |
cc7e70eb RK |
707 | } |
708 | ||
709 | /* Headers tabpanel */ | |
710 | ||
711 | #headers-summary-status, | |
712 | #headers-summary-version { | |
713 | padding-bottom: 2px; | |
714 | } | |
715 | ||
716 | #headers-summary-size { | |
717 | padding-top: 2px; | |
718 | } | |
719 | ||
e7c8bab1 | 720 | #headers-summary-resend { |
7d6161c5 | 721 | margin-top: -10px; |
dae45075 | 722 | margin-inline-end: 6px; |
e7c8bab1 RK |
723 | } |
724 | ||
8922acc9 RK |
725 | #toggle-raw-headers { |
726 | margin-top: -10px; | |
dae45075 | 727 | margin-inline-end: 6px; |
8922acc9 RK |
728 | } |
729 | ||
730 | .raw-response-textarea { | |
731 | height: 50vh; | |
732 | } | |
733 | ||
cc7e70eb RK |
734 | /* Response tabpanel */ |
735 | ||
e2734cc7 | 736 | #response-content-info-header { |
e2734cc7 | 737 | margin: 0; |
46e71434 | 738 | padding: 3px 8px; |
de5e780d RK |
739 | background-color: var(--theme-highlight-red); |
740 | color: var(--theme-selection-color); | |
e2734cc7 RK |
741 | } |
742 | ||
cc7e70eb RK |
743 | #response-content-image-box { |
744 | padding-top: 10px; | |
745 | padding-bottom: 10px; | |
746 | } | |
747 | ||
748 | #response-content-image { | |
749 | background: #FFFFFF; | |
750 | border: 1px dashed #A09090; | |
751 | margin-bottom: 10px; | |
752 | } | |
753 | ||
c1d2ce3e RK |
754 | /* Preview tabpanel */ |
755 | ||
756 | #preview-tabpanel { | |
757 | background: #fff; | |
758 | } | |
759 | ||
760 | #response-preview { | |
761 | display: -moz-box; | |
762 | -moz-box-flex: 1; | |
763 | } | |
764 | ||
cc7e70eb RK |
765 | /* Timings tabpanel */ |
766 | ||
11ddc405 RK |
767 | #timings-tabpanel .tabpanel-summary-container { |
768 | display: flex; | |
769 | } | |
770 | ||
cc7e70eb RK |
771 | #timings-tabpanel .tabpanel-summary-label { |
772 | width: 10em; | |
773 | } | |
774 | ||
11ddc405 RK |
775 | #timings-tabpanel .requests-menu-timings-container { |
776 | display: flex; | |
777 | flex: 1; | |
778 | align-items: center; | |
779 | } | |
780 | ||
781 | #timings-tabpanel .requests-menu-timings-offset { | |
782 | transition: width 0.2s ease-out; | |
783 | } | |
784 | ||
cc7e70eb | 785 | #timings-tabpanel .requests-menu-timings-box { |
45dc7657 | 786 | border: none; |
7d6161c5 | 787 | min-width: 1px; |
11ddc405 | 788 | transition: width 0.2s ease-out; |
cc7e70eb RK |
789 | } |
790 | ||
791 | #timings-tabpanel .requests-menu-timings-total { | |
792 | transition: transform 0.2s ease-out; | |
793 | } | |
f30073a6 | 794 | |
20752032 RK |
795 | /* Security tabpanel */ |
796 | ||
797 | .security-info-section { | |
dae45075 | 798 | padding-inline-start: 1em; |
20752032 RK |
799 | } |
800 | ||
801 | #security-tabpanel { | |
802 | overflow: auto; | |
11ddc405 | 803 | -moz-user-select: text; |
20752032 RK |
804 | } |
805 | ||
d533ec21 | 806 | .security-warning-icon { |
dc9d5d64 | 807 | background-image: url("images/alerticon-warning.png"); |
d533ec21 | 808 | background-size: 13px 12px; |
dae45075 | 809 | margin-inline-start: 5px; |
d533ec21 RK |
810 | vertical-align: top; |
811 | width: 13px; | |
812 | height: 12px; | |
813 | } | |
814 | ||
024a65e9 | 815 | @media (min-resolution: 1.1dppx) { |
d533ec21 | 816 | .security-warning-icon { |
dc9d5d64 | 817 | background-image: url("images/alerticon-warning@2x.png"); |
d533ec21 RK |
818 | } |
819 | } | |
820 | ||
e7c8bab1 RK |
821 | /* Custom request form */ |
822 | ||
823 | #custom-pane { | |
824 | padding: 0.6em 0.5em; | |
825 | } | |
826 | ||
827 | .custom-header { | |
828 | font-size: 1.1em; | |
829 | } | |
830 | ||
831 | .custom-section { | |
832 | margin-top: 0.5em; | |
fe524e0c RK |
833 | } |
834 | ||
835 | #custom-method-value { | |
836 | width: 4.5em; | |
e7c8bab1 RK |
837 | } |
838 | ||
7d6161c5 RK |
839 | /* Main toolbar */ |
840 | .requests-menu-filter-button { | |
841 | /* -moz-appearance: none; | |
842 | background: rgba(128,128,128,0.1); | |
e2734cc7 | 843 | border: none; |
7d6161c5 RK |
844 | border-radius: 2px; |
845 | min-width: 0; | |
846 | padding: 0 5px; | |
847 | margin: 2px; | |
848 | color: var(--theme-body-color);*/ | |
1e9e1791 RK |
849 | margin-top: 0; |
850 | margin-bottom: 0; | |
e2734cc7 RK |
851 | } |
852 | ||
7d6161c5 RK |
853 | .requests-menu-filter-button:hover { |
854 | /* background: rgba(128,128,128,0.2);*/ | |
e2734cc7 RK |
855 | } |
856 | ||
7d6161c5 RK |
857 | .requests-menu-filter-button:hover:active { |
858 | /* background-color: var(--theme-selection-background-semitransparent);*/ | |
a5cb6e53 RK |
859 | } |
860 | ||
46e71434 RK |
861 | /* Performance analysis buttons */ |
862 | ||
863 | #requests-menu-network-summary-button { | |
9f6401c2 RK |
864 | display: flex; |
865 | flex-wrap: nowrap; | |
866 | align-items: center; | |
867 | font: inherit; | |
7d6161c5 RK |
868 | box-shadow: none; |
869 | border-color: transparent; | |
1e9e1791 | 870 | list-style-image: url("images/profiler-stopwatch-tbutton.svg"); |
46e71434 | 871 | cursor: pointer; |
7d6161c5 | 872 | min-width: 0; |
46e71434 RK |
873 | } |
874 | ||
11ddc405 RK |
875 | #requests-menu-network-summary-button > .summary-info-icon { |
876 | background-image: url(images/profiler-stopwatch.svg); | |
877 | filter: var(--icon-filter); | |
878 | width: 16px; | |
879 | height: 16px; | |
880 | } | |
881 | ||
882 | #requests-menu-network-summary-button > .summary-info-text { | |
883 | margin-inline-start: 0.5em; | |
884 | } | |
885 | ||
886 | #requests-menu-network-summary-button:hover > .summary-info-icon, | |
887 | #requests-menu-network-summary-button:hover > .summary-info-text { | |
888 | } | |
889 | ||
46e71434 RK |
890 | /* Performance analysis view */ |
891 | ||
892 | #network-statistics-toolbar { | |
893 | /* Make the toolbar invisible, it only hold the back button */ | |
894 | -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar"); | |
895 | background-color: #000000; | |
7d6161c5 RK |
896 | border: none; |
897 | margin: 0; | |
898 | padding: 0; | |
46e71434 RK |
899 | } |
900 | ||
901 | #network-statistics-back-button { | |
902 | min-width: 4em; | |
903 | min-height: 100vh; | |
7d6161c5 RK |
904 | margin: 0; |
905 | padding: 0; | |
906 | border-radius: 0; | |
907 | border-top: none; | |
908 | border-bottom: none; | |
dae45075 | 909 | border-inline-start: none; |
46e71434 RK |
910 | } |
911 | ||
912 | #network-statistics-view-splitter { | |
7d6161c5 | 913 | /* border-color: rgba(0,0,0,0.2);*/ |
46e71434 RK |
914 | cursor: default; |
915 | pointer-events: none; | |
916 | } | |
917 | ||
918 | #network-statistics-charts { | |
919 | min-height: 1px; | |
7d6161c5 RK |
920 | } |
921 | ||
922 | #network-statistics-charts { | |
2e389898 | 923 | background-color: var(--theme-sidebar-background); |
46e71434 RK |
924 | } |
925 | ||
926 | #network-statistics-charts .pie-chart-container { | |
dae45075 RK |
927 | margin-inline-start: 3vw; |
928 | margin-inline-end: 1vw; | |
46e71434 RK |
929 | } |
930 | ||
931 | #network-statistics-charts .table-chart-container { | |
dae45075 RK |
932 | margin-inline-start: 1vw; |
933 | margin-inline-end: 3vw; | |
46e71434 RK |
934 | } |
935 | ||
b7f3670c | 936 | .chart-colored-blob[name=html] { |
de5e780d RK |
937 | fill: var(--theme-highlight-bluegrey); |
938 | background: var(--theme-highlight-bluegrey); | |
46e71434 RK |
939 | } |
940 | ||
b7f3670c | 941 | .chart-colored-blob[name=css] { |
de5e780d RK |
942 | fill: var(--theme-highlight-blue); |
943 | background: var(--theme-highlight-blue); | |
46e71434 RK |
944 | } |
945 | ||
b7f3670c | 946 | .chart-colored-blob[name=js] { |
de5e780d RK |
947 | fill: var(--theme-highlight-lightorange); |
948 | background: var(--theme-highlight-lightorange); | |
46e71434 RK |
949 | } |
950 | ||
b7f3670c | 951 | .chart-colored-blob[name=xhr] { |
de5e780d RK |
952 | fill: var(--theme-highlight-orange); |
953 | background: var(--theme-highlight-orange); | |
46e71434 RK |
954 | } |
955 | ||
b7f3670c | 956 | .chart-colored-blob[name=fonts] { |
de5e780d RK |
957 | fill: var(--theme-highlight-darkpurple); |
958 | background: var(--theme-highlight-darkpurple); | |
46e71434 RK |
959 | } |
960 | ||
b7f3670c | 961 | .chart-colored-blob[name=images] { |
de5e780d RK |
962 | fill: var(--theme-highlight-pink); |
963 | background: var(--theme-highlight-pink); | |
46e71434 RK |
964 | } |
965 | ||
b7f3670c | 966 | .chart-colored-blob[name=media] { |
de5e780d RK |
967 | fill: var(--theme-highlight-green); |
968 | background: var(--theme-highlight-green); | |
46e71434 RK |
969 | } |
970 | ||
b7f3670c | 971 | .chart-colored-blob[name=flash] { |
de5e780d RK |
972 | fill: var(--theme-highlight-red); |
973 | background: var(--theme-highlight-red); | |
46e71434 RK |
974 | } |
975 | ||
976 | .table-chart-row-label[name=cached] { | |
977 | display: none; | |
978 | } | |
979 | ||
980 | .table-chart-row-label[name=count] { | |
981 | width: 3em; | |
982 | text-align: end; | |
983 | } | |
984 | ||
985 | .table-chart-row-label[name=label] { | |
986 | width: 7em; | |
987 | } | |
988 | ||
989 | .table-chart-row-label[name=size] { | |
990 | width: 7em; | |
991 | } | |
992 | ||
993 | .table-chart-row-label[name=time] { | |
994 | width: 7em; | |
995 | } | |
996 | ||
f30073a6 RK |
997 | /* Responsive sidebar */ |
998 | @media (max-width: 700px) { | |
999 | #requests-menu-toolbar { | |
7d6161c5 | 1000 | height: 22px; |
f30073a6 RK |
1001 | } |
1002 | ||
1003 | .requests-menu-header-button { | |
d0a8de80 RK |
1004 | min-height: 22px; |
1005 | padding-left: 8px; | |
e2734cc7 RK |
1006 | } |
1007 | ||
f30073a6 | 1008 | #details-pane { |
f30073a6 RK |
1009 | margin: 0 !important; |
1010 | /* To prevent all the margin hacks to hide the sidebar. */ | |
1011 | } | |
1012 | ||
d0a8de80 RK |
1013 | .requests-menu-status { |
1014 | max-width: none; | |
11ddc405 | 1015 | width: 10vw; |
d0a8de80 RK |
1016 | } |
1017 | ||
1018 | .requests-menu-status-code { | |
1019 | width: auto; | |
1020 | } | |
1021 | ||
1022 | .requests-menu-method, | |
1023 | .requests-menu-method-box { | |
1024 | max-width: none; | |
11ddc405 | 1025 | width: 12vw; |
d0a8de80 RK |
1026 | } |
1027 | ||
1028 | .requests-menu-icon-and-file { | |
1029 | width: 22vw; | |
f30073a6 RK |
1030 | } |
1031 | ||
20752032 | 1032 | .requests-menu-security-and-domain { |
11ddc405 | 1033 | width: 16vw; |
f30073a6 RK |
1034 | } |
1035 | ||
11ddc405 RK |
1036 | .requests-menu-cause, |
1037 | .requests-menu-type, | |
1038 | .requests-menu-transferred, | |
1039 | .requests-menu-size { | |
1040 | max-width: none; | |
d0a8de80 | 1041 | width: 10vw; |
f30073a6 RK |
1042 | } |
1043 | ||
11ddc405 RK |
1044 | .requests-menu-waterfall { |
1045 | display: none; | |
f30073a6 RK |
1046 | } |
1047 | } | |
1048 | ||
7d6161c5 RK |
1049 | /* Platform overrides (copied in from the old platform specific files) */ |
1050 | :root[platform="win"] .requests-menu-header-button > .button-box { | |
1051 | padding: 0; | |
1052 | } | |
1053 | ||
1054 | :root[platform="win"] .requests-menu-timings-division { | |
1055 | padding-top: 1px; | |
1056 | font-size: 90%; | |
1057 | } | |
1058 | ||
1059 | :root[platform="linux"] #headers-summary-resend { | |
1060 | padding: 4px; | |
1061 | } | |
1062 | ||
1063 | :root[platform="linux"] #toggle-raw-headers { | |
1064 | padding: 4px; | |
1065 | } | |
1066 | ||
1067 | /* Responsive sidebar */ | |
1068 | @media (max-width: 700px) { | |
1069 | :root[platform="linux"] .requests-menu-header-button { | |
1070 | font-size: 85%; | |
1071 | } | |
1072 | } | |
11ddc405 RK |
1073 | |
1074 | /* Overwrite tree-view cell colon and use l10n string instead */ | |
1075 | .treeTable .treeLabelCell::after { | |
1076 | content: ""; | |
1077 | } | |
1078 | ||
1079 | /* Layout additional warning icon in tree value cell */ | |
1080 | .security-info-value { | |
1081 | display: flex; | |
1082 | } | |
1083 | ||
1084 | .security-info-value .textbox-input { | |
1085 | text-overflow: ellipsis; | |
1086 | border: none; | |
1087 | background: none; | |
1088 | color: inherit; | |
1089 | width: 100%; | |
1090 | margin-inline-end: 2px; | |
1091 | } | |
1092 | ||
1093 | .security-info-value .textbox-input:focus { | |
1094 | outline: 0; | |
1095 | box-shadow: var(--theme-focus-box-shadow-textbox); | |
1096 | } | |
1097 | ||
1098 | .treeTable .treeLabel { | |
1099 | font-weight: 600; | |
1100 | } | |
1101 | ||
1102 | /* Customize default tree table style to align with devtools theme */ | |
1103 | .theme-light .treeTable .treeLabel, | |
1104 | .theme-light .treeTable .treeRow.hasChildren > .treeLabelCell > .treeLabel:hover { | |
1105 | color: var(--theme-highlight-red); | |
1106 | } | |
1107 | ||
1108 | .theme-dark .treeTable .treeLabel, | |
1109 | .theme-dark .treeTable .treeRow.hasChildren > .treeLabelCell > .treeLabel:hover { | |
1110 | color: var(--theme-highlight-purple); | |
1111 | } | |
1112 | ||
1113 | .theme-firebug .treeTable .treeLabel { | |
1114 | color: var(--theme-body-color); | |
1115 | } | |
1116 | ||
1117 | .treeTable .treeRow.hasChildren > .treeLabelCell > .treeLabel:hover { | |
1118 | cursor: default; | |
1119 | text-decoration: none; | |
1120 | } | |
1121 | ||
1122 | /* | |
1123 | * FIXME: normal html block element cannot fill outer XUL element | |
1124 | * This workaround should be removed after sidebar is migrated to react | |
1125 | */ | |
1126 | #react-security-tabpanel-hook, | |
1127 | #react-timings-tabpanel-hook { | |
1128 | display: -moz-box; | |
1129 | -moz-box-orient: vertical; | |
1130 | -moz-box-flex: 1; | |
1131 | } |