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 | ||
45dc7657 RK |
6 | /* === BEGIN widgets.inc.css === */ |
7 | ||
19988d2d RK |
8 | .theme-dark, |
9 | .theme-light { | |
10 | --table-splitter-color: #A09090; | |
11 | --table-zebra-background: rgba(255,159,0,0.1); | |
12 | } | |
13 | ||
cc7e70eb RK |
14 | /* Generic pane helpers */ |
15 | ||
16 | .generic-toggled-side-pane { | |
cc7e70eb RK |
17 | -moz-margin-start: 0px !important; |
18 | /* Unfortunately, transitions don't work properly with locale-aware properties, | |
19 | so both the left and right margins are set via js, while the start margin | |
20 | is always overridden here. */ | |
21 | } | |
22 | ||
23 | .generic-toggled-side-pane[animated] { | |
24 | transition: margin 0.25s ease-in-out; | |
25 | } | |
26 | ||
c1d2ce3e RK |
27 | /* Responsive container */ |
28 | ||
29 | .devtools-responsive-container { | |
30 | -moz-box-orient: horizontal; | |
31 | } | |
32 | ||
d4d77dc0 RK |
33 | .devtools-main-content { |
34 | min-width: 50px; | |
35 | } | |
36 | ||
37 | .devtools-main-content, | |
38 | .devtools-sidebar-tabs { | |
39 | /* Prevent some children that should be hidden from remaining visible as this is shrunk (Bug 971959) */ | |
40 | position: relative; | |
41 | } | |
42 | ||
c1d2ce3e RK |
43 | @media (max-width: 700px) { |
44 | .devtools-responsive-container { | |
45 | -moz-box-orient: vertical; | |
46 | } | |
47 | ||
48 | .devtools-responsive-container > .devtools-side-splitter { | |
b3bf08b1 RK |
49 | /* This is a normally vertical splitter, but we have turned it horizontal |
50 | due to the smaller resolution */ | |
c1d2ce3e RK |
51 | border: 0; |
52 | margin: 0; | |
53 | min-height: 3px; | |
54 | height: 3px; | |
b3bf08b1 RK |
55 | margin-top: -3px; |
56 | ||
57 | /* Reset the vertical splitter styles */ | |
58 | width: auto; | |
59 | min-width: 0; | |
60 | ||
c1d2ce3e RK |
61 | /* In some edge case the cursor is not changed to n-resize */ |
62 | cursor: n-resize; | |
63 | } | |
64 | ||
65 | .devtools-responsive-container > .devtools-sidebar-tabs { | |
66 | min-height: 35vh; | |
67 | max-height: 75vh; | |
68 | } | |
69 | } | |
70 | ||
cc7e70eb RK |
71 | /* BreacrumbsWidget */ |
72 | ||
73 | .breadcrumbs-widget-container { | |
fff8097b RK |
74 | -moz-margin-start: 2px; |
75 | -moz-margin-start: 2px; | |
2b5a5147 RK |
76 | max-height: 24px; /* Set max-height for proper sizing on linux */ |
77 | height: 24px; /* Set height to prevent starting small waiting for content */ | |
cc7e70eb RK |
78 | } |
79 | ||
cc7e70eb RK |
80 | .scrollbutton-up, |
81 | .scrollbutton-down { | |
45dc7657 RK |
82 | background: transparent; |
83 | box-shadow: none; | |
84 | border: none; | |
85 | margin: 0; | |
86 | padding: 0; | |
cc7e70eb RK |
87 | } |
88 | ||
89 | .scrollbutton-up { | |
90 | -moz-margin-end: 1px; | |
91 | } | |
92 | ||
93 | .scrollbutton-down { | |
94 | -moz-margin-end: 0; | |
95 | } | |
96 | ||
cc7e70eb RK |
97 | .scrollbutton-up > .toolbarbutton-icon, |
98 | .scrollbutton-down > .toolbarbutton-icon { | |
99 | /* margin: 0 5px; */ | |
100 | } | |
101 | ||
102 | .scrollbutton-up:not([disabled]):active:hover > .toolbarbutton-icon, | |
103 | .scrollbutton-down:not([disabled]):active:hover > .toolbarbutton-icon { | |
104 | } | |
105 | ||
106 | .scrollbutton-up[disabled] > .toolbarbutton-icon, | |
107 | .scrollbutton-down[disabled] > .toolbarbutton-icon { | |
108 | } | |
109 | ||
110 | .scrollbutton-up:-moz-locale-dir(ltr) { | |
111 | border-top-right-radius: 0; | |
112 | border-bottom-right-radius: 0; | |
113 | } | |
114 | ||
115 | .scrollbutton-down:-moz-locale-dir(ltr) { | |
116 | border-top-left-radius: 0; | |
117 | border-bottom-left-radius: 0; | |
118 | } | |
119 | ||
120 | .scrollbutton-up:-moz-locale-dir(rtl) { | |
121 | border-top-left-radius: 0; | |
122 | border-bottom-left-radius: 0; | |
123 | } | |
124 | ||
125 | .scrollbutton-down:-moz-locale-dir(rtl) { | |
126 | border-top-right-radius: 0; | |
127 | border-bottom-right-radius: 0; | |
128 | } | |
129 | ||
45dc7657 RK |
130 | /* Draw shadows to indicate there is more content 'behind' scrollbuttons. */ |
131 | /* | |
132 | .scrollbutton-up:-moz-locale-dir(ltr), | |
133 | .scrollbutton-down:-moz-locale-dir(rtl) { | |
134 | border-right: solid 1px rgba(255, 255, 255, .1); | |
135 | border-left: solid 1px transparent; | |
28e80a05 | 136 | box-shadow: 3px 0px 3px -3px var(--theme-sidebar-background); |
cc7e70eb RK |
137 | } |
138 | ||
45dc7657 RK |
139 | .scrollbutton-down:-moz-locale-dir(ltr), |
140 | .scrollbutton-up:-moz-locale-dir(rtl) { | |
141 | border-right: solid 1px transparent; | |
142 | border-left: solid 1px rgba(255, 255, 255, .1); | |
28e80a05 | 143 | box-shadow: -3px 0px 3px -3px var(--theme-sidebar-background); |
cc7e70eb RK |
144 | } |
145 | ||
45dc7657 RK |
146 | .scrollbutton-up[disabled], |
147 | .scrollbutton-down[disabled] { | |
148 | box-shadow: none; | |
149 | border-color: transparent; | |
cc7e70eb | 150 | } |
45dc7657 | 151 | */ |
cc7e70eb | 152 | |
45dc7657 RK |
153 | .scrollbutton-up > .toolbarbutton-icon:-moz-locale-dir(rtl), |
154 | .scrollbutton-down > .toolbarbutton-icon:-moz-locale-dir(ltr) { | |
155 | /* transform: scaleX(-1); */ | |
cc7e70eb RK |
156 | } |
157 | ||
45dc7657 RK |
158 | /* The breadcrumb separator elements are used as background images with |
159 | * -moz-element, so we position them offscreen since we don't care about | |
160 | * seeing the original elements. | |
161 | */ | |
162 | .breadcrumb-separator-container { | |
163 | position: fixed; | |
164 | top: -1000px; | |
165 | left: -1000px; | |
cc7e70eb RK |
166 | } |
167 | ||
45dc7657 RK |
168 | #breadcrumb-separator-before, |
169 | #breadcrumb-separator-after, | |
170 | #breadcrumb-separator-normal { | |
171 | width: 12px; | |
2b5a5147 | 172 | height: 24px; |
45dc7657 | 173 | overflow: hidden; |
cc7e70eb RK |
174 | } |
175 | ||
45dc7657 RK |
176 | #breadcrumb-separator-before, |
177 | #breadcrumb-separator-after:after { | |
28e80a05 | 178 | background: var(--theme-selection-background); |
cc7e70eb RK |
179 | } |
180 | ||
45dc7657 RK |
181 | #breadcrumb-separator-after, |
182 | #breadcrumb-separator-before:after { | |
28e80a05 | 183 | background: var(--theme-toolbar-background); |
cc7e70eb RK |
184 | } |
185 | ||
45dc7657 RK |
186 | /* This chevron arrow cannot be replicated easily in CSS, so we are using |
187 | * a background image for it (still keeping it in a separate element so | |
188 | * we can handle RTL support with a CSS transform). | |
189 | */ | |
190 | #breadcrumb-separator-normal { | |
191 | background: url("breadcrumbs-divider@2x.png") no-repeat center right; | |
192 | background-size: 12px 24px; | |
cc7e70eb RK |
193 | } |
194 | ||
45dc7657 RK |
195 | /* Fake a triangle by rotating a rectangle inside the elements */ |
196 | #breadcrumb-separator-before:after, | |
197 | #breadcrumb-separator-after:after { | |
198 | content: ""; | |
199 | display: block; | |
200 | width: 25px; | |
2b5a5147 | 201 | height: 24px; |
45dc7657 | 202 | transform: translateX(-18px) rotate(45deg); |
1783ea50 | 203 | box-sizing: border-box; |
cc7e70eb RK |
204 | } |
205 | ||
45dc7657 | 206 | .breadcrumbs-widget-item { |
28e80a05 | 207 | background-color: var(--theme-toolbar-background); |
2b5a5147 | 208 | min-height: 24px; |
45dc7657 RK |
209 | min-width: 65px; |
210 | margin: 0; | |
211 | padding: 0 8px 0 20px; | |
212 | border: none; | |
fff8097b | 213 | border-radius: 0; |
45dc7657 | 214 | outline: none; |
28e80a05 | 215 | color: var(--theme-content-color1); |
cc7e70eb RK |
216 | } |
217 | ||
45dc7657 | 218 | .breadcrumbs-widget-item:hover { |
28e80a05 RK |
219 | background-color: var(--theme-hover-background); |
220 | color: var(--theme-hover-color); | |
cc7e70eb RK |
221 | } |
222 | ||
45dc7657 | 223 | .breadcrumbs-widget-item[checked]:not(:hover) { |
28e80a05 RK |
224 | background-color: var(--theme-selection-background); |
225 | color: var(--theme-selection-color); | |
cc7e70eb RK |
226 | } |
227 | ||
45dc7657 RK |
228 | .breadcrumbs-widget-item[siblings-menu-open], |
229 | .breadcrumbs-widget-item:active { | |
230 | background-color: #FF9F00; | |
231 | color: #000000; | |
cc7e70eb RK |
232 | } |
233 | ||
9168a62c RK |
234 | .breadcrumbs-widget-item > .button-box { |
235 | border: none; | |
236 | padding-top: 0; | |
237 | padding-bottom: 0; | |
238 | } | |
239 | ||
45dc7657 | 240 | .breadcrumbs-widget-item:not([checked]) { |
fff8097b RK |
241 | background-image: -moz-element(#breadcrumb-separator-normal); |
242 | background-repeat: no-repeat; | |
243 | background-position: center left; | |
244 | } | |
245 | ||
45dc7657 | 246 | .breadcrumbs-widget-item[checked] + .breadcrumbs-widget-item { |
fff8097b RK |
247 | background-image: -moz-element(#breadcrumb-separator-after); |
248 | background-repeat: no-repeat; | |
249 | background-position: 0 0; | |
cc7e70eb RK |
250 | } |
251 | ||
45dc7657 | 252 | .breadcrumbs-widget-item[checked] { |
fff8097b RK |
253 | background-image: -moz-element(#breadcrumb-separator-before); |
254 | background-repeat: no-repeat; | |
255 | background-position: 0 0; | |
45dc7657 | 256 | background-color: #008484; /* Select Highlight Blue */ |
cc7e70eb RK |
257 | } |
258 | ||
45dc7657 RK |
259 | .breadcrumbs-widget-item:first-child { |
260 | background-image: none; | |
cc7e70eb RK |
261 | } |
262 | ||
45dc7657 RK |
263 | /* RTL support: move the images that were on the left to the right, |
264 | * and move images that were on the right to the left. | |
265 | */ | |
cc7e70eb | 266 | .breadcrumbs-widget-item:-moz-locale-dir(rtl) { |
45dc7657 | 267 | padding: 0 20px 0 8px; |
cc7e70eb RK |
268 | } |
269 | ||
45dc7657 RK |
270 | .breadcrumbs-widget-item:-moz-locale-dir(rtl), |
271 | .breadcrumbs-widget-item[checked] + .breadcrumbs-widget-item:-moz-locale-dir(rtl) { | |
272 | background-position: center right; | |
cc7e70eb RK |
273 | } |
274 | ||
45dc7657 RK |
275 | #breadcrumb-separator-before:-moz-locale-dir(rtl), |
276 | #breadcrumb-separator-after:-moz-locale-dir(rtl), | |
277 | #breadcrumb-separator-normal:-moz-locale-dir(rtl) { | |
278 | transform: scaleX(-1); | |
cc7e70eb RK |
279 | } |
280 | ||
45dc7657 RK |
281 | #breadcrumb-separator-before:-moz-locale-dir(rtl):after, |
282 | #breadcrumb-separator-after:-moz-locale-dir(rtl):after { | |
283 | transform: translateX(-5px) rotate(45deg); | |
cc7e70eb RK |
284 | } |
285 | ||
45dc7657 RK |
286 | .breadcrumbs-widget-item[checked] .breadcrumbs-widget-item-id, |
287 | .breadcrumbs-widget-item[checked] .breadcrumbs-widget-item-tag, | |
288 | .breadcrumbs-widget-item[checked] .breadcrumbs-widget-item-pseudo-classes, | |
289 | .breadcrumbs-widget-item[checked] .breadcrumbs-widget-item-classes { | |
28e80a05 | 290 | color: var(--theme-highlight-lightorange); |
cc7e70eb RK |
291 | } |
292 | ||
fff8097b RK |
293 | .breadcrumbs-widget-item:not([checked]):hover .breadcrumbs-widget-item-id, |
294 | .breadcrumbs-widget-item:not([checked]):hover .breadcrumbs-widget-item-tag, | |
295 | .breadcrumbs-widget-item:not([checked]):hover .breadcrumbs-widget-item-pseudo-classes, | |
296 | .breadcrumbs-widget-item:not([checked]):hover .breadcrumbs-widget-item-classes { | |
28e80a05 | 297 | color: var(--theme-hover-color) !important; |
fff8097b RK |
298 | } |
299 | ||
46e71434 | 300 | .breadcrumbs-widget-item { |
28e80a05 | 301 | color: var(--theme-highlight-lightorange); |
46e71434 RK |
302 | } |
303 | ||
304 | .breadcrumbs-widget-item-id { | |
28e80a05 | 305 | color: var(--theme-body-color-alt); |
cc7e70eb RK |
306 | } |
307 | ||
46e71434 | 308 | .breadcrumbs-widget-item-classes { |
28e80a05 | 309 | color: var(--theme-content-color1); |
46e71434 RK |
310 | } |
311 | ||
45dc7657 | 312 | .breadcrumbs-widget-item-pseudo-classes { |
28e80a05 | 313 | color: var(--theme-highlight-lightorange); |
cc7e70eb RK |
314 | } |
315 | ||
45dc7657 | 316 | /* SimpleListWidget */ |
cc7e70eb | 317 | |
46e71434 RK |
318 | .simple-list-widget-container { |
319 | /* Hack: force hardware acceleration */ | |
320 | transform: translateZ(1px); | |
cc7e70eb RK |
321 | } |
322 | ||
45dc7657 | 323 | .simple-list-widget-item.selected { |
28e80a05 RK |
324 | background-color: var(--theme-selection-background); |
325 | color: var(--theme-selection-color); | |
46e71434 RK |
326 | } |
327 | ||
328 | .simple-list-widget-item:not(.selected):hover { | |
28e80a05 RK |
329 | background-color: var(--theme-hover-background); |
330 | color: var(--theme-hover-color); | |
cc7e70eb RK |
331 | } |
332 | ||
45dc7657 RK |
333 | .simple-list-widget-perma-text, |
334 | .simple-list-widget-empty-text { | |
28e80a05 | 335 | color: var(--theme-body-color-alt); |
45dc7657 | 336 | padding: 4px 8px; |
cc7e70eb RK |
337 | } |
338 | ||
45dc7657 | 339 | /* FastListWidget */ |
cc7e70eb | 340 | |
45dc7657 RK |
341 | .fast-list-widget-container { |
342 | /* Hack: force hardware acceleration */ | |
343 | transform: translateZ(1px); | |
cc7e70eb RK |
344 | } |
345 | ||
45dc7657 RK |
346 | /* dark/light theme */ |
347 | .fast-list-widget-empty-text { | |
348 | padding: 12px; | |
349 | font-weight: 600; | |
28e80a05 | 350 | color: var(--theme-body-color-alt); |
cc7e70eb RK |
351 | } |
352 | ||
353 | /* SideMenuWidget */ | |
354 | ||
45dc7657 RK |
355 | /* SideMenuWidget container */ |
356 | ||
cc7e70eb | 357 | .side-menu-widget-container { |
dfa34f73 RK |
358 | /* Hack: force hardware acceleration */ |
359 | transform: translateZ(1px); | |
cc7e70eb RK |
360 | } |
361 | ||
de57e474 | 362 | .side-menu-widget-container:-moz-locale-dir(ltr), |
45dc7657 | 363 | .side-menu-widget-empty-text:-moz-locale-dir(ltr) { |
cc7e70eb RK |
364 | } |
365 | ||
de57e474 | 366 | .side-menu-widget-container:-moz-locale-dir(rtl), |
45dc7657 | 367 | .side-menu-widget-empty-text:-moz-locale-dir(rtl)[with-arrows=true]:-moz-locale-dir(rtl) { |
cc7e70eb RK |
368 | } |
369 | ||
de57e474 | 370 | .side-menu-widget-group { |
7600e0b1 RK |
371 | /* To allow visibility of the dark margin shadow. */ |
372 | /* -moz-margin-end: 1px; */ | |
373 | } | |
374 | ||
375 | .side-menu-widget-container[with-arrows=true] .side-menu-widget-item { | |
376 | /* To compensate for the arrow image's dark margin. */ | |
377 | /* -moz-margin-end: -1px; */ | |
378 | } | |
379 | ||
380 | /* SideMenuWidget groups */ | |
381 | ||
cc7e70eb | 382 | .side-menu-widget-group-title { |
cc7e70eb | 383 | padding: 4px; |
28e80a05 RK |
384 | background-color: var(--theme-contrastsidebar-background); |
385 | color: var(--theme-contrastsidebar-color); | |
cc7e70eb RK |
386 | } |
387 | ||
7600e0b1 RK |
388 | /* SideMenuWidget items */ |
389 | ||
cc7e70eb RK |
390 | .side-menu-widget-item { |
391 | border-top: 1px solid #9C9CFF; | |
45dc7657 | 392 | /* To compensate for the top and bottom borders */ |
1b13529a RK |
393 | margin-top: -1px; |
394 | margin-bottom: -1px; | |
45dc7657 | 395 | background-clip: padding-box; |
cc7e70eb RK |
396 | } |
397 | ||
398 | .side-menu-widget-item:last-of-type { | |
399 | border-bottom: 1px solid #9C9CFF; | |
400 | } | |
401 | ||
402 | .side-menu-widget-item.selected { | |
28e80a05 RK |
403 | background-color: var(--theme-selection-background); |
404 | color: var(--theme-selection-color); | |
cc7e70eb RK |
405 | } |
406 | ||
45dc7657 RK |
407 | .side-menu-widget-item-arrow { |
408 | -moz-margin-start: -7px; | |
409 | width: 7px; /* The image's width is 7 pixels */ | |
410 | /* Cover the border of the side-menu-widget-item */ | |
411 | margin-top: -1px; | |
412 | margin-bottom: -1px; | |
413 | } | |
414 | ||
cc7e70eb RK |
415 | .side-menu-widget-item.selected > .side-menu-widget-item-arrow { |
416 | background-size: auto, 1px 100%; | |
417 | background-repeat: no-repeat; | |
418 | } | |
419 | ||
420 | .side-menu-widget-item.selected > .side-menu-widget-item-arrow:-moz-locale-dir(ltr) { | |
45dc7657 | 421 | background-position: center right; |
cc7e70eb RK |
422 | } |
423 | ||
424 | .side-menu-widget-item.selected > .side-menu-widget-item-arrow:-moz-locale-dir(rtl) { | |
45dc7657 | 425 | background-position: center left; |
cc7e70eb RK |
426 | } |
427 | ||
5401f433 | 428 | .side-menu-widget-item.selected > .side-menu-widget-item-arrow:-moz-locale-dir(ltr) { |
45dc7657 | 429 | background-image: url("itemArrow-ltr.svg"); |
e447dcba RK |
430 | } |
431 | ||
5401f433 | 432 | .side-menu-widget-item.selected > .side-menu-widget-item-arrow:-moz-locale-dir(rtl) { |
45dc7657 | 433 | background-image: url("itemArrow-rtl.svg"); |
1b13529a RK |
434 | } |
435 | ||
45dc7657 RK |
436 | /* SideMenuWidget items contents */ |
437 | ||
438 | .side-menu-widget-item-contents { | |
439 | padding: 4px; | |
440 | /* To avoid having content overlapping the arrow image. */ | |
441 | -moz-padding-end: 8px; | |
cc7e70eb RK |
442 | } |
443 | ||
cc7e70eb | 444 | .side-menu-widget-item-other { |
45dc7657 RK |
445 | /* To avoid having content overlapping the arrow image. */ |
446 | -moz-padding-end: 8px; | |
447 | /* To compensate for the .side-menu-widget-item-contents padding. */ | |
448 | -moz-margin-start: -4px; | |
449 | -moz-margin-end: -8px; | |
28e80a05 | 450 | color: var(--theme-selection-color); |
cc7e70eb RK |
451 | } |
452 | ||
453 | .side-menu-widget-item-other.selected { | |
28e80a05 RK |
454 | background-color: var(--theme-selection-background); |
455 | color: var(--theme-selection-color); | |
cc7e70eb RK |
456 | } |
457 | ||
cc7e70eb | 458 | .side-menu-widget-item-other:first-of-type { |
45dc7657 | 459 | margin-top: 4px; |
1b13529a | 460 | /* border-top-left-radius: 4px; */ |
cc7e70eb RK |
461 | } |
462 | ||
45dc7657 RK |
463 | .side-menu-widget-item-other:last-of-type { |
464 | margin-bottom: -4px; | |
465 | } | |
466 | ||
cc7e70eb RK |
467 | .side-menu-widget-item-other:not(.selected) > label { |
468 | color: #9C9CFF; | |
469 | } | |
470 | ||
6568957a RK |
471 | /* SideMenuWidget checkboxes */ |
472 | ||
473 | .side-menu-widget-group-checkbox { | |
474 | margin: 0; | |
475 | -moz-margin-end: 4px; | |
476 | } | |
477 | ||
478 | .side-menu-widget-item-checkbox { | |
479 | margin: 0; | |
480 | -moz-margin-start: 4px; | |
481 | -moz-margin-end: -4px; | |
482 | } | |
483 | ||
7600e0b1 RK |
484 | /* SideMenuWidget misc */ |
485 | ||
28e80a05 RK |
486 | .theme-dark .side-menu-widget-container, |
487 | .theme-dark .side-menu-widget-empty-text { | |
488 | background-color: var(--theme-toolbar-background); | |
489 | } | |
490 | ||
45dc7657 | 491 | .side-menu-widget-empty-text { |
cc7e70eb | 492 | padding: 12px; |
cc7e70eb RK |
493 | } |
494 | ||
495 | /* VariablesView */ | |
496 | ||
dfa34f73 RK |
497 | .variables-view-container:not([empty]) { |
498 | /* Hack: force hardware acceleration */ | |
499 | transform: translateZ(1px); | |
500 | } | |
501 | ||
cc7e70eb | 502 | .variables-view-empty-notice { |
28e80a05 | 503 | color: var(--theme-body-color-alt); |
cc7e70eb RK |
504 | padding: 2px; |
505 | } | |
506 | ||
c1d2ce3e RK |
507 | .variables-view-scope:focus > .title, |
508 | .theme-dark .variable-or-property:focus > .title { | |
28e80a05 RK |
509 | background-color: var(--theme-selection-background); |
510 | color: var(--theme-selection-color); | |
c1d2ce3e RK |
511 | } |
512 | ||
cc7e70eb RK |
513 | .variables-view-scope > .title { |
514 | background-color: #A09090; | |
515 | color: #000000; | |
516 | } | |
517 | ||
dfa34f73 | 518 | /* Generic variables traits */ |
cc7e70eb | 519 | |
dfa34f73 RK |
520 | .variables-view-variable:not(:last-child) { |
521 | border-bottom: 1px solid #A09090; | |
522 | } | |
cc7e70eb | 523 | |
dfa34f73 RK |
524 | .variables-view-variable > .title > .name { |
525 | font-weight: 600; | |
cc7e70eb RK |
526 | } |
527 | ||
dfa34f73 RK |
528 | /* Generic variables *and* properties traits */ |
529 | ||
530 | .variable-or-property:focus > .title > label { | |
531 | color: inherit !important; | |
cc7e70eb RK |
532 | } |
533 | ||
2b5a5147 RK |
534 | .variables-view-container .theme-twisty { |
535 | margin: 2px; | |
536 | } | |
537 | ||
538 | .variable-or-property > .title > .theme-twisty { | |
539 | -moz-margin-start: 5px; | |
cc7e70eb RK |
540 | } |
541 | ||
2a8b2b48 | 542 | .variable-or-property:not([untitled]) > .variables-view-element-details { |
dfa34f73 | 543 | -moz-margin-start: 7px; |
cc7e70eb RK |
544 | } |
545 | ||
dfa34f73 | 546 | /* Traits applied when variables or properties are changed or overridden */ |
cc7e70eb | 547 | |
dfa34f73 RK |
548 | .variable-or-property:not([overridden]) { |
549 | transition: background 1s ease-in-out, color 1s ease-in-out; | |
d2ce251d RK |
550 | } |
551 | ||
dfa34f73 RK |
552 | .variable-or-property:not([overridden])[changed] { |
553 | color: #000000; | |
554 | transition-duration: .4s; | |
cc7e70eb RK |
555 | } |
556 | ||
dfa34f73 | 557 | .variable-or-property[overridden] { |
f36031bd | 558 | background: rgba(160,144,144,0.5); |
cc7e70eb RK |
559 | } |
560 | ||
dfa34f73 RK |
561 | .variable-or-property[overridden] .title > label { |
562 | /* Cross out the title for this variable and all child properties. */ | |
563 | font-style: italic; | |
564 | text-decoration: line-through; | |
565 | border-bottom: none !important; | |
566 | color: #A09090; | |
567 | opacity: 0.7; | |
cc7e70eb RK |
568 | } |
569 | ||
dfa34f73 RK |
570 | /* Traits applied when variables or properties are editable */ |
571 | ||
572 | .variable-or-property[editable] > .title > .value { | |
573 | cursor: text; | |
574 | } | |
575 | ||
576 | .variable-or-property[overridden] .title > .value { | |
577 | /* Disallow editing this variable and all child properties. */ | |
578 | pointer-events: none; | |
579 | } | |
cc7e70eb | 580 | |
e2734cc7 RK |
581 | /* Custom configurable/enumerable/writable or frozen/sealed/extensible |
582 | * variables and properties */ | |
cc7e70eb | 583 | |
dfa34f73 | 584 | .variable-or-property[non-enumerable]:not([self]):not([pseudo-item]) > .title > .name { |
de57e474 | 585 | opacity: 0.6; |
cc7e70eb RK |
586 | } |
587 | ||
e2734cc7 | 588 | .variable-or-property-non-writable-icon { |
dc9d5d64 | 589 | background: url("chrome://devtools/skin/images/vview-lock.png") no-repeat; |
dccbbf95 | 590 | background-size: cover; |
cc7e70eb RK |
591 | width: 16px; |
592 | height: 16px; | |
593 | opacity: 0.5; | |
594 | } | |
595 | ||
024a65e9 | 596 | @media (min-resolution: 1.1dppx) { |
e2734cc7 | 597 | .variable-or-property-non-writable-icon > .title:after { |
dc9d5d64 | 598 | background-image: url("chrome://devtools/skin/images/vview-lock@2x.png"); |
cc7e70eb RK |
599 | } |
600 | } | |
601 | ||
e2734cc7 RK |
602 | .variable-or-property-frozen-label, |
603 | .variable-or-property-sealed-label, | |
604 | .variable-or-property-non-extensible-label { | |
dccbbf95 | 605 | height: 16px; |
e2734cc7 | 606 | -moz-padding-end: 4px; |
b27cc46e RK |
607 | } |
608 | ||
609 | .variable-or-property:not(:focus) > .title > .variable-or-property-frozen-label, | |
610 | .variable-or-property:not(:focus) > .title > .variable-or-property-sealed-label, | |
611 | .variable-or-property:not(:focus) > .title > .variable-or-property-non-extensible-label { | |
e2734cc7 RK |
612 | color: #A09090; |
613 | } | |
614 | ||
7600e0b1 RK |
615 | /* Aligned values */ |
616 | ||
617 | .variables-view-container[aligned-values] .title > .separator { | |
618 | -moz-box-flex: 1; | |
619 | } | |
620 | ||
621 | .variables-view-container[aligned-values] .title > .value { | |
d2ce251d | 622 | -moz-box-flex: 0; |
7600e0b1 RK |
623 | width: 70vw; |
624 | } | |
625 | ||
626 | .variables-view-container[aligned-values] .title > .element-value-input { | |
627 | width: calc(70vw - 10px); | |
628 | } | |
629 | ||
630 | /* Actions first */ | |
631 | ||
dccbbf95 RK |
632 | .variables-view-open-inspector { |
633 | -moz-box-ordinal-group: 1; | |
634 | } | |
635 | ||
636 | .variables-view-edit, | |
637 | .variables-view-add-property { | |
638 | -moz-box-ordinal-group: 2; | |
639 | } | |
640 | ||
641 | .variable-or-property-frozen-label, | |
642 | .variable-or-property-sealed-label, | |
643 | .variable-or-property-non-extensible-label, | |
644 | .variable-or-property-non-writable-icon { | |
645 | -moz-box-ordinal-group: 3; | |
646 | } | |
647 | ||
648 | .variables-view-delete { | |
649 | -moz-box-ordinal-group: 4; | |
650 | } | |
651 | ||
d2ce251d | 652 | .variables-view-container[actions-first] .variables-view-delete, |
dccbbf95 RK |
653 | .variables-view-container[actions-first] .variables-view-add-property, |
654 | .variables-view-container[actions-first] .variables-view-open-inspector { | |
7600e0b1 RK |
655 | -moz-box-ordinal-group: 0; |
656 | } | |
657 | ||
d2ce251d RK |
658 | .variables-view-container[actions-first] [invisible] { |
659 | visibility: hidden; | |
660 | } | |
661 | ||
cc7e70eb RK |
662 | /* Variables and properties tooltips */ |
663 | ||
664 | .variable-or-property > tooltip > label { | |
665 | margin: 0 2px 0 2px; | |
666 | } | |
667 | ||
dfa34f73 RK |
668 | .variable-or-property[non-enumerable] > tooltip > label.enumerable, |
669 | .variable-or-property[non-configurable] > tooltip > label.configurable, | |
670 | .variable-or-property[non-writable] > tooltip > label.writable | |
671 | .variable-or-property[non-extensible] > tooltip > label.extensible { | |
e2734cc7 | 672 | color: #A09090; |
cc7e70eb RK |
673 | text-decoration: line-through; |
674 | } | |
675 | ||
dfa34f73 RK |
676 | .variable-or-property[overridden] > tooltip > label.overridden { |
677 | -moz-padding-start: 4px; | |
678 | -moz-border-start: 1px dotted #9C9CFF; | |
679 | } | |
680 | ||
681 | .variable-or-property[safe-getter] > tooltip > label.WebIDL { | |
e2734cc7 RK |
682 | -moz-padding-start: 4px; |
683 | -moz-border-start: 1px dotted #9C9CFF; | |
684 | color: #008484; | |
c4460289 RK |
685 | } |
686 | ||
cc7e70eb RK |
687 | /* Variables and properties editing */ |
688 | ||
689 | .variables-view-delete { | |
dc9d5d64 | 690 | background: url("chrome://devtools/skin/images/vview-delete.png"); |
dccbbf95 RK |
691 | background-size: cover; |
692 | width: 16px; | |
693 | height: 16px; | |
694 | } | |
695 | ||
024a65e9 | 696 | @media (min-resolution: 1.1dppx) { |
dccbbf95 | 697 | .variables-view-delete { |
dc9d5d64 | 698 | background-image: url("chrome://devtools/skin/images/vview-delete@2x.png"); |
dccbbf95 | 699 | } |
cc7e70eb RK |
700 | } |
701 | ||
702 | .variables-view-delete:hover { | |
dccbbf95 | 703 | background-position: 32px; |
cc7e70eb RK |
704 | } |
705 | ||
b27cc46e | 706 | .variables-view-delete:active { |
dccbbf95 | 707 | background-position: 16px; |
46e71434 RK |
708 | } |
709 | ||
dccbbf95 RK |
710 | .variable-or-property:focus > .title > .variables-view-delete { |
711 | /* background-position: 0px; */ | |
b27cc46e RK |
712 | } |
713 | ||
cc7e70eb | 714 | .variables-view-edit { |
dc9d5d64 | 715 | background: url("chrome://devtools/skin/images/vview-edit.png"); |
dccbbf95 RK |
716 | background-size: cover; |
717 | width: 16px; | |
718 | height: 16px; | |
46e71434 | 719 | cursor: pointer; |
dccbbf95 RK |
720 | } |
721 | ||
024a65e9 | 722 | @media (min-resolution: 1.1dppx) { |
dccbbf95 | 723 | .variables-view-edit { |
dc9d5d64 | 724 | background-image: url("chrome://devtools/skin/images/vview-edit@2x.png"); |
dccbbf95 | 725 | } |
46e71434 RK |
726 | } |
727 | ||
728 | .variables-view-edit:hover { | |
dccbbf95 | 729 | background-position: 32px; |
46e71434 RK |
730 | } |
731 | ||
732 | .variables-view-edit:active { | |
dccbbf95 | 733 | background-position: 16px; |
46e71434 RK |
734 | } |
735 | ||
dccbbf95 RK |
736 | .variable-or-property:focus > .title > .variables-view-edit { |
737 | /* background-position: 0px; */ | |
46e71434 RK |
738 | } |
739 | ||
740 | .variables-view-open-inspector { | |
dc9d5d64 | 741 | background: url("chrome://devtools/skin/images/vview-open-inspector.png"); |
dccbbf95 RK |
742 | background-size: cover; |
743 | width: 16px; | |
744 | height: 16px; | |
cc7e70eb RK |
745 | cursor: pointer; |
746 | } | |
747 | ||
46e71434 | 748 | .variables-view-open-inspector:hover { |
dccbbf95 | 749 | background-position: 32px; |
46e71434 RK |
750 | } |
751 | ||
752 | .variables-view-open-inspector:active { | |
dccbbf95 | 753 | background-position: 16px; |
46e71434 RK |
754 | } |
755 | ||
dccbbf95 RK |
756 | .variable-or-property:focus > .title > .variables-view-open-inspector { |
757 | /* background-position: 0px; */ | |
46e71434 RK |
758 | } |
759 | ||
dccbbf95 | 760 | /* Variables and properties input boxes */ |
cc7e70eb | 761 | |
dccbbf95 | 762 | .variable-or-property > .title > .separator + .element-value-input { |
dfa34f73 | 763 | -moz-margin-start: -2px !important; |
cc7e70eb | 764 | -moz-margin-end: 2px !important; |
dccbbf95 RK |
765 | } |
766 | ||
767 | .variable-or-property > .title > .separator[hidden=true] + .element-value-input { | |
768 | -moz-margin-start: 4px !important; | |
769 | -moz-margin-end: 2px !important; | |
cc7e70eb RK |
770 | } |
771 | ||
772 | .element-name-input { | |
773 | -moz-margin-start: -2px !important; | |
774 | -moz-margin-end: 2px !important; | |
cc7e70eb RK |
775 | font-weight: 600; |
776 | } | |
777 | ||
778 | .element-value-input, | |
779 | .element-name-input { | |
780 | border: 1px solid #008484 !important; | |
de57e474 | 781 | color: inherit; |
cc7e70eb RK |
782 | } |
783 | ||
784 | /* Variables and properties searching */ | |
785 | ||
2a8b2b48 | 786 | .variable-or-property[unmatched] { |
cc7e70eb RK |
787 | border: none; |
788 | margin: 0; | |
789 | } | |
790 | ||
2b5a5147 | 791 | /* Canvas graphs */ |
cc7e70eb | 792 | |
2b5a5147 RK |
793 | .graph-widget-container { |
794 | position: relative; | |
cc7e70eb | 795 | } |
7600e0b1 | 796 | |
3d64e0ce RK |
797 | .graph-widget-canvas { |
798 | width: 100%; | |
799 | height: 100%; | |
800 | } | |
801 | ||
802 | .graph-widget-canvas[input=hovering-background] { | |
803 | cursor: text; | |
804 | } | |
805 | ||
806 | .graph-widget-canvas[input=hovering-region] { | |
807 | cursor: pointer; | |
808 | } | |
809 | ||
810 | .graph-widget-canvas[input=hovering-selection-start-boundary], | |
811 | .graph-widget-canvas[input=hovering-selection-end-boundary], | |
812 | .graph-widget-canvas[input=adjusting-selection-boundary] { | |
813 | cursor: col-resize; | |
814 | } | |
815 | ||
ae90b726 RK |
816 | .graph-widget-canvas[input=adjusting-view-area] { |
817 | cursor: grabbing; | |
818 | } | |
819 | ||
3d64e0ce RK |
820 | .graph-widget-canvas[input=hovering-selection-contents] { |
821 | cursor: grab; | |
822 | } | |
823 | ||
824 | .graph-widget-canvas[input=dragging-selection-contents] { | |
825 | cursor: grabbing; | |
826 | } | |
827 | ||
3d64e0ce RK |
828 | /* Line graph widget */ |
829 | ||
3d64e0ce RK |
830 | .line-graph-widget-gutter { |
831 | position: absolute; | |
3d64e0ce RK |
832 | width: 10px; |
833 | height: 100%; | |
834 | top: 0; | |
835 | left: 0; | |
9168a62c | 836 | pointer-events: none; |
d74db938 RK |
837 | |
838 | background: #000000; | |
839 | -moz-border-end: 1px solid #9C9CFF; | |
3d64e0ce RK |
840 | } |
841 | ||
842 | .line-graph-widget-gutter-line { | |
843 | position: absolute; | |
844 | width: 100%; | |
845 | border-top: 1px solid; | |
3d64e0ce RK |
846 | } |
847 | ||
848 | .line-graph-widget-gutter-line[type=maximum] { | |
849 | border-color: #008484; | |
850 | } | |
851 | ||
852 | .line-graph-widget-gutter-line[type=minimum] { | |
853 | border-color: #FF0000; | |
854 | } | |
855 | ||
856 | .line-graph-widget-gutter-line[type=average] { | |
857 | border-color: #FF9F00; | |
858 | } | |
859 | ||
860 | .line-graph-widget-tooltip { | |
861 | position: absolute; | |
3d64e0ce RK |
862 | border-radius: 2px; |
863 | line-height: 15px; | |
864 | -moz-padding-start: 6px; | |
865 | -moz-padding-end: 6px; | |
866 | transform: translateY(-50%); | |
936e60fe | 867 | font-size: 0.8rem !important; |
3d64e0ce | 868 | z-index: 1; |
9168a62c | 869 | pointer-events: none; |
d74db938 RK |
870 | |
871 | background: #404000; | |
3d64e0ce RK |
872 | } |
873 | ||
de5e780d | 874 | .line-graph-widget-tooltip[with-arrows=true]::before { |
3d64e0ce RK |
875 | content: ""; |
876 | position: absolute; | |
877 | border-top: 3px solid transparent; | |
878 | border-bottom: 3px solid transparent; | |
879 | top: calc(50% - 3px); | |
880 | } | |
881 | ||
de5e780d | 882 | .line-graph-widget-tooltip[arrow=start][with-arrows=true]::before { |
3d64e0ce RK |
883 | -moz-border-end: 3px solid #9C9CFF; |
884 | left: -3px; | |
885 | } | |
886 | ||
de5e780d | 887 | .line-graph-widget-tooltip[arrow=end][with-arrows=true]::before { |
3d64e0ce RK |
888 | -moz-border-start: 3px solid #9C9CFF; |
889 | right: -3px; | |
890 | } | |
891 | ||
892 | .line-graph-widget-tooltip[type=maximum] { | |
de5e780d RK |
893 | left: 14px; |
894 | } | |
895 | ||
20752032 | 896 | .line-graph-widget-tooltip[type=minimum] { |
de5e780d RK |
897 | left: 14px; |
898 | } | |
899 | ||
20752032 | 900 | .line-graph-widget-tooltip[type=average] { |
de5e780d | 901 | right: 4px; |
3d64e0ce RK |
902 | } |
903 | ||
904 | .line-graph-widget-tooltip > [text=info] { | |
d74db938 | 905 | color: var(--theme-content-color2); |
3d64e0ce RK |
906 | } |
907 | ||
908 | .line-graph-widget-tooltip > [text=value] { | |
909 | -moz-margin-start: 3px; | |
910 | } | |
911 | ||
912 | .line-graph-widget-tooltip > [text=metric] { | |
913 | -moz-margin-start: 1px; | |
d74db938 | 914 | color: var(--theme-content-color4); |
3d64e0ce RK |
915 | } |
916 | ||
917 | .line-graph-widget-tooltip > [text=value], | |
918 | .line-graph-widget-tooltip > [text=metric] { | |
919 | /* text-shadow: 1px 0px rgba(255,255,255,0.6), | |
920 | -1px 0px rgba(255,255,255,0.6), | |
921 | 0px -1px rgba(255,255,255,0.6), | |
922 | 0px 1px rgba(255,255,255,0.6);*/ | |
923 | } | |
924 | ||
925 | .line-graph-widget-tooltip[type=maximum] > [text=value] { | |
d74db938 | 926 | color: var(--theme-highlight-green); |
3d64e0ce RK |
927 | } |
928 | ||
929 | .line-graph-widget-tooltip[type=minimum] > [text=value] { | |
d74db938 | 930 | color: var(--theme-highlight-red); |
3d64e0ce RK |
931 | } |
932 | ||
933 | .line-graph-widget-tooltip[type=average] > [text=value] { | |
d74db938 | 934 | color: var(--theme-highlight-orange); |
3d64e0ce RK |
935 | } |
936 | ||
2b5a5147 RK |
937 | /* Bar graph widget */ |
938 | ||
2b5a5147 RK |
939 | .bar-graph-widget-legend { |
940 | position: absolute; | |
941 | top: 4px; | |
942 | left: 8px; | |
943 | color: #A09090; | |
d74db938 | 944 | font-size: 0.8rem !important; |
9168a62c | 945 | pointer-events: none; |
2b5a5147 RK |
946 | } |
947 | ||
948 | .bar-graph-widget-legend-item { | |
949 | float: left; | |
950 | -moz-margin-end: 8px; | |
951 | } | |
952 | ||
953 | .bar-graph-widget-legend-item > [view="color"], | |
954 | .bar-graph-widget-legend-item > [view="label"] { | |
955 | vertical-align: middle; | |
956 | } | |
957 | ||
958 | .bar-graph-widget-legend-item > [view="color"] { | |
959 | display: inline-block; | |
960 | width: 8px; | |
961 | height: 8px; | |
962 | border: 1px solid #9C9CFF; | |
963 | border-radius: 1px; | |
964 | -moz-margin-end: 4px; | |
9168a62c | 965 | pointer-events: none; |
2b5a5147 RK |
966 | } |
967 | ||
968 | .bar-graph-widget-legend-item > [view="label"] { | |
969 | /* text-shadow: 1px 0px rgba(255,255,255,0.8), | |
970 | -1px 0px rgba(255,255,255,0.8), | |
971 | 0px -1px rgba(255,255,255,0.8), | |
972 | 0px 1px rgba(255,255,255,0.8);*/ | |
973 | } | |
974 | ||
46e71434 RK |
975 | /* Charts */ |
976 | ||
977 | .generic-chart-container { | |
978 | /* Hack: force hardware acceleration */ | |
979 | transform: translateZ(1px); | |
980 | } | |
981 | ||
5401f433 | 982 | .generic-chart-container { |
28e80a05 | 983 | color: var(--theme-body-color-alt); |
46e71434 RK |
984 | } |
985 | ||
5401f433 | 986 | .chart-colored-blob { |
28e80a05 RK |
987 | fill: var(--theme-highlight-blue); |
988 | background: var(--theme-highlight-blue); | |
46e71434 RK |
989 | } |
990 | ||
991 | /* Charts: Pie */ | |
992 | ||
993 | .pie-chart-slice { | |
994 | stroke-width: 1px; | |
995 | cursor: pointer; | |
996 | } | |
997 | ||
5401f433 | 998 | .pie-chart-slice { |
46e71434 RK |
999 | stroke: #A09090; |
1000 | } | |
1001 | ||
5401f433 | 1002 | .pie-chart-slice[largest] { |
46e71434 RK |
1003 | stroke-width: 2px; |
1004 | stroke: #9C9CFF; | |
1005 | } | |
1006 | ||
1007 | .pie-chart-label { | |
1008 | text-anchor: middle; | |
1009 | dominant-baseline: middle; | |
1010 | pointer-events: none; | |
1011 | } | |
1012 | ||
5401f433 | 1013 | .pie-chart-label { |
46e71434 RK |
1014 | fill: #000; |
1015 | } | |
1016 | ||
1017 | .pie-chart-container[slices="1"] > .pie-chart-slice { | |
1018 | stroke-width: 0px; | |
1019 | } | |
1020 | ||
1021 | .pie-chart-slice, | |
1022 | .pie-chart-label { | |
1023 | transition: all 0.1s ease-out; | |
1024 | } | |
1025 | ||
1026 | .pie-chart-slice:not(:hover):not([focused]), | |
1027 | .pie-chart-slice:not(:hover):not([focused]) + .pie-chart-label { | |
1028 | transform: none !important; | |
1029 | } | |
1030 | ||
1031 | /* Charts: Table */ | |
1032 | ||
1033 | .table-chart-title { | |
1034 | padding-bottom: 10px; | |
1035 | font-size: 120%; | |
1036 | font-weight: 600; | |
1037 | } | |
1038 | ||
1039 | .table-chart-row { | |
1040 | margin-top: 1px; | |
1041 | cursor: pointer; | |
1042 | } | |
1043 | ||
1044 | .table-chart-grid:hover > .table-chart-row { | |
1045 | transition: opacity 0.1s ease-in-out; | |
1046 | } | |
1047 | ||
1048 | .table-chart-grid:not(:hover) > .table-chart-row { | |
1049 | transition: opacity 0.2s ease-in-out; | |
1050 | } | |
1051 | ||
1052 | .generic-chart-container:hover > .table-chart-grid:hover > .table-chart-row:not(:hover), | |
1053 | .generic-chart-container:hover ~ .table-chart-container > .table-chart-grid > .table-chart-row:not([focused]) { | |
1054 | opacity: 0.4; | |
1055 | } | |
1056 | ||
1057 | .table-chart-row-box { | |
1058 | width: 8px; | |
1059 | height: 1.5em; | |
1060 | -moz-margin-end: 10px; | |
1061 | } | |
1062 | ||
1063 | .table-chart-row-label { | |
1064 | width: 8em; | |
1065 | -moz-padding-end: 6px; | |
1066 | cursor: inherit; | |
1067 | } | |
1068 | ||
1069 | .table-chart-totals { | |
1070 | margin-top: 8px; | |
1071 | padding-top: 6px; | |
1072 | } | |
1073 | ||
1074 | .table-chart-totals { | |
6f5a7408 | 1075 | border-top: 1px solid var(--theme-body-color-alt); /* Grey foreground text */ |
46e71434 RK |
1076 | } |
1077 | ||
1078 | .table-chart-summary-label { | |
1079 | font-weight: 600; | |
1080 | padding: 1px 0px; | |
1081 | } | |
1082 | ||
1083 | .table-chart-summary-label { | |
6f5a7408 | 1084 | color: var(--theme-content-color2); |
46e71434 RK |
1085 | } |
1086 | ||
3d64e0ce RK |
1087 | /* Table Widget */ |
1088 | ||
1089 | /* Table body */ | |
1090 | ||
1091 | .table-widget-body > .devtools-side-splitter { | |
1092 | border: none; | |
1093 | } | |
1094 | ||
1095 | .table-widget-body { | |
1096 | overflow: auto; | |
3d64e0ce RK |
1097 | } |
1098 | ||
19988d2d RK |
1099 | table-widget-body, |
1100 | .table-widget-empty-text { | |
1101 | background-color: var(--theme-body-background); | |
3d64e0ce RK |
1102 | } |
1103 | ||
1104 | /* Column Headers */ | |
1105 | ||
1106 | .table-widget-column-header, | |
1107 | .table-widget-cell { | |
19988d2d | 1108 | -moz-border-end: 1px solid var(--table-splitter-color) !important; |
3d64e0ce RK |
1109 | } |
1110 | ||
1111 | /* Table widget column header colors are taken from netmonitor.inc.css to match | |
1112 | the look of both the tables. This needs to be updated along with netmonitor | |
1113 | header colors in bug 951714 */ | |
1114 | ||
1115 | .table-widget-column-header { | |
1116 | background: rgba(0,0,0,0); | |
1117 | position: sticky; | |
1118 | top: 0; | |
3d64e0ce | 1119 | width: 100%; |
19988d2d | 1120 | padding: 5px 0 0 !important; |
3d64e0ce RK |
1121 | color: inherit; |
1122 | text-align: center; | |
1123 | font-weight: inherit !important; | |
1124 | transition: background-color 0.1s ease-in-out; | |
1125 | } | |
1126 | ||
1127 | .table-widget-column-header:hover { | |
19988d2d | 1128 | background: var(--theme-hover-background); |
3d64e0ce RK |
1129 | } |
1130 | ||
1131 | .table-widget-column-header:hover:active { | |
19988d2d | 1132 | background: var(--theme-active-background); |
3d64e0ce RK |
1133 | } |
1134 | ||
1135 | .table-widget-column-header:not(:active)[sorted] { | |
19988d2d | 1136 | background: var(--theme-selection-background); |
3d64e0ce RK |
1137 | } |
1138 | ||
1139 | .table-widget-column-header:not(:active)[sorted=ascending] { | |
1140 | background-image: radial-gradient(farthest-side at center top, hsla(0,0%,0%,.7), hsla(0,0%,0%,0.3)); | |
1141 | background-size: 100% 1px; | |
1142 | background-repeat: no-repeat; | |
1143 | } | |
1144 | ||
1145 | .table-widget-column-header:not(:active)[sorted=descending] { | |
1146 | background-image: radial-gradient(farthest-side at center bottom, hsla(0,0%,0%,.7), hsla(0,0%,0%,0.3)); | |
1147 | background-size: 100% 1px; | |
1148 | background-repeat: no-repeat; | |
1149 | background-position: bottom; | |
1150 | } | |
1151 | ||
1152 | /* Cells */ | |
1153 | ||
1154 | .table-widget-cell { | |
1155 | width: 100%; | |
3d64e0ce RK |
1156 | padding: 3px 4px; |
1157 | background-clip: padding-box; | |
1158 | min-width: 100px; | |
1159 | -moz-user-focus: normal; | |
3d64e0ce | 1160 | |
19988d2d RK |
1161 | margin-bottom: -1px !important; |
1162 | border-bottom: 1px solid transparent; | |
1163 | color: var(--theme-body-color); | |
3d64e0ce RK |
1164 | } |
1165 | ||
19988d2d RK |
1166 | .table-widget-cell:last-child { |
1167 | border-bottom: 1px solid var(--table-splitter-color); | |
3d64e0ce RK |
1168 | } |
1169 | ||
19988d2d RK |
1170 | :root:not(.filtering) .table-widget-cell:nth-child(odd):not(.theme-selected), |
1171 | .table-widget-cell:not(.theme-selected)[odd] { | |
1172 | background: var(--table-zebra-background); | |
3d64e0ce RK |
1173 | } |
1174 | ||
1175 | .table-widget-cell.flash-out { | |
1176 | animation: flash-out 0.5s ease-in; | |
1177 | } | |
1178 | ||
1179 | @keyframes flash-out { | |
1180 | to { | |
6f5a7408 | 1181 | background: var(--theme-contrast-background2); |
3d64e0ce RK |
1182 | } |
1183 | } | |
1184 | ||
1185 | /* Empty text and initial text */ | |
1186 | ||
1187 | .table-widget-empty-text { | |
1188 | display: none; | |
1189 | text-align: center; | |
1190 | font-size: large; | |
1191 | margin-top: -20px !important; | |
1192 | } | |
1193 | ||
1194 | .table-widget-body:empty + .table-widget-empty-text:not([value=""]), | |
1195 | .table-widget-body[empty] + .table-widget-empty-text:not([value=""]) { | |
1196 | display: block; | |
1197 | } | |
1198 | ||
1199 | /* Tree Widget */ | |
1200 | ||
1201 | .tree-widget-container { | |
1202 | padding: 0; | |
1203 | margin: 0; | |
1204 | width: 100%; | |
1205 | height: 100%; | |
1206 | list-style: none; | |
1207 | overflow: hidden; | |
1208 | -moz-margin-end: 40px; | |
1209 | } | |
1210 | ||
1211 | .tree-widget-container:-moz-focusring, | |
1212 | .tree-widget-container *:-moz-focusring { | |
1213 | outline-style: none; | |
1214 | } | |
1215 | ||
1216 | .tree-widget-empty-text { | |
1217 | padding: 10px 20px; | |
1218 | font-size: medium; | |
1219 | background: transparent; | |
cac2a998 | 1220 | pointer-events: none; |
3d64e0ce RK |
1221 | } |
1222 | ||
1223 | /* Tree Item */ | |
1224 | ||
1225 | .tree-widget-container .tree-widget-item { | |
1226 | padding: 2px 0px 4px; | |
1227 | /* OSX has line-height 14px by default, which causes weird alignment issues | |
1228 | * because of 20px high icons. thus making line-height consistent with that of | |
1229 | * windows. | |
1230 | */ | |
1231 | line-height: 17px !important; | |
1232 | display: inline-block; | |
1233 | width: 100%; | |
1234 | word-break: keep-all; /* To prevent long urls like http://foo.com/bar from | |
1235 | breaking in multiple lines */ | |
1236 | } | |
1237 | ||
1238 | .tree-widget-container .tree-widget-children { | |
1239 | margin: 0; | |
1240 | padding: 0; | |
1241 | list-style: none; | |
1242 | } | |
1243 | ||
1244 | .tree-widget-item[level="1"] { | |
19988d2d | 1245 | font-weight: 700; |
3d64e0ce RK |
1246 | } |
1247 | ||
1248 | /* Twisties */ | |
19988d2d | 1249 | .tree-widget-item::before { |
3d64e0ce RK |
1250 | content: ""; |
1251 | width: 14px; | |
1252 | height: 14px; | |
1253 | float: left; | |
1254 | margin: 3px 2px -3px; | |
1255 | background-repeat: no-repeat; | |
dc9d5d64 | 1256 | background-image: url("chrome://devtools/skin/controls.png"); |
3d64e0ce RK |
1257 | background-size: 56px 28px; |
1258 | cursor: pointer; | |
1259 | background-position: -28px -14px; | |
1260 | } | |
1261 | ||
19988d2d | 1262 | .tree-widget-item:-moz-locale-dir(rtl)::before { |
3d64e0ce RK |
1263 | float: right; |
1264 | transform: scaleX(-1); | |
1265 | } | |
1266 | ||
19988d2d | 1267 | .tree-widget-item[empty]::before { |
3d64e0ce RK |
1268 | background: transparent; |
1269 | } | |
1270 | ||
19988d2d | 1271 | .tree-widget-item[expanded]::before { |
3d64e0ce RK |
1272 | background-position: -42px -14px; |
1273 | } | |
1274 | ||
3d64e0ce RK |
1275 | .tree-widget-item + ul { |
1276 | overflow: hidden; | |
1277 | animation: collapse-tree-item 0.2s; | |
1278 | max-height: 0; | |
1279 | } | |
1280 | ||
1281 | .tree-widget-item[expanded] + ul { | |
1282 | animation: expand-tree-item 0.3s; | |
1283 | max-height: unset; | |
1284 | } | |
1285 | ||
1286 | @keyframes collapse-tree-item { | |
1287 | from { | |
1288 | max-height: 300px; | |
1289 | } | |
1290 | to { | |
1291 | max-height: 0; | |
1292 | } | |
1293 | } | |
1294 | ||
1295 | @keyframes expand-tree-item { | |
1296 | from { | |
1297 | max-height: 0; | |
1298 | } | |
1299 | to { | |
1300 | max-height: 500px; | |
1301 | } | |
1302 | } | |
1303 | ||
024a65e9 | 1304 | @media (min-resolution: 1.1dppx) { |
3d64e0ce | 1305 | .tree-widget-item:before { |
dc9d5d64 | 1306 | background-image: url("chrome://devtools/skin/controls@2x.png"); |
3d64e0ce RK |
1307 | } |
1308 | } | |
1309 | ||
1310 | /* Indentation of child items in the tree */ | |
1311 | ||
1312 | /* For level > 6 */ | |
1313 | .tree-widget-item[level] + ul > li > .tree-widget-item { | |
1314 | -moz-padding-start: 98px; | |
1315 | } | |
1316 | ||
1317 | /* First level */ | |
1318 | .tree-widget-item[level="1"] + ul > li > .tree-widget-item { | |
1319 | -moz-padding-start: 14px; | |
1320 | } | |
1321 | ||
1322 | /* Second level */ | |
1323 | .tree-widget-item[level="2"] + ul > li > .tree-widget-item { | |
1324 | -moz-padding-start: 28px; | |
1325 | } | |
1326 | ||
1327 | /* Third level */ | |
1328 | .tree-widget-item[level="3"] + ul > li > .tree-widget-item { | |
1329 | -moz-padding-start: 42px; | |
1330 | } | |
1331 | ||
1332 | /* Fourth level */ | |
1333 | .tree-widget-item[level="4"] + ul > li > .tree-widget-item { | |
1334 | -moz-padding-start: 56px; | |
1335 | } | |
1336 | ||
1337 | /* Fifth level */ | |
1338 | .tree-widget-item[level="5"] + ul > li > .tree-widget-item { | |
1339 | -moz-padding-start: 70px; | |
1340 | } | |
1341 | ||
1342 | /* Sixth level */ | |
1343 | .tree-widget-item[level="6"] + ul > li > .tree-widget-item { | |
1344 | -moz-padding-start: 84px; | |
1345 | } | |
1346 | ||
1347 | /* Custom icons for certain tree items indicating the type of the item */ | |
1348 | ||
19988d2d | 1349 | .tree-widget-item[type]::after { |
3d64e0ce RK |
1350 | content: ""; |
1351 | float: left; | |
1352 | width: 16px; | |
1353 | height: 17px; | |
1354 | -moz-margin-end: 4px; | |
1355 | background-repeat: no-repeat; | |
1356 | background-size: 20px auto; | |
3d64e0ce RK |
1357 | background-position: 0 0; |
1358 | background-size: auto 20px; | |
19988d2d RK |
1359 | opacity: 0.75; |
1360 | } | |
1361 | ||
1362 | .tree-widget-item.theme-selected[type]::after { | |
1363 | opacity: 1; | |
3d64e0ce RK |
1364 | } |
1365 | ||
19988d2d | 1366 | .tree-widget-item:-moz-locale-dir(rtl)::after { |
3d64e0ce RK |
1367 | float: right; |
1368 | } | |
1369 | ||
19988d2d RK |
1370 | /*.theme-light .tree-widget-item.theme-selected[type]::after,*/ |
1371 | .tree-widget-item[type]::after { | |
1372 | filter: invert(1); | |
3d64e0ce RK |
1373 | } |
1374 | ||
19988d2d | 1375 | .tree-widget-item[type="dir"]::after { |
dc9d5d64 | 1376 | background-image: url("chrome://devtools/skin/filetype-dir-close.svg"); |
3d64e0ce RK |
1377 | background-position: 2px 0; |
1378 | background-size: auto 16px; | |
1379 | width: 20px; | |
1380 | } | |
1381 | ||
19988d2d | 1382 | .tree-widget-item[type="dir"][expanded]:not([empty])::after { |
dc9d5d64 | 1383 | background-image: url("chrome://devtools/skin/filetype-dir-open.svg"); |
3d64e0ce RK |
1384 | } |
1385 | ||
19988d2d | 1386 | .tree-widget-item[type="url"]::after { |
dc9d5d64 | 1387 | background-image: url("chrome://devtools/skin/filetype-globe.svg"); |
3d64e0ce RK |
1388 | background-size: auto 18px; |
1389 | width: 18px; | |
1390 | } | |
1391 | ||
7600e0b1 RK |
1392 | /* === BEGIN manifest-editor.inc.css === */ |
1393 | ||
1394 | /* Manifest Editor overrides */ | |
1395 | ||
1396 | .variables-view-container.manifest-editor { | |
1397 | background-color: #000000; | |
d2ce251d | 1398 | padding: 20px 2px; |
7600e0b1 RK |
1399 | } |
1400 | ||
1401 | .manifest-editor .variable-or-property:focus > .title { | |
1402 | /* background-color: #EDEDED; | |
1403 | color: #000; */ | |
1404 | border-radius: 4px; | |
1405 | } | |
1406 | ||
1407 | .manifest-editor .variables-view-property > .title > .name { | |
1408 | /* color: #27406A; */ | |
1409 | } | |
1410 | ||
d2ce251d RK |
1411 | .manifest-editor .variable-or-property > .title > label, |
1412 | .manifest-editor textbox { | |
7600e0b1 RK |
1413 | font-family: monospace; |
1414 | } | |
1415 | ||
1416 | .manifest-editor .variable-or-property > .title > .token-string { | |
1417 | /* color: #54BC6A; */ | |
1418 | font-weight: bold; | |
1419 | } | |
1420 | ||
1421 | .manifest-editor .variable-or-property > .title > .token-boolean, | |
1422 | .manifest-editor .variable-or-property > .title > .token-number { | |
1423 | /* color: #009BD4; */ | |
1424 | font-weight: bold; | |
1425 | } | |
1426 | ||
1427 | .manifest-editor .variable-or-property > .title > .token-undefined { | |
1428 | /* color: #bbb; */ | |
1429 | } | |
1430 | ||
1431 | .manifest-editor .variable-or-property > .title > .token-null { | |
1432 | /* color: #999; */ | |
1433 | } | |
1434 | ||
1435 | .manifest-editor .variable-or-property > .title > .token-other { | |
1436 | /* color: #333; */ | |
1437 | } | |
1438 | ||
1439 | .manifest-editor .variables-view-variable { | |
1440 | border-bottom: none; | |
1441 | } | |
1442 | ||
1443 | .manifest-editor .variables-view-delete, | |
1444 | .manifest-editor .variables-view-delete:hover, | |
d2ce251d | 1445 | .manifest-editor .variables-view-delete:active, |
46e71434 | 1446 | .manifest-editor .variable-or-property:focus .variables-view-delete, |
c1d2ce3e | 1447 | .manifest-editor .variables-view-add-property, |
d2ce251d | 1448 | .manifest-editor .variables-view-add-property:hover, |
46e71434 RK |
1449 | .manifest-editor .variables-view-add-property:active, |
1450 | .manifest-editor .variable-or-property:focus .variables-view-add-property { | |
7600e0b1 RK |
1451 | list-style-image: none; |
1452 | -moz-image-region: initial; | |
1453 | } | |
1454 | ||
d2ce251d RK |
1455 | .manifest-editor .variables-view-delete::before, |
1456 | .manifest-editor .variables-view-add-property::before { | |
1457 | width: 11px; | |
1458 | height: 11px; | |
7600e0b1 RK |
1459 | content: ""; |
1460 | display: inline-block; | |
d2ce251d RK |
1461 | background-size: 11px auto; |
1462 | } | |
1463 | ||
1464 | .manifest-editor .variables-view-delete::before { | |
7600e0b1 RK |
1465 | background-image: url("app-manager/remove.svg"); |
1466 | background-size: 12px auto; | |
1467 | } | |
1468 | ||
d2ce251d RK |
1469 | .manifest-editor .variables-view-add-property::before { |
1470 | background-image: url("app-manager/add.svg"); | |
1471 | -moz-margin-end: 2px; | |
1472 | } | |
1473 | ||
7600e0b1 | 1474 | /* === END manifest-editor.inc.css === */ |
45dc7657 RK |
1475 | |
1476 | /* === END widgets.inc.css === */ |