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/. */
5 /*** Panel and outer controls ***/
8 #downloadsHistory:-moz-focusring > .button-box {
9 border-bottom-left-radius: 6px;
10 border-bottom-right-radius: 6px;
13 #downloadsPanel:not([hasdownloads]) > #downloadsHistory,
14 #downloadsPanel:not([hasdownloads]) > #downloadsHistory:-moz-focusring > .button-box {
15 border-top-left-radius: 6px;
16 border-top-right-radius: 6px;
19 #downloadsPanel > .panel-arrowcontainer > .panel-arrowcontent {
20 /* Avoid that the arrow overlaps the selection on first item */
24 #downloadsPanel > .panel-arrowcontainer > .panel-arrowcontent {
30 background-color: transparent;
41 #downloadsHistory > .button-box {
47 richlistitem[type="download"] {
50 border-bottom: 1px dotted #9C9CFF;
51 background: transparent;
56 richlistitem[type="download"]:first-child {
57 /* border-top: 1px solid transparent;*/
60 #downloadsListBox:-moz-focusring > richlistitem[type="download"][selected] {
61 outline: 1px #008484 dotted;
63 -moz-outline-radius: 3px;
73 /* Prevent flickering when changing states. */
79 list-style-image: url("chrome://global/skin/icons/alert-error.gif");
94 -moz-appearance: none;
99 background: transparent;
101 list-style-image: url("chrome://browser/skin/downloads/buttons.png");
104 .downloadButton > .button-box {
108 /*** Highlighted list items ***/
110 richlistitem[type="download"][state="1"] > .downloadInfo {
111 -moz-padding-end: 8px;
114 richlistitem[type="download"][state="1"] > .downloadInfo:hover {
115 background-color: #794900;
120 /*** Button icons ***/
122 .downloadButton.downloadCancel {
123 -moz-image-region: rect(0px, 14px, 14px, 0px);
125 .downloadButton.downloadCancel:hover,
126 .downloadButton.downloadCancel:active {
127 -moz-image-region: rect(0px, 28px, 14px, 14px);
130 .downloadButton.downloadShow {
131 -moz-image-region: rect(14px, 14px, 28px, 0px);
133 .downloadButton.downloadShow:hover,
134 .downloadButton.downloadShow:active {
135 -moz-image-region: rect(14px, 28px, 28px, 14px);
138 .downloadButton.downloadRetry {
139 -moz-image-region: rect(28px, 14px, 42px, 0px);
141 .downloadButton.downloadRetry:hover,
142 .downloadButton.downloadRetry:active {
143 -moz-image-region: rect(28px, 28px, 42px, 14px);
146 /*** Status and progress indicator ***/
148 #downloads-indicator {
152 #downloads-indicator-anchor {
155 /* Makes the outermost stack element positioned, so that its contents are
156 rendered over the main browser window in the Z order. This is required by
157 the animated event notification. */
161 /*** Main indicator icon ***/
163 #downloads-indicator-icon {
164 background: -moz-image-rect(url("chrome://browser/skin/Toolbar.png"),
165 0, 108, 18, 90) center no-repeat;
168 #downloads-indicator:hover > #downloads-indicator-anchor > #downloads-indicator-icon,
169 #downloads-indicator[attention]:hover > #downloads-indicator-anchor > #downloads-indicator-icon {
170 background: -moz-image-rect(url("chrome://browser/skin/Toolbar.png"),
171 18, 108, 36, 90) center no-repeat;
174 #downloads-indicator[attention] > #downloads-indicator-anchor > #downloads-indicator-icon {
175 background: -moz-image-rect(url("chrome://browser/skin/downloads/download-glow.png"),
176 15, 33, 33, 15) center no-repeat;
179 #downloads-indicator:not([counter]) > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter {
180 background: -moz-image-rect(url("chrome://browser/skin/Toolbar.png"),
181 0, 108, 18, 90) center no-repeat;
182 background-size: 12px;
185 #downloads-indicator:not([counter])[attention] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter {
186 background-image: -moz-image-rect(url("chrome://browser/skin/downloads/download-glow.png"),
190 #downloads-indicator:not([counter]):hover > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter,
191 #downloads-indicator:not([counter])[attention]:hover > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter {
192 background: -moz-image-rect(url("chrome://browser/skin/Toolbar.png"),
193 18, 108, 36, 90) center no-repeat;
196 /*** Event notification ***/
198 #downloads-indicator-notification {
200 background: url("chrome://browser/skin/downloads/download-notification.png")
202 background-size: 16px;
205 @-moz-keyframes downloadsIndicatorNotificationRight {
206 from { opacity: 0; -moz-transform: translate(-128px, 128px) scale(8); }
207 20% { opacity: .85; -moz-animation-timing-function: ease-out; }
208 to { opacity: 0; -moz-transform: translate(0) scale(1); }
211 @-moz-keyframes downloadsIndicatorNotificationLeft {
212 from { opacity: 0; -moz-transform: translate(128px, 128px) scale(8); }
213 20% { opacity: .85; -moz-animation-timing-function: ease-out; }
214 to { opacity: 0; -moz-transform: translate(0) scale(1); }
217 #downloads-indicator[notification] > #downloads-indicator-anchor > #downloads-indicator-notification {
218 -moz-animation-name: downloadsIndicatorNotificationRight;
219 -moz-animation-duration: 1s;
222 #downloads-indicator[notification]:-moz-locale-dir(rtl) > #downloads-indicator-anchor > #downloads-indicator-notification {
223 -moz-animation-name: downloadsIndicatorNotificationLeft;
226 /*** Progress bar and text ***/
228 #downloads-indicator-counter {
237 #downloads-indicator-progress {
245 border: 1px solid #FFCF00;
248 #downloads-indicator-progress > .progress-bar {
249 -moz-appearance: none;
252 background-color: #008484;
253 border-radius: 2px 0 0 2px;
256 #downloads-indicator-progress > .progress-remainder {
259 background-color: #000000;
260 border-radius: 0 2px 2px 0;
263 #downloads-indicator[paused] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-progress > .progress-bar {
264 background-color: #8050B0;
267 #downloads-indicator[paused] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-progress > .progress-remainder {
268 background-color: #000000;