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-indicator-anchor {
8 /* Makes the outermost stack element positioned, so that its contents are
9 rendered over the main browser window in the Z order. This is required by
10 the animated event notification. */
14 /*** Main indicator icon ***/
16 #downloads-indicator-icon {
17 background: -moz-image-rect(url("chrome://browser/skin/FxToolbar.png"),
18 0, 108, 18, 90) center no-repeat;
23 #downloads-indicator:hover > #downloads-indicator-anchor > #downloads-indicator-icon,
24 #downloads-indicator[open="true"] > #downloads-indicator-anchor > #downloads-indicator-icon,
25 #downloads-indicator[attention]:hover > #downloads-indicator-anchor > #downloads-indicator-icon {
26 background: -moz-image-rect(url("chrome://browser/skin/FxToolbar.png"),
27 18, 108, 36, 90) center no-repeat;
31 #downloads-indicator-icon:-moz-lwtheme-brighttext {
32 /* background: -moz-image-rect(url("chrome://browser/skin/Toolbar-inverted.png"),
33 0, 108, 18, 90) center no-repeat;*/
36 #downloads-indicator[attention] > #downloads-indicator-anchor > #downloads-indicator-icon {
37 background-image: url("chrome://browser/skin/downloads/download-glow.png");
40 /* In the next few rules, we use :not([counter]) as a shortcut that is
41 equivalent to -moz-any([progress], [paused]). */
43 #downloads-indicator:not([counter]) > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter {
44 background: -moz-image-rect(url("chrome://browser/skin/FxToolbar.png"),
45 0, 108, 18, 90) center no-repeat;
46 background-size: 12px;
49 #downloads-indicator:not([counter])[attention] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter {
50 background-image: url("chrome://browser/skin/downloads/download-glow.png");
53 #downloads-indicator:not([counter]):hover > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter,
54 #downloads-indicator[open="true"]:not([counter]) > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter,
55 #downloads-indicator:not([counter])[attention]:hover > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter {
56 background: -moz-image-rect(url("chrome://browser/skin/FxToolbar.png"),
57 18, 108, 36, 90) center no-repeat;
58 background-size: 12px;
61 /*** Download notifications ***/
63 #downloads-indicator-notification {
65 background-size: 16px;
66 background-position: center;
67 background-repeat: no-repeat;
70 @keyframes downloadsIndicatorNotificationStartRight {
71 from { opacity: 0; transform: translate(-128px, 128px) scale(8); }
72 20% { opacity: .85; animation-timing-function: ease-out; }
73 to { opacity: 0; transform: translate(0) scale(1); }
76 @keyframes downloadsIndicatorNotificationStartLeft {
77 from { opacity: 0; transform: translate(128px, 128px) scale(8); }
78 20% { opacity: .85; animation-timing-function: ease-out; }
79 to { opacity: 0; transform: translate(0) scale(1); }
82 #downloads-indicator[notification="start"] > #downloads-indicator-anchor > #downloads-indicator-notification {
83 background-image: url("chrome://browser/skin/downloads/download-notification-start.png");
84 animation-name: downloadsIndicatorNotificationStartRight;
85 animation-duration: 1s;
88 #downloads-indicator[notification="start"]:-moz-locale-dir(rtl) > #downloads-indicator-anchor > #downloads-indicator-notification {
89 animation-name: downloadsIndicatorNotificationStartLeft;
92 @keyframes downloadsIndicatorNotificationFinish {
93 from { opacity: 0; transform: scale(1); }
94 20% { opacity: .65; animation-timing-function: ease-in; }
95 to { opacity: 0; transform: scale(8); }
98 #downloads-indicator[notification="finish"] > #downloads-indicator-anchor > #downloads-indicator-notification {
99 background-image: url("chrome://browser/skin/downloads/download-notification-finish.png");
100 animation-name: downloadsIndicatorNotificationFinish;
101 animation-duration: 1s;
104 /*** Progress bar and text ***/
106 #downloads-indicator-counter {
115 #downloads-indicator-counter:-moz-lwtheme-brighttext {
117 text-shadow: 0 0 1px rgba(0,0,0,.7),
118 0 1px 1.5px rgba(0,0,0,.5);*/
121 #downloads-indicator[counter]:hover > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter,
122 #downloads-indicator[counter][open="true"] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter {
126 #downloads-indicator-progress {
134 background-color: #795900;
137 #downloads-indicator-progress > .progress-bar {
138 -moz-appearance: none;
141 background-color: #008484;
142 border-radius: 2px 0 0 2px;
145 #downloads-indicator-progress > .progress-remainder {
148 background-color: #A09090;
149 border-radius: 0 2px 2px 0;
152 #downloads-indicator[paused] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-progress > .progress-bar {
153 background-color: #8050B0;
156 #downloads-indicator[paused] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-progress > .progress-remainder {
157 background-color: #404048;
160 toolbar[mode="full"] > #downloads-indicator > .toolbarbutton-text {