Commit | Line | Data |
---|---|---|
cc7e70eb RK |
1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
2 | * License, v. 2.0. If a copy of the MPL was not distributed with this | |
3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
4 | ||
e7c8bab1 RK |
5 | /* === file identical to profiler.inc.css === */ |
6 | ||
cc7e70eb RK |
7 | window { |
8 | padding: 0; | |
9 | } | |
10 | ||
d4d77dc0 RK |
11 | /* Reload and waiting notices */ |
12 | ||
13 | .notice-container { | |
14 | margin-top: -50vh; | |
15 | font-size: 120%; | |
de5e780d RK |
16 | background-color: var(--theme-toolbar-background); |
17 | color: var(--theme-body-color); | |
d4d77dc0 RK |
18 | } |
19 | ||
20 | #empty-notice button, | |
21 | #recording-notice button { | |
22 | min-width: 30px; | |
23 | min-height: 28px; | |
24 | margin: 0; | |
25 | list-style-image: url("profiler-stopwatch.svg"); | |
26 | } | |
27 | ||
28 | #empty-notice button[checked], | |
29 | #recording-notice button[checked] { | |
30 | list-style-image: url("profiler-stopwatch-checked.svg"); | |
31 | } | |
32 | ||
33 | #empty-notice button .button-text, | |
34 | #recording-notice button .button-text { | |
35 | display: none; | |
36 | } | |
37 | ||
38 | #loading-notice { | |
39 | font-size: 250%; | |
40 | color: #9C9CFF; | |
41 | } | |
42 | ||
43 | /* Recordings pane */ | |
44 | ||
45 | #recordings-pane > tabs, | |
46 | #recordings-pane .devtools-toolbar { | |
47 | -moz-border-end-width: 1px; | |
48 | } | |
49 | ||
50 | #recordings-pane > tabs, | |
51 | #recordings-pane .devtools-toolbar { | |
de5e780d | 52 | -moz-border-end-color: var(--theme-splitter-color); |
d4d77dc0 RK |
53 | } |
54 | ||
55 | #record-button { | |
56 | list-style-image: url("profiler-stopwatch.svg"); | |
57 | } | |
58 | ||
59 | #record-button[checked] { | |
60 | list-style-image: url("profiler-stopwatch-checked.svg"); | |
61 | } | |
62 | ||
63 | #record-button[locked] { | |
64 | pointer-events: none; | |
65 | } | |
66 | ||
67 | /* Recording items */ | |
68 | ||
69 | .recording-item { | |
70 | padding: 4px; | |
71 | } | |
72 | ||
73 | .recording-item-title { | |
74 | font-size: 110%; | |
e7c8bab1 RK |
75 | } |
76 | ||
d4d77dc0 RK |
77 | .recording-item-footer { |
78 | padding-top: 4px; | |
79 | font-size: 90%; | |
cc7e70eb RK |
80 | } |
81 | ||
d4d77dc0 RK |
82 | .recording-item-save { |
83 | text-decoration: underline; | |
84 | cursor: pointer; | |
85 | } | |
86 | ||
87 | .recording-item-duration, | |
88 | .recording-item-save { | |
de5e780d | 89 | color: var(--theme-body-color-alt); |
e7c8bab1 RK |
90 | } |
91 | ||
d4d77dc0 RK |
92 | #recordings-list .selected label { |
93 | /* Text inside a selected item should not be custom colored. */ | |
94 | color: inherit !important; | |
e7c8bab1 RK |
95 | } |
96 | ||
d4d77dc0 RK |
97 | /* Profile pane */ |
98 | ||
99 | #profile-content tabs { | |
100 | -moz-box-align: stretch; | |
101 | height: 24px; | |
102 | font: inherit; | |
103 | } | |
104 | ||
105 | #profile-content tab { | |
106 | -moz-box-flex: 0; | |
107 | background-color: transparent; | |
108 | border: none; | |
109 | border-radius: 0; | |
110 | padding: 0; | |
111 | text-shadow: none; | |
112 | transition-duration: 0.25s; | |
113 | transition-timing-function: ease-in-out; | |
114 | transition-property: opacity, transform; | |
45dc7657 RK |
115 | } |
116 | ||
de5e780d RK |
117 | #profile-content tab { |
118 | color: var(--theme-body-color); | |
e7c8bab1 RK |
119 | } |
120 | ||
d4d77dc0 | 121 | #profile-content tab:not([selected]) { |
e7c8bab1 | 122 | cursor: pointer; |
cc7e70eb RK |
123 | } |
124 | ||
d4d77dc0 RK |
125 | #profile-content tab[covered] { |
126 | opacity: 0; | |
127 | transform: translateY(100%); | |
128 | } | |
129 | ||
130 | #profile-content tab { | |
131 | -moz-appearance: none; | |
de5e780d | 132 | -moz-border-end: 1px solid var(--theme-splitter-color); |
d4d77dc0 RK |
133 | } |
134 | ||
135 | #profile-content tab:hover { | |
de5e780d RK |
136 | background-color: var(--theme-hover-background); |
137 | color: var(--theme-hover-color); | |
d4d77dc0 RK |
138 | } |
139 | ||
140 | #profile-content tab[selected] { | |
de5e780d RK |
141 | background-color: var(--theme-selection-background); |
142 | color: var(--theme-selection-color); | |
d4d77dc0 RK |
143 | } |
144 | ||
145 | #profile-content tabpanel { | |
146 | -moz-box-orient: vertical; | |
147 | transform: translateZ(1px); /* Make sure the tabpanel appears above the tab */ | |
148 | } | |
149 | ||
150 | #profile-newtab-button { | |
151 | -moz-appearance: none; | |
152 | background-color: transparent; | |
153 | background-position: 4px 2px; | |
154 | background-size: 54px 20px; | |
155 | min-width: 26px; | |
156 | margin: 0; | |
157 | border: none; | |
158 | cursor: pointer; | |
159 | } | |
160 | ||
161 | #profile-newtab-button { | |
162 | background-color: #C09070; | |
163 | } | |
164 | ||
165 | #profile-newtab-button { | |
166 | background-image: url("newtab.png"); | |
167 | } | |
168 | ||
169 | @media (min-resolution: 2dppx) { | |
170 | #profile-newtab-button { | |
171 | background-image: url("newtab@2x.png"); | |
172 | } | |
173 | } | |
174 | ||
175 | /* Profile call tree */ | |
176 | ||
177 | .call-tree-headers-container { | |
de5e780d | 178 | border-top: 1px solid var(--theme-splitter-color); |
e7c8bab1 RK |
179 | } |
180 | ||
d4d77dc0 RK |
181 | .call-tree-cells-container { |
182 | /* Hack: force hardware acceleration */ | |
183 | transform: translateZ(1px); | |
184 | overflow: auto; | |
185 | } | |
186 | ||
187 | .call-tree-cells-container[categories-hidden] .call-tree-category { | |
e7c8bab1 | 188 | display: none; |
d4d77dc0 RK |
189 | } |
190 | ||
191 | .call-tree-header[type="duration"], | |
192 | .call-tree-cell[type="duration"], | |
193 | .call-tree-header[type="self-duration"], | |
194 | .call-tree-cell[type="self-duration"] { | |
195 | width: 9em; | |
196 | } | |
197 | ||
198 | .call-tree-header[type="percentage"], | |
199 | .call-tree-cell[type="percentage"], | |
200 | .call-tree-header[type="self-percentage"], | |
201 | .call-tree-cell[type="self-percentage"] { | |
202 | width: 6em; | |
203 | } | |
204 | ||
205 | .call-tree-header[type="samples"], | |
206 | .call-tree-cell[type="samples"] { | |
207 | width: 5em; | |
208 | } | |
209 | ||
210 | .call-tree-header[type="function"], | |
211 | .call-tree-cell[type="function"] { | |
212 | -moz-box-flex: 1; | |
213 | } | |
214 | ||
215 | .call-tree-header, | |
216 | .call-tree-cell { | |
217 | -moz-box-align: center; | |
218 | overflow: hidden; | |
219 | padding: 1px 4px; | |
de5e780d | 220 | color: var(--theme-body-color); |
d4d77dc0 RK |
221 | } |
222 | ||
223 | .call-tree-header:not(:last-child), | |
224 | .call-tree-cell:not(:last-child) { | |
225 | -moz-border-end: 1px solid; | |
226 | } | |
227 | ||
228 | .call-tree-header, | |
229 | .call-tree-cell { | |
230 | -moz-border-end-color: #9C9CFF; | |
d4d77dc0 RK |
231 | } |
232 | ||
233 | .call-tree-header:not(:last-child) { | |
234 | text-align: center; | |
235 | } | |
236 | ||
237 | .call-tree-cell:not(:last-child) { | |
238 | text-align: end; | |
239 | } | |
240 | ||
241 | .call-tree-header { | |
de5e780d RK |
242 | background-color: var(--theme-contrastsidebar-background); |
243 | color: var(--theme-contrastsidebar-color); | |
d4d77dc0 RK |
244 | } |
245 | ||
246 | .call-tree-item:last-child:not(:focus) { | |
247 | border-bottom: #9C9CFF; | |
248 | } | |
249 | ||
250 | .call-tree-item:nth-child(2n) { | |
251 | background-color: #392900; | |
252 | } | |
253 | ||
254 | .call-tree-item:hover { | |
255 | background-color: #392900; | |
256 | } | |
257 | ||
258 | .call-tree-item:focus { | |
de5e780d RK |
259 | background-color: var(--theme-selection-background); |
260 | color: var(--theme-selection-color); | |
d4d77dc0 RK |
261 | } |
262 | ||
263 | .call-tree-item:focus label { | |
de5e780d | 264 | color: var(--theme-selection-color) !important; |
d4d77dc0 RK |
265 | } |
266 | ||
267 | .call-tree-item:focus .call-tree-cell { | |
268 | -moz-border-end-color: #9C9CFF; | |
269 | } | |
270 | ||
271 | .call-tree-item:not([origin="content"]) .call-tree-name, | |
272 | .call-tree-item:not([origin="content"]) .call-tree-url, | |
273 | .call-tree-item:not([origin="content"]) .call-tree-line { | |
274 | /* Style chrome and non-JS nodes differently. */ | |
275 | opacity: 0.6; | |
276 | } | |
277 | ||
278 | .call-tree-url { | |
279 | -moz-margin-start: 4px !important; | |
cc7e70eb RK |
280 | cursor: pointer; |
281 | } | |
282 | ||
d4d77dc0 RK |
283 | .call-tree-url:hover { |
284 | text-decoration: underline; | |
285 | } | |
286 | ||
287 | .call-tree-url { | |
de5e780d | 288 | color: var(--theme-highlight-blue); |
d4d77dc0 RK |
289 | } |
290 | ||
291 | .call-tree-line { | |
de5e780d | 292 | color: var(--theme-content-color2); |
d4d77dc0 RK |
293 | } |
294 | ||
295 | .call-tree-host { | |
296 | -moz-margin-start: 8px !important; | |
297 | font-size: 90%; | |
298 | } | |
299 | ||
300 | .call-tree-host { | |
de5e780d | 301 | color: var(--theme-highlight-pink); |
d4d77dc0 RK |
302 | } |
303 | ||
304 | .call-tree-url[value=""], | |
305 | .call-tree-line[value=""], | |
306 | .call-tree-host[value=""] { | |
307 | display: none; | |
308 | } | |
309 | ||
310 | .call-tree-zoom { | |
311 | -moz-appearance: none; | |
312 | background-color: transparent; | |
313 | background-position: center; | |
314 | background-repeat: no-repeat; | |
315 | background-size: 11px; | |
316 | min-width: 11px; | |
317 | -moz-margin-start: 8px !important; | |
318 | cursor: zoom-in; | |
319 | opacity: 0; | |
320 | } | |
321 | ||
322 | .call-tree-zoom { | |
323 | background-image: url("magnifying-glass.png"); | |
e7c8bab1 RK |
324 | } |
325 | ||
d4d77dc0 RK |
326 | @media (min-resolution: 2dppx) { |
327 | .call-tree-zoom { | |
328 | background-image: url("magnifying-glass@2x.png"); | |
329 | } | |
e7c8bab1 RK |
330 | } |
331 | ||
d4d77dc0 RK |
332 | .call-tree-item:hover .call-tree-zoom { |
333 | transition: opacity 0.3s ease-in; | |
334 | opacity: 1; | |
e7c8bab1 RK |
335 | } |
336 | ||
d4d77dc0 RK |
337 | .call-tree-item:hover .call-tree-zoom:hover { |
338 | opacity: 0; | |
624ebb51 RK |
339 | } |
340 | ||
d4d77dc0 RK |
341 | .call-tree-category { |
342 | transform: scale(0.75); | |
343 | transform-origin: center right; | |
624ebb51 | 344 | } |