d2c4098cd1cfe40f8f173bf538239d215adf48cf
[themes.git] / LCARStrek / browser / downloads / downloads.css
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
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 {
17   background-color: transparent;
18   padding: 4px;
19   color: inherit;
20 }
21
22 #downloadsHistory {
23   background: transparent;
24   color: #9C9CFF;
25   cursor: pointer;
26 }
27
28 #downloadsHistory > .button-box {
29   margin: 1em;
30 }
31
32 /*** List items ***/
33
34 richlistitem[type="download"] {
35   height: 7em;
36   margin: 0;
37   border-bottom: 1px dotted #9C9CFF;
38   background: transparent;
39   padding: 8px;
40   -moz-padding-end: 0;
41   color: inherit;
42 }
43
44 richlistitem[type="download"]:first-child {
45 /*  border-top: 1px solid transparent;*/
46 }
47
48 #downloadsListBox:-moz-focusring > richlistitem[type="download"][selected] {
49   outline: 1px #008484 dotted;
50   outline-offset: -1px;
51   /*-moz-outline-radius: 3px;*/
52 }
53
54 .downloadTypeIcon {
55   -moz-margin-end: 8px;
56   /* Prevent flickering when changing states. */
57   min-height: 32px;
58   min-width: 32px;
59 }
60
61 .blockedIcon {
62   list-style-image: url("chrome://global/skin/icons/alert-error.gif");
63 }
64
65 .downloadTarget {
66   margin-bottom: 6px;
67   cursor: inherit;
68 }
69
70 .downloadDetails {
71   opacity: 0.6;
72   font-size: 90%;
73   cursor: inherit;
74 }
75
76 .downloadButton {
77   -moz-appearance: none;
78   min-width: 0;
79   min-height: 0;
80   margin: 6px;
81   border: none;
82   background: transparent;
83   padding: 5px;
84   list-style-image: url("chrome://browser/skin/downloads/buttons.png");
85 }
86
87 .downloadButton > .button-box {
88   padding: 0;
89 }
90
91 /*** Highlighted list items ***/
92
93 richlistitem[type="download"][state="1"]:hover {
94   background-color: #794900;
95   color: #FFCF00;
96   cursor: pointer;
97 }
98
99 /*** Button icons ***/
100
101 .downloadButton.downloadCancel {
102   -moz-image-region: rect(0px, 16px, 16px, 0px);
103 }
104 .downloadButton.downloadCancel:hover,
105 .downloadButton.downloadCancel:active {
106   -moz-image-region: rect(0px, 32px, 16px, 16px);
107 }
108
109 .downloadButton.downloadShow {
110   -moz-image-region: rect(16px, 16px, 32px, 0px);
111 }
112 .downloadButton.downloadShow:hover,
113 .downloadButton.downloadShow:active {
114   -moz-image-region: rect(16px, 32px, 32px, 16px);
115 }
116
117 .downloadButton.downloadRetry {
118   -moz-image-region: rect(32px, 16px, 48px, 0px);
119 }
120 .downloadButton.downloadRetry:hover,
121 .downloadButton.downloadRetry:active {
122   -moz-image-region: rect(32px, 32px, 48px, 16px);
123 }
124
125 /*** Status and progress indicator ***/
126
127 #downloads-indicator-anchor {
128   /* Makes the outermost stack element positioned, so that its contents are
129      rendered over the main browser window in the Z order.  This is required by
130      the animated event notification. */
131   position: relative;
132 }
133
134 /*** Main indicator icon ***/
135
136 #downloads-indicator-icon {
137   background: -moz-image-rect(url("chrome://browser/skin/Toolbar.png"),
138                               0, 108, 18, 90) center no-repeat;
139   min-width: 18px;
140   min-height: 18px;
141 }
142
143 #downloads-indicator:hover > #downloads-indicator-anchor > #downloads-indicator-icon,
144 #downloads-indicator[attention]:hover > #downloads-indicator-anchor > #downloads-indicator-icon {
145   background: -moz-image-rect(url("chrome://browser/skin/Toolbar.png"),
146                               18, 108, 36, 90) center no-repeat;
147 }
148
149 #downloads-indicator[attention] > #downloads-indicator-anchor > #downloads-indicator-icon {
150   background: -moz-image-rect(url("chrome://browser/skin/downloads/download-glow.png"),
151                               15, 33, 33, 15) center no-repeat;
152 }
153
154 #downloads-indicator:not([counter]) > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter {
155   background: -moz-image-rect(url("chrome://browser/skin/Toolbar.png"),
156                               0, 108, 18, 90) center no-repeat;
157   background-size: 12px;
158 }
159
160 #downloads-indicator:not([counter])[attention] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter {
161   background-image: -moz-image-rect(url("chrome://browser/skin/downloads/download-glow.png"),
162                                     16, 32, 32, 16);
163 }
164
165 #downloads-indicator:not([counter]):hover > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter,
166 #downloads-indicator:not([counter])[attention]:hover > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter {
167   background: -moz-image-rect(url("chrome://browser/skin/Toolbar.png"),
168                               18, 108, 36, 90) center no-repeat;
169 }
170
171 /*** Event notification ***/
172
173 #downloads-indicator-notification {
174   opacity: 0;
175   background: url("chrome://browser/skin/downloads/download-notification.png")
176               center no-repeat;
177   background-size: 16px;
178 }
179
180 @keyframes downloadsIndicatorNotificationRight {
181   from { opacity: 0; transform: translate(-128px, 128px) scale(8); }
182   20%  { opacity: .85; animation-timing-function: ease-out; }
183   to   { opacity: 0; transform: translate(0) scale(1); }
184 }
185
186 @keyframes downloadsIndicatorNotificationLeft {
187   from { opacity: 0; transform: translate(128px, 128px) scale(8); }
188   20%  { opacity: .85; animation-timing-function: ease-out; }
189   to   { opacity: 0; transform: translate(0) scale(1); }
190 }
191
192 #downloads-indicator[notification] > #downloads-indicator-anchor > #downloads-indicator-notification {
193   animation-name: downloadsIndicatorNotificationRight;
194   animation-duration: 1s;
195 }
196
197 #downloads-indicator[notification]:-moz-locale-dir(rtl) > #downloads-indicator-anchor > #downloads-indicator-notification {
198   animation-name: downloadsIndicatorNotificationLeft;
199 }
200
201 /*** Progress bar and text ***/
202
203 #downloads-indicator-counter {
204   height: 10px;
205   margin: 0;
206   color: #FFCF00;
207   font-size: 10px;
208   line-height: 10px;
209   text-align: center;
210 }
211
212 #downloads-indicator-progress {
213   width: 16px;
214   height: 6px;
215   min-width: 0;
216   min-height: 0;
217   margin-top: 1px;
218   margin-bottom: 2px;
219   border-radius: 2px;
220   background-color: #795900;
221   /*border: 1px solid #FFCF00;*/
222 }
223
224 #downloads-indicator-progress > .progress-bar {
225   -moz-appearance: none;
226   min-width: 0;
227   min-height: 0;
228   background-color: #008484;
229   border-radius: 2px 0 0 2px;
230 }
231
232 #downloads-indicator-progress > .progress-remainder {
233   min-width: 0;
234   min-height: 0;
235   background-color: #000000;
236   border-radius: 0 2px 2px 0;
237 }
238
239 #downloads-indicator[paused] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-progress > .progress-bar {
240   background-color: #8050B0;
241 }
242
243 #downloads-indicator[paused] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-progress > .progress-remainder {
244   background-color: #000000;
245 }