Commit | Line | Data |
---|---|---|
64897c3a 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 | /*** Panel and outer controls ***/ | |
6 | ||
64897c3a RK |
7 | #downloadsPanel > .panel-arrowcontainer > .panel-arrowcontent { |
8 | /* Avoid that the arrow overlaps the selection on first item */ | |
9 | padding-top: 5px; | |
10 | } | |
11 | ||
12 | #downloadsPanel > .panel-arrowcontainer > .panel-arrowcontent { | |
13 | padding: 0; | |
14 | } | |
15 | ||
16 | #downloadsListBox { | |
64897c3a RK |
17 | background-color: transparent; |
18 | padding: 4px; | |
19 | color: inherit; | |
20 | } | |
21 | ||
990cba4b RK |
22 | #downloadsPanel:not([hasdownloads]) > #downloadsListBox { |
23 | display: none; | |
24 | } | |
25 | ||
64897c3a | 26 | #downloadsHistory { |
889649fd | 27 | background: transparent; |
64897c3a RK |
28 | color: #9C9CFF; |
29 | cursor: pointer; | |
30 | } | |
31 | ||
32 | #downloadsHistory > .button-box { | |
33 | margin: 1em; | |
34 | } | |
35 | ||
990cba4b | 36 | /*** Downloads Summary and List items ***/ |
64897c3a | 37 | |
990cba4b | 38 | #downloadsSummary, |
64897c3a RK |
39 | richlistitem[type="download"] { |
40 | height: 7em; | |
990cba4b RK |
41 | -moz-padding-end: 0; |
42 | color: inherit; | |
43 | } | |
44 | ||
45 | #downloadsSummary { | |
46 | padding: 8px 38px 8px 12px; | |
47 | cursor: pointer; | |
48 | } | |
49 | ||
50 | #downloadsSummary > .downloadTypeIcon { | |
51 | height: 24px; | |
52 | width: 24px; | |
53 | list-style-image: url("chrome://mozapps/skin/downloads/downloadIcon.png"); | |
54 | } | |
55 | ||
56 | #downloadsSummaryDescription { | |
57 | color: -moz-nativehyperlinktext; | |
58 | } | |
59 | ||
60 | richlistitem[type="download"] { | |
64897c3a RK |
61 | margin: 0; |
62 | border-bottom: 1px dotted #9C9CFF; | |
63 | background: transparent; | |
fcfb76ce | 64 | padding: 8px; |
64897c3a RK |
65 | } |
66 | ||
67 | richlistitem[type="download"]:first-child { | |
68 | /* border-top: 1px solid transparent;*/ | |
69 | } | |
70 | ||
71 | #downloadsListBox:-moz-focusring > richlistitem[type="download"][selected] { | |
72 | outline: 1px #008484 dotted; | |
73 | outline-offset: -1px; | |
b8384c33 | 74 | /*-moz-outline-radius: 3px;*/ |
64897c3a RK |
75 | } |
76 | ||
64897c3a RK |
77 | .downloadTypeIcon { |
78 | -moz-margin-end: 8px; | |
79 | /* Prevent flickering when changing states. */ | |
80 | min-height: 32px; | |
81 | min-width: 32px; | |
82 | } | |
83 | ||
84 | .blockedIcon { | |
85 | list-style-image: url("chrome://global/skin/icons/alert-error.gif"); | |
86 | } | |
87 | ||
88 | .downloadTarget { | |
89 | margin-bottom: 6px; | |
90 | cursor: inherit; | |
91 | } | |
92 | ||
93 | .downloadDetails { | |
94 | opacity: 0.6; | |
95 | font-size: 90%; | |
96 | cursor: inherit; | |
97 | } | |
98 | ||
99 | .downloadButton { | |
100 | -moz-appearance: none; | |
101 | min-width: 0; | |
102 | min-height: 0; | |
103 | margin: 6px; | |
104 | border: none; | |
105 | background: transparent; | |
106 | padding: 5px; | |
107 | list-style-image: url("chrome://browser/skin/downloads/buttons.png"); | |
108 | } | |
109 | ||
110 | .downloadButton > .button-box { | |
111 | padding: 0; | |
112 | } | |
113 | ||
114 | /*** Highlighted list items ***/ | |
115 | ||
fcfb76ce | 116 | richlistitem[type="download"][state="1"]:hover { |
64897c3a RK |
117 | background-color: #794900; |
118 | color: #FFCF00; | |
119 | cursor: pointer; | |
120 | } | |
121 | ||
122 | /*** Button icons ***/ | |
123 | ||
124 | .downloadButton.downloadCancel { | |
fcfb76ce | 125 | -moz-image-region: rect(0px, 16px, 16px, 0px); |
64897c3a RK |
126 | } |
127 | .downloadButton.downloadCancel:hover, | |
128 | .downloadButton.downloadCancel:active { | |
fcfb76ce | 129 | -moz-image-region: rect(0px, 32px, 16px, 16px); |
64897c3a RK |
130 | } |
131 | ||
132 | .downloadButton.downloadShow { | |
fcfb76ce | 133 | -moz-image-region: rect(16px, 16px, 32px, 0px); |
64897c3a RK |
134 | } |
135 | .downloadButton.downloadShow:hover, | |
136 | .downloadButton.downloadShow:active { | |
fcfb76ce | 137 | -moz-image-region: rect(16px, 32px, 32px, 16px); |
64897c3a RK |
138 | } |
139 | ||
140 | .downloadButton.downloadRetry { | |
fcfb76ce | 141 | -moz-image-region: rect(32px, 16px, 48px, 0px); |
64897c3a RK |
142 | } |
143 | .downloadButton.downloadRetry:hover, | |
144 | .downloadButton.downloadRetry:active { | |
fcfb76ce | 145 | -moz-image-region: rect(32px, 32px, 48px, 16px); |
64897c3a RK |
146 | } |
147 | ||
148 | /*** Status and progress indicator ***/ | |
149 | ||
64897c3a | 150 | #downloads-indicator-anchor { |
64897c3a RK |
151 | /* Makes the outermost stack element positioned, so that its contents are |
152 | rendered over the main browser window in the Z order. This is required by | |
153 | the animated event notification. */ | |
154 | position: relative; | |
155 | } | |
156 | ||
157 | /*** Main indicator icon ***/ | |
158 | ||
159 | #downloads-indicator-icon { | |
160 | background: -moz-image-rect(url("chrome://browser/skin/Toolbar.png"), | |
161 | 0, 108, 18, 90) center no-repeat; | |
b8384c33 RK |
162 | min-width: 18px; |
163 | min-height: 18px; | |
64897c3a RK |
164 | } |
165 | ||
166 | #downloads-indicator:hover > #downloads-indicator-anchor > #downloads-indicator-icon, | |
7b928026 | 167 | #downloads-indicator[open="true"] > #downloads-indicator-anchor > #downloads-indicator-icon, |
64897c3a RK |
168 | #downloads-indicator[attention]:hover > #downloads-indicator-anchor > #downloads-indicator-icon { |
169 | background: -moz-image-rect(url("chrome://browser/skin/Toolbar.png"), | |
170 | 18, 108, 36, 90) center no-repeat; | |
171 | } | |
172 | ||
173 | #downloads-indicator[attention] > #downloads-indicator-anchor > #downloads-indicator-icon { | |
990cba4b | 174 | background-image: url("chrome://browser/skin/downloads/download-glow.png"); |
64897c3a RK |
175 | } |
176 | ||
177 | #downloads-indicator:not([counter]) > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter { | |
178 | background: -moz-image-rect(url("chrome://browser/skin/Toolbar.png"), | |
179 | 0, 108, 18, 90) center no-repeat; | |
180 | background-size: 12px; | |
181 | } | |
182 | ||
183 | #downloads-indicator:not([counter])[attention] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter { | |
990cba4b | 184 | background-image: url("chrome://browser/skin/downloads/download-glow.png"); |
64897c3a RK |
185 | } |
186 | ||
187 | #downloads-indicator:not([counter]):hover > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter, | |
188 | #downloads-indicator:not([counter])[attention]:hover > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter { | |
189 | background: -moz-image-rect(url("chrome://browser/skin/Toolbar.png"), | |
190 | 18, 108, 36, 90) center no-repeat; | |
191 | } | |
192 | ||
193 | /*** Event notification ***/ | |
194 | ||
195 | #downloads-indicator-notification { | |
196 | opacity: 0; | |
197 | background: url("chrome://browser/skin/downloads/download-notification.png") | |
198 | center no-repeat; | |
199 | background-size: 16px; | |
200 | } | |
201 | ||
c29b709d | 202 | @keyframes downloadsIndicatorNotificationRight { |
71a617ff | 203 | from { opacity: 0; transform: translate(-128px, 128px) scale(8); } |
c29b709d | 204 | 20% { opacity: .85; animation-timing-function: ease-out; } |
71a617ff | 205 | to { opacity: 0; transform: translate(0) scale(1); } |
64897c3a RK |
206 | } |
207 | ||
c29b709d | 208 | @keyframes downloadsIndicatorNotificationLeft { |
71a617ff | 209 | from { opacity: 0; transform: translate(128px, 128px) scale(8); } |
c29b709d | 210 | 20% { opacity: .85; animation-timing-function: ease-out; } |
71a617ff | 211 | to { opacity: 0; transform: translate(0) scale(1); } |
64897c3a RK |
212 | } |
213 | ||
214 | #downloads-indicator[notification] > #downloads-indicator-anchor > #downloads-indicator-notification { | |
c29b709d RK |
215 | animation-name: downloadsIndicatorNotificationRight; |
216 | animation-duration: 1s; | |
64897c3a RK |
217 | } |
218 | ||
219 | #downloads-indicator[notification]:-moz-locale-dir(rtl) > #downloads-indicator-anchor > #downloads-indicator-notification { | |
c29b709d | 220 | animation-name: downloadsIndicatorNotificationLeft; |
64897c3a RK |
221 | } |
222 | ||
223 | /*** Progress bar and text ***/ | |
224 | ||
225 | #downloads-indicator-counter { | |
990cba4b RK |
226 | height: 9px; |
227 | margin: -3px 0 0; | |
64897c3a | 228 | color: #FFCF00; |
990cba4b RK |
229 | font-size: 9px; |
230 | line-height: 9px; | |
64897c3a RK |
231 | text-align: center; |
232 | } | |
233 | ||
234 | #downloads-indicator-progress { | |
fcfb76ce | 235 | width: 16px; |
990cba4b | 236 | height: 5px; |
64897c3a RK |
237 | min-width: 0; |
238 | min-height: 0; | |
239 | margin-top: 1px; | |
240 | margin-bottom: 2px; | |
241 | border-radius: 2px; | |
fcfb76ce RK |
242 | background-color: #795900; |
243 | /*border: 1px solid #FFCF00;*/ | |
64897c3a RK |
244 | } |
245 | ||
246 | #downloads-indicator-progress > .progress-bar { | |
247 | -moz-appearance: none; | |
248 | min-width: 0; | |
249 | min-height: 0; | |
250 | background-color: #008484; | |
251 | border-radius: 2px 0 0 2px; | |
252 | } | |
253 | ||
254 | #downloads-indicator-progress > .progress-remainder { | |
255 | min-width: 0; | |
256 | min-height: 0; | |
257 | background-color: #000000; | |
258 | border-radius: 0 2px 2px 0; | |
259 | } | |
260 | ||
261 | #downloads-indicator[paused] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-progress > .progress-bar { | |
262 | background-color: #8050B0; | |
263 | } | |
264 | ||
265 | #downloads-indicator[paused] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-progress > .progress-remainder { | |
266 | background-color: #000000; | |
267 | } |