|
1 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
|
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
4 |
|
5 richlistitem.download button { |
|
6 /* These buttons should never get focus, as that would "disable" |
|
7 the downloads view controller (it's only used when the richlistbox |
|
8 is focused). */ |
|
9 -moz-user-focus: none; |
|
10 } |
|
11 |
|
12 /*** Visibility of controls inside download items ***/ |
|
13 |
|
14 .download-state:-moz-any( [state="6"], /* Blocked (parental) */ |
|
15 [state="8"], /* Blocked (dirty) */ |
|
16 [state="9"]) /* Blocked (policy) */ |
|
17 > .downloadTypeIcon:not(.blockedIcon), |
|
18 |
|
19 .download-state:not(:-moz-any([state="6"], /* Blocked (parental) */ |
|
20 [state="8"], /* Blocked (dirty) */ |
|
21 [state="9"]) /* Blocked (policy) */) |
|
22 > .downloadTypeIcon.blockedIcon, |
|
23 |
|
24 .download-state:not(:-moz-any([state="-1"],/* Starting (initial) */ |
|
25 [state="5"], /* Starting (queued) */ |
|
26 [state="0"], /* Downloading */ |
|
27 [state="4"], /* Paused */ |
|
28 [state="7"]) /* Scanning */) |
|
29 > vbox > .downloadProgress, |
|
30 |
|
31 .download-state:not(:-moz-any([state="-1"],/* Starting (initial) */ |
|
32 [state="5"], /* Starting (queued) */ |
|
33 [state="0"], /* Downloading */ |
|
34 [state="4"]) /* Paused */) |
|
35 > .downloadCancel, |
|
36 |
|
37 .download-state[state]:not(:-moz-any([state="2"], /* Failed */ |
|
38 [state="3"]) /* Canceled */) |
|
39 > .downloadRetry, |
|
40 |
|
41 .download-state:not( [state="1"] /* Finished */) |
|
42 > .downloadShow |
|
43 { |
|
44 display: none; |
|
45 } |