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 /*@media not all and (min-resolution: 1.1dppx) {*/
24 --downloads-indicator-icon: -moz-image-rect(url("chrome://browser/skin/ToolbarFx.png"), 0, 198, 18, 180);
25 --downloads-indicator-icon-hover: -moz-image-rect(url("chrome://browser/skin/ToolbarFx.png"), 18, 198, 36, 180);
26 --downloads-indicator-icon-attention: url("chrome://browser/skin/downloads/download-glow.png");
31 #downloads-indicator-icon {
32 background: var(--downloads-indicator-icon) center no-repeat;
35 background-size: 18px;
38 #downloads-button:hover > #downloads-indicator-anchor > #downloads-indicator-icon,
39 #downloads-button[open="true"] > #downloads-indicator-anchor > #downloads-indicator-icon,
40 #downloads-button[attention]:hover > #downloads-indicator-anchor > #downloads-indicator-icon {
41 background-image: var(--downloads-indicator-icon-hover);
45 toolbar[brighttext] #downloads-button:not([attention="success"]) > #downloads-indicator-anchor > #downloads-indicator-icon {
46 /* background-image: var(--downloads-indicator-icon-inverted); */
49 #downloads-button[attention="warning"] > .toolbarbutton-badge-stack > .toolbarbutton-badge,
50 #downloads-button[attention="severe"] > .toolbarbutton-badge-stack > .toolbarbutton-badge {
56 /* "!important" is necessary to override the rule in toolbarbutton.css */
57 margin-top: -1px !important;
58 margin-right: -2px !important;
61 #downloads-button[cui-areatype="toolbar"] > .toolbarbutton-badge-stack > .toolbarbutton-badge {
66 #downloads-button[attention="severe"] > .toolbarbutton-badge-stack > .toolbarbutton-badge {
70 #downloads-button[attention="warning"] > .toolbarbutton-badge-stack > .toolbarbutton-badge {
74 #downloads-button[attention="severe"] > .toolbarbutton-badge-stack > .toolbarbutton-badge:-moz-window-inactive,
75 #downloads-button[attention="warning"] > .toolbarbutton-badge-stack > .toolbarbutton-badge:-moz-window-inactive {
79 #downloads-button[attention="success"] > #downloads-indicator-anchor > #downloads-indicator-icon {
80 background-image: var(--downloads-indicator-icon-attention);
83 #downloads-button[cui-areatype="menu-panel"][attention="success"] {
84 list-style-image: url("chrome://browser/skin/downloads/download-glow-menuPanel.png");
85 -moz-image-region: auto;
88 /* In the next few rules, we use :not([counter]) as a shortcut that is
89 equivalent to -moz-any([progress], [paused]). */
91 #downloads-button:not([counter]) > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter {
92 background: var(--downloads-indicator-icon) center no-repeat;
93 background-size: 12px;
96 #downloads-button:not([counter])[attention="success"] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter {
97 background-image: var(--downloads-indicator-icon-attention);
100 #downloads-button:not([counter]):hover > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter,
101 #downloads-button[open="true"]:not([counter]) > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter,
102 #downloads-button:not([counter])[attention="success"]:hover > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter {
103 background-image: var(--downloads-indicator-icon-hover);
104 background-size: 12px;
107 /*** Download notifications ***/
109 #downloads-indicator-notification {
111 background-size: 16px;
112 background-position: center;
113 background-repeat: no-repeat;
118 @keyframes downloadsIndicatorNotificationStartRight {
119 from { opacity: 0; transform: translate(-128px, 128px) scale(8); }
120 20% { opacity: .85; animation-timing-function: ease-out; }
121 to { opacity: 0; transform: translate(0) scale(1); }
124 @keyframes downloadsIndicatorNotificationStartLeft {
125 from { opacity: 0; transform: translate(128px, 128px) scale(8); }
126 20% { opacity: .85; animation-timing-function: ease-out; }
127 to { opacity: 0; transform: translate(0) scale(1); }
130 #downloads-notification-anchor[notification="start"] > #downloads-indicator-notification {
131 background-image: url("chrome://browser/skin/downloads/download-notification-start.png");
132 animation-name: downloadsIndicatorNotificationStartRight;
133 animation-duration: 1s;
136 #downloads-notification-anchor[notification="start"]:-moz-locale-dir(rtl) > #downloads-indicator-notification {
137 animation-name: downloadsIndicatorNotificationStartLeft;
140 @keyframes downloadsIndicatorNotificationFinish {
141 from { opacity: 0; transform: scale(1); }
142 20% { opacity: .65; animation-timing-function: ease-in; }
143 to { opacity: 0; transform: scale(8); }
146 #downloads-notification-anchor[notification="finish"] > #downloads-indicator-notification {
147 background-image: url("chrome://browser/skin/downloads/download-notification-finish.png");
148 animation-name: downloadsIndicatorNotificationFinish;
149 animation-duration: 1s;
152 /*** Progress bar and text ***/
154 #downloads-indicator-counter {
163 toolbar[brighttext] #downloads-indicator-counter {
165 text-shadow: 0 0 1px rgba(0,0,0,.7),
166 0 1px 1.5px rgba(0,0,0,.5);*/
169 #downloads-button[counter]:hover > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter,
170 #downloads-button[counter][open="true"] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter {
174 #downloads-indicator-progress {
182 background-color: #795900;
185 #downloads-indicator-progress > .progress-bar {
186 -moz-appearance: none;
189 background-color: #008484;
190 border-radius: 2px 0 0 2px;
193 #downloads-indicator-progress > .progress-remainder {
196 background-color: #A09090;
197 border-radius: 0 2px 2px 0;
200 #downloads-button[paused] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-progress > .progress-bar {
201 background-color: #8050B0;
204 #downloads-button[paused] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-progress > .progress-remainder {
205 background-color: #404048;
208 toolbar[mode="full"] > #downloads-button > .toolbarbutton-text {