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
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 /*** Status and progress indicator ***/
7 #downloads-animation-container {
12 /* Makes the outermost animation container element positioned, so that its
13 contents are rendered over the main browser window in the Z order.
14 This is required by the animated event notification. */
16 /* The selected tab may overlap #downloads-indicator-notification */
20 /*** Main indicator icon ***/
22 #downloads-indicator-icon {
23 background: -moz-image-rect(url("chrome://browser/skin/ToolbarFx.png"),
24 0, 198, 18, 180) center no-repeat;
29 #downloads-button:hover > #downloads-indicator-anchor > #downloads-indicator-icon,
30 #downloads-button[open="true"] > #downloads-indicator-anchor > #downloads-indicator-icon,
31 #downloads-button[attention]:hover > #downloads-indicator-anchor > #downloads-indicator-icon {
32 background: -moz-image-rect(url("chrome://browser/skin/ToolbarFx.png"),
33 18, 198, 36, 180) center no-repeat;
37 #downloads-indicator-icon:-moz-lwtheme-brighttext {
38 /* background: -moz-image-rect(url("chrome://browser/skin/Toolbar-inverted.png"),
39 0, 108, 18, 90) center no-repeat;*/
42 #downloads-button[attention] > #downloads-indicator-anchor > #downloads-indicator-icon {
43 background-image: url("chrome://browser/skin/downloads/download-glow.png");
46 #downloads-button[cui-areatype="menu-panel"][attention] {
47 list-style-image: url("chrome://browser/skin/downloads/download-glow-menuPanel.png");
48 -moz-image-region: auto;
51 /* In the next few rules, we use :not([counter]) as a shortcut that is
52 equivalent to -moz-any([progress], [paused]). */
54 #downloads-button:not([counter]) > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter {
55 background: -moz-image-rect(url("chrome://browser/skin/ToolbarFx.png"),
56 0, 198, 18, 180) center no-repeat;
57 background-size: 12px;
60 #downloads-button:not([counter])[attention] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter {
61 background-image: url("chrome://browser/skin/downloads/download-glow.png");
64 #downloads-button:not([counter]):hover > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter,
65 #downloads-button[open="true"]:not([counter]) > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter,
66 #downloads-button:not([counter])[attention]:hover > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter {
67 background: -moz-image-rect(url("chrome://browser/skin/ToolbarFx.png"),
68 18, 198, 36, 180) center no-repeat;
69 background-size: 12px;
72 /*** Download notifications ***/
74 #downloads-indicator-notification {
76 background-size: 16px;
77 background-position: center;
78 background-repeat: no-repeat;
83 @keyframes downloadsIndicatorNotificationStartRight {
84 from { opacity: 0; transform: translate(-128px, 128px) scale(8); }
85 20% { opacity: .85; animation-timing-function: ease-out; }
86 to { opacity: 0; transform: translate(0) scale(1); }
89 @keyframes downloadsIndicatorNotificationStartLeft {
90 from { opacity: 0; transform: translate(128px, 128px) scale(8); }
91 20% { opacity: .85; animation-timing-function: ease-out; }
92 to { opacity: 0; transform: translate(0) scale(1); }
95 #downloads-notification-anchor[notification="start"] > #downloads-indicator-notification {
96 background-image: url("chrome://browser/skin/downloads/download-notification-start.png");
97 animation-name: downloadsIndicatorNotificationStartRight;
98 animation-duration: 1s;
101 #downloads-notification-anchor[notification="start"]:-moz-locale-dir(rtl) > #downloads-indicator-notification {
102 animation-name: downloadsIndicatorNotificationStartLeft;
105 @keyframes downloadsIndicatorNotificationFinish {
106 from { opacity: 0; transform: scale(1); }
107 20% { opacity: .65; animation-timing-function: ease-in; }
108 to { opacity: 0; transform: scale(8); }
111 #downloads-notification-anchor[notification="finish"] > #downloads-indicator-notification {
112 background-image: url("chrome://browser/skin/downloads/download-notification-finish.png");
113 animation-name: downloadsIndicatorNotificationFinish;
114 animation-duration: 1s;
117 /*** Progress bar and text ***/
119 #downloads-indicator-counter {
128 #downloads-indicator-counter:-moz-lwtheme-brighttext {
130 text-shadow: 0 0 1px rgba(0,0,0,.7),
131 0 1px 1.5px rgba(0,0,0,.5);*/
134 #downloads-button[counter]:hover > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter,
135 #downloads-button[counter][open="true"] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter {
139 #downloads-indicator-progress {
147 background-color: #795900;
150 #downloads-indicator-progress > .progress-bar {
151 -moz-appearance: none;
154 background-color: #008484;
155 border-radius: 2px 0 0 2px;
158 #downloads-indicator-progress > .progress-remainder {
161 background-color: #A09090;
162 border-radius: 0 2px 2px 0;
165 #downloads-button[paused] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-progress > .progress-bar {
166 background-color: #8050B0;
169 #downloads-button[paused] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-progress > .progress-remainder {
170 background-color: #404048;
173 toolbar[mode="full"] > #downloads-button > .toolbarbutton-text {