1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
|
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
@import url("chrome://global/skin/in-content/common.css");
html {
background-color: var(--in-content-page-background);
}
body {
overflow-x: hidden;
}
#process-table {
user-select: none;
font-size: 1em;
border-spacing: 0;
background-color: var(--in-content-box-background);
margin: 0;
position: absolute;
top: 0;
inset-inline-start: 0;
width: 100%;
height: 100%;
}
/* Avoid scrolling the header */
#process-tbody {
display: block;
margin-top: 2em;
}
#process-thead {
position: fixed;
z-index: 1;
height: 2em;
border-bottom: 1px solid var(--in-content-border-color);
width: 100%;
background-color: var(--in-content-box-background);
}
tr {
display: grid;
/* Flexible width for the name column, 15% width for the memory and CPU column,
* then fixed width (16px icon + 2*10px margin) for the actions column. */
grid-template-columns: 1fr 15% 15% 36px;
grid-auto-rows: 2em;
width: 100%;
}
.cpu, .memory {
text-align: end;
}
#process-thead > tr {
height: inherit;
}
th {
font-weight: normal;
text-align: start;
background-color: var(--in-content-button-background);
}
th:not(:first-child) {
border-inline-start: 1px solid;
border-image: linear-gradient(transparent 0%, transparent 20%, var(--in-content-box-border-color) 20%, var(--in-content-box-border-color) 80%, transparent 80%, transparent 100%) 1 1;
}
th, td {
padding: 5px 10px;
min-height: 16px;
max-height: 2em;
overflow: hidden;
white-space: nowrap;
}
td.type, td.favicon {
background-repeat: no-repeat;
background-origin: border-box;
background-size: 16px 16px;
background-position: 11px center;
padding-inline-start: 38px;
-moz-context-properties: fill;
fill: currentColor;
}
td.type:dir(rtl), td.favicon:dir(rtl) {
background-position-x: right 11px;
}
td:first-child {
text-overflow: ellipsis;
}
.profiler-icon {
background: url("chrome://devtools/skin/images/tool-profiler.svg") no-repeat center;
display: inline-block;
height: 100%;
width: 16px;
padding: 5px 7px;
/* The -10px is -5 to undo the td padding and -5 to undo the padding here. */
margin: -10px 3px;
-moz-context-properties: fill, fill-opacity;
fill-opacity: 0.9;
fill: currentColor;
}
.profiler-icon:hover {
background-color: var(--in-content-button-background-hover);
color: var(--in-content-button-text-color-hover);
}
.profiler-icon:hover:active {
background-color: var(--in-content-button-background-active);
color: var(--in-content-button-text-color-active);
fill-opacity: 1;
}
.profiler-icon:not(.profiler-active) {
transform: scaleX(-1);
}
.profiler-active {
fill: var(--in-content-accent-color);
}
td:not(:hover) > .profiler-icon:not(.profiler-active) {
display: none;
}
.twisty {
position: relative;
}
/* Putting the background image in a positioned pseudo element lets us
* use CSS transforms on the background image, which we need for rtl. */
.twisty::before {
content: url("chrome://global/skin/icons/arrow-right-12.svg");
position: absolute;
display: block;
line-height: 50%;
top: 4px; /* Half the image's height */
inset-inline-start: -16px;
width: 12px;
-moz-context-properties: fill;
fill: currentColor;
}
.twisty:dir(rtl)::before {
content: url("chrome://global/skin/icons/arrow-left-12.svg");
}
.twisty.open::before {
content: url("chrome://global/skin/icons/arrow-down-12.svg");
}
.twisty:-moz-focusring {
outline: none;
}
.twisty:-moz-focusring::before {
outline: var(--in-content-focus-outline);
}
.indent {
padding-inline: 48px 0;
}
.double_indent {
padding-inline: 58px 0;
}
tr[selected] > td {
background-color: var(--in-content-item-selected);
color: var(--in-content-item-selected-text);
}
#process-tbody > tr:hover {
background-color: var(--in-content-item-hover);
color: var(--in-content-item-hover-text);
}
/* Tab names and thread summary text can extend into memory and CPU columns. */
.window > :first-child,
.thread-summary > :first-child {
grid-column: 1 / 4;
}
/* Thread names can extend into the memory column. */
.thread > :first-child {
grid-column: 1 / 3;
}
.clickable {
background-repeat: no-repeat;
background-position: right 4px center;
}
.clickable:dir(rtl) {
background-position-x: left 4px;
}
.arrow-up,
.arrow-down {
-moz-context-properties: fill;
fill: currentColor;
}
.arrow-up {
background-image: url("chrome://global/skin/icons/arrow-up-12.svg");
}
.arrow-down {
background-image: url("chrome://global/skin/icons/arrow-down-12.svg");
}
th.clickable:hover {
background-color: var(--in-content-button-background-hover);
color: var(--in-content-button-text-color-hover);
}
th.clickable:hover:active {
background-color: var(--in-content-button-background-active);
color: var(--in-content-button-text-color-active);
}
tr.process > td.type {
font-weight: bold;
}
tr.thread {
font-size-adjust: 0.5;
}
.killing {
opacity: 0.3;
transition-property: opacity;
transition-duration: 1s;
}
.killed {
opacity: 0.3;
}
/* icons */
.close-icon {
background: url("chrome://global/skin/icons/close.svg") no-repeat center;
opacity: 0; /* Start out as transparent */
-moz-context-properties: fill;
fill: currentColor;
}
tr:is([selected], :hover):not(.killing) > .close-icon {
opacity: 1;
}
.close-icon:hover {
background-color: var(--in-content-button-background-hover);
color: var(--in-content-button-text-color-hover);
}
.close-icon:hover:active {
background-color: var(--in-content-button-background-active);
color: var(--in-content-button-text-color-active);
}
/* column-name */
/* When the process is reported as frozen, we display an hourglass before its name. */
.process.hung > :first-child > :not(.twisty)::before {
content: "⌛️";
}
/*
Show a separation between process groups.
*/
tr.separate-from-previous-process-group {
border-top: dotted 1px var(--in-content-box-border-color);
margin-top: -1px;
}
/* Graphical view of CPU use. */
.cpu {
--bar-width: 0;
background: linear-gradient(to left, var(--blue-40) calc(var(--bar-width) * 1%), transparent calc(var(--bar-width) * 1%));
}
.cpu:dir(rtl) {
background: linear-gradient(to right, var(--blue-40) calc(var(--bar-width) * 1%), transparent calc(var(--bar-width) * 1%));
}
|