browser/components/downloads/content/downloads.css

branch
TOR_BUG_9701
changeset 10
ac0c01689b40
equal deleted inserted replaced
-1:000000000000 0:c1d95afa7d4e
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 /*** Download items ***/
6
7 richlistitem[type="download"] {
8 -moz-binding: url('chrome://browser/content/downloads/download.xml#download');
9 }
10
11 richlistitem[type="download"]:not([selected]) button {
12 /* Only focus buttons in the selected item. */
13 -moz-user-focus: none;
14 }
15
16 /*** Visibility of controls inside download items ***/
17
18 .download-state:-moz-any( [state="6"], /* Blocked (parental) */
19 [state="8"], /* Blocked (dirty) */
20 [state="9"]) /* Blocked (policy) */
21 .downloadTypeIcon:not(.blockedIcon),
22
23 .download-state:not(:-moz-any([state="6"], /* Blocked (parental) */
24 [state="8"], /* Blocked (dirty) */
25 [state="9"]) /* Blocked (policy) */)
26 .downloadTypeIcon.blockedIcon,
27
28 .download-state:not(:-moz-any([state="-1"],/* Starting (initial) */
29 [state="5"], /* Starting (queued) */
30 [state="0"], /* Downloading */
31 [state="4"], /* Paused */
32 [state="7"]) /* Scanning */)
33 .downloadProgress,
34
35 .download-state:not( [state="0"] /* Downloading */)
36 .downloadPauseMenuItem,
37
38 .download-state:not( [state="4"] /* Paused */)
39 .downloadResumeMenuItem,
40
41 .download-state:not(:-moz-any([state="2"], /* Failed */
42 [state="4"]) /* Paused */)
43 .downloadCancelMenuItem,
44
45 .download-state:not(:-moz-any([state="1"], /* Finished */
46 [state="2"], /* Failed */
47 [state="3"], /* Canceled */
48 [state="6"], /* Blocked (parental) */
49 [state="8"], /* Blocked (dirty) */
50 [state="9"]) /* Blocked (policy) */)
51 .downloadRemoveFromHistoryMenuItem,
52
53 .download-state:not(:-moz-any([state="-1"],/* Starting (initial) */
54 [state="0"], /* Downloading */
55 [state="1"], /* Finished */
56 [state="4"], /* Paused */
57 [state="5"]) /* Starting (queued) */)
58 .downloadShowMenuItem,
59
60 .download-state[state="7"] .downloadCommandsSeparator
61
62 {
63 display: none;
64 }
65
66 /*** Visibility of download buttons ***/
67
68 .download-state:not(:-moz-any([state="-1"],/* Starting (initial) */
69 [state="5"], /* Starting (queued) */
70 [state="0"], /* Downloading */
71 [state="4"]) /* Paused */)
72 .downloadCancel,
73
74 .download-state:not(:-moz-any([state="2"], /* Failed */
75 [state="3"]) /* Canceled */)
76 .downloadRetry,
77
78 .download-state:not( [state="1"] /* Finished */)
79 .downloadShow
80
81 {
82 visibility: hidden;
83 }
84
85 .download-state[state="1"]:not([exists]) .downloadShow
86 {
87 display: none;
88 }
89
90 #downloadsSummary:not([inprogress]) > vbox > #downloadsSummaryProgress,
91 #downloadsSummary:not([inprogress]) > vbox > #downloadsSummaryDetails,
92 #downloadsFooter[showingsummary] > #downloadsHistory,
93 #downloadsFooter:not([showingsummary]) > #downloadsSummary
94 {
95 display: none;
96 }

mercurial