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