Commit | Line | Data |
---|---|---|
5968ec68 RK |
1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
2 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, | |
3 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
4 | ||
5 | #downloadsRichListBox { | |
6 | /** The default listbox appearance comes with an unwanted margin. **/ | |
7 | -moz-appearance: none; | |
8 | margin: 0; | |
9 | border: none; | |
10 | } | |
11 | ||
12 | #downloadsRichListBox > richlistitem.download { | |
13 | height: 6em; | |
14 | padding: 5px 8px; | |
15 | } | |
16 | ||
17 | .downloadTypeIcon { | |
18 | -moz-margin-end: 8px; | |
19 | -moz-margin-start: 8px; | |
82b4252f RK |
20 | /* explicitly size the icon, so size doesn't vary on hidpi systems */ |
21 | height: 32px; | |
22 | width: 32px; | |
5968ec68 RK |
23 | } |
24 | ||
25 | .blockedIcon { | |
26 | list-style-image: url("chrome://global/skin/icons/alert-error.gif"); | |
27 | } | |
28 | ||
29 | .downloadTarget { | |
30 | margin-bottom: 3px; | |
31 | cursor: inherit; | |
32 | } | |
33 | ||
34 | .downloadDetails { | |
35 | opacity: 0.7; | |
36 | font-size: 95%; | |
37 | cursor: inherit; | |
38 | } | |
39 | ||
40 | .downloadButton { | |
41 | background: transparent; | |
42 | min-width: 0; | |
43 | min-height: 0; | |
44 | margin: 3px; | |
45 | border: none; | |
46 | padding: 5px; | |
47 | list-style-image: url("chrome://browser/skin/downloads/buttons.png"); | |
48 | } | |
49 | ||
50 | /*** Highlighted list items ***/ | |
51 | ||
52 | richlistitem.download:not([selected]):hover { | |
53 | border-radius: 3px; | |
54 | background-color: #794900; | |
55 | color: #FFCF00; | |
56 | cursor: pointer; | |
57 | } | |
58 | ||
59 | /*** Button icons ***/ | |
60 | ||
61 | .downloadButton.downloadCancel { | |
62 | -moz-image-region: rect(0px, 16px, 16px, 0px); | |
63 | } | |
64 | ||
65 | richlistitem.download:hover > .downloadButton.downloadCancel, | |
66 | richlistitem.download:hover > .downloadButton.downloadCancel:hover, | |
67 | richlistitem.download:hover > .downloadButton.downloadCancel:active { | |
68 | -moz-image-region: rect(0px, 32px, 16px, 16px); | |
69 | } | |
70 | ||
71 | .downloadButton.downloadShow { | |
72 | -moz-image-region: rect(16px, 16px, 32px, 0px); | |
73 | } | |
74 | ||
75 | richlistitem.download:hover > .downloadButton.downloadShow, | |
76 | richlistitem.download:hover > .downloadButton.downloadShow:hover, | |
77 | richlistitem.download:hover > .downloadButton.downloadShow:active { | |
78 | -moz-image-region: rect(16px, 32px, 32px, 16px); | |
79 | } | |
80 | ||
81 | .downloadButton.downloadRetry { | |
82 | -moz-image-region: rect(32px, 16px, 48px, 0px); | |
83 | } | |
84 | ||
85 | richlistitem.download:hover > .downloadButton.downloadRetry, | |
86 | richlistitem.download:hover > .downloadButton.downloadRetry:hover, | |
87 | richlistitem.download:hover > .downloadButton.downloadRetry:active { | |
88 | -moz-image-region: rect(32px, 32px, 48px, 16px); | |
89 | } | |
90 | ||
91 | richlistitem.download[selected] > .downloadButton.downloadCancel, | |
92 | richlistitem.download[selected]:hover > .downloadButton.downloadCancel, | |
93 | richlistitem.download[selected]:hover > .downloadButton.downloadCancel:hover, | |
94 | richlistitem.download[selected]:hover > .downloadButton.downloadCancel:active { | |
95 | -moz-image-region: rect(0px, 32px, 16px, 16px); | |
96 | } | |
97 | ||
98 | richlistitem.download[selected] > .downloadButton.downloadShow, | |
99 | richlistitem.download[selected]:hover > .downloadButton.downloadShow, | |
100 | richlistitem.download[selected]:hover > .downloadButton.downloadShow:hover, | |
101 | richlistitem.download[selected]:hover > .downloadButton.downloadShow:active { | |
102 | -moz-image-region: rect(16px, 32px, 32px, 16px); | |
103 | } | |
104 | ||
105 | richlistitem.download[selected] > .downloadButton.downloadRetry, | |
106 | richlistitem.download[selected]:hover > .downloadButton.downloadRetry, | |
107 | richlistitem.download[selected]:hover > .downloadButton.downloadRetry:hover, | |
108 | richlistitem.download[selected]:hover > .downloadButton.downloadRetry:active { | |
109 | -moz-image-region: rect(32px, 32px, 48px, 16px); | |
110 | } |