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, | |
167 | #downloads-indicator[attention]:hover > #downloads-indicator-anchor > #downloads-indicator-icon { | |
168 | background: -moz-image-rect(url("chrome://browser/skin/Toolbar.png"), | |
169 | 18, 108, 36, 90) center no-repeat; | |
170 | } | |
171 | ||
172 | #downloads-indicator[attention] > #downloads-indicator-anchor > #downloads-indicator-icon { | |
990cba4b | 173 | background-image: url("chrome://browser/skin/downloads/download-glow.png"); |
64897c3a RK |
174 | } |
175 | ||
176 | #downloads-indicator:not([counter]) > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter { | |
177 | background: -moz-image-rect(url("chrome://browser/skin/Toolbar.png"), | |
178 | 0, 108, 18, 90) center no-repeat; | |
179 | background-size: 12px; | |
180 | } | |
181 | ||
182 | #downloads-indicator:not([counter])[attention] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter { | |
990cba4b | 183 | background-image: url("chrome://browser/skin/downloads/download-glow.png"); |
64897c3a RK |
184 | } |
185 | ||
186 | #downloads-indicator:not([counter]):hover > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter, | |
187 | #downloads-indicator:not([counter])[attention]:hover > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter { | |
188 | background: -moz-image-rect(url("chrome://browser/skin/Toolbar.png"), | |
189 | 18, 108, 36, 90) center no-repeat; | |
190 | } | |
191 | ||
192 | /*** Event notification ***/ | |
193 | ||
194 | #downloads-indicator-notification { | |
195 | opacity: 0; | |
196 | background: url("chrome://browser/skin/downloads/download-notification.png") | |
197 | center no-repeat; | |
198 | background-size: 16px; | |
199 | } | |
200 | ||
c29b709d | 201 | @keyframes downloadsIndicatorNotificationRight { |
71a617ff | 202 | from { opacity: 0; transform: translate(-128px, 128px) scale(8); } |
c29b709d | 203 | 20% { opacity: .85; animation-timing-function: ease-out; } |
71a617ff | 204 | to { opacity: 0; transform: translate(0) scale(1); } |
64897c3a RK |
205 | } |
206 | ||
c29b709d | 207 | @keyframes downloadsIndicatorNotificationLeft { |
71a617ff | 208 | from { opacity: 0; transform: translate(128px, 128px) scale(8); } |
c29b709d | 209 | 20% { opacity: .85; animation-timing-function: ease-out; } |
71a617ff | 210 | to { opacity: 0; transform: translate(0) scale(1); } |
64897c3a RK |
211 | } |
212 | ||
213 | #downloads-indicator[notification] > #downloads-indicator-anchor > #downloads-indicator-notification { | |
c29b709d RK |
214 | animation-name: downloadsIndicatorNotificationRight; |
215 | animation-duration: 1s; | |
64897c3a RK |
216 | } |
217 | ||
218 | #downloads-indicator[notification]:-moz-locale-dir(rtl) > #downloads-indicator-anchor > #downloads-indicator-notification { | |
c29b709d | 219 | animation-name: downloadsIndicatorNotificationLeft; |
64897c3a RK |
220 | } |
221 | ||
222 | /*** Progress bar and text ***/ | |
223 | ||
224 | #downloads-indicator-counter { | |
990cba4b RK |
225 | height: 9px; |
226 | margin: -3px 0 0; | |
64897c3a | 227 | color: #FFCF00; |
990cba4b RK |
228 | font-size: 9px; |
229 | line-height: 9px; | |
64897c3a RK |
230 | text-align: center; |
231 | } | |
232 | ||
233 | #downloads-indicator-progress { | |
fcfb76ce | 234 | width: 16px; |
990cba4b | 235 | height: 5px; |
64897c3a RK |
236 | min-width: 0; |
237 | min-height: 0; | |
238 | margin-top: 1px; | |
239 | margin-bottom: 2px; | |
240 | border-radius: 2px; | |
fcfb76ce RK |
241 | background-color: #795900; |
242 | /*border: 1px solid #FFCF00;*/ | |
64897c3a RK |
243 | } |
244 | ||
245 | #downloads-indicator-progress > .progress-bar { | |
246 | -moz-appearance: none; | |
247 | min-width: 0; | |
248 | min-height: 0; | |
249 | background-color: #008484; | |
250 | border-radius: 2px 0 0 2px; | |
251 | } | |
252 | ||
253 | #downloads-indicator-progress > .progress-remainder { | |
254 | min-width: 0; | |
255 | min-height: 0; | |
256 | background-color: #000000; | |
257 | border-radius: 0 2px 2px 0; | |
258 | } | |
259 | ||
260 | #downloads-indicator[paused] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-progress > .progress-bar { | |
261 | background-color: #8050B0; | |
262 | } | |
263 | ||
264 | #downloads-indicator[paused] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-progress > .progress-remainder { | |
265 | background-color: #000000; | |
266 | } |