034b43f12dde0416d468355dbbc102f93d0dca0e
[themes.git] / EarlyBlue / mozapps / extensions / extensions.css
1 /* ***** BEGIN LICENSE BLOCK *****
2  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
3  *
4  * The contents of this file are subject to the Mozilla Public License Version
5  * 1.1 (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  * http://www.mozilla.org/MPL/
8  *
9  * Software distributed under the License is distributed on an "AS IS" basis,
10  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11  * for the specific language governing rights and limitations under the
12  * License.
13  *
14  * The Original Code is the Extension Manager UI.
15  *
16  * The Initial Developer of the Original Code is
17  * the Mozilla Foundation.
18  * Portions created by the Initial Developer are Copyright (C) 2010
19  * the Initial Developer. All Rights Reserved.
20  *
21  * Contributor(s):
22  *   Blair McBride <bmcbride@mozilla.com>
23  *
24  * Alternatively, the contents of this file may be used under the terms of
25  * either the GNU General Public License Version 2 or later (the "GPL"), or
26  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27  * in which case the provisions of the GPL or the LGPL are applicable instead
28  * of those above. If you wish to allow use of your version of this file only
29  * under the terms of either the GPL or the LGPL, and not to allow others to
30  * use your version of this file under the terms of the MPL, indicate your
31  * decision by deleting the provisions above and replace them with the notice
32  * and other provisions required by the GPL or the LGPL. If you do not delete
33  * the provisions above, a recipient may use your version of this file under
34  * the terms of any one of the MPL, the GPL or the LGPL.
35  *
36  * ***** END LICENSE BLOCK ***** */
37
38
39 .pane-splitter {
40   -moz-appearance: none;
41   border: none;
42   -moz-border-start: 1px solid #666699;
43   background-color: transparent;
44   background-image: none;
45   min-width: 1px;
46 }
47
48 .view-pane {
49   background-color: #FFFFFF;
50 }
51
52
53 /*** category selector ***/
54
55 #categories {
56   -moz-appearance: none;
57   border: none;
58   margin: 0px;
59 }
60
61 .category {
62   border: none;
63   -moz-appearance: none;
64   padding: 10px 4px;
65   -moz-box-align: center;
66   overflow: hidden;
67   min-height: 0px;
68 }
69
70 .category[disabled] {
71   height: 0px;
72   opacity: 0;
73   -moz-transition-property: height, opacity;
74   -moz-transition-duration: 1s, 0.8s;
75 }
76
77 .category:not([disabled]) {
78   height: 52px;
79   -moz-transition-property: height, opacity;
80   -moz-transition-duration: 1s, 0.8s;
81 }
82
83 .category[selected] {
84   background-color: #9999CC;
85   color: #000000;
86 }
87
88 .category-name {
89   font-size: 150%;
90 }
91
92 .category-badge {
93   background-color: #666699;
94   padding: 2px 8px;
95   margin: 6px 0px;
96   border: 1px outset #666699;
97   /* -moz-border-radius: 100%; */
98   color: #FFFFFF;
99   font-weight: bold;
100   text-align: center;
101 }
102
103 .category-badge[value="0"] {
104   visibility: hidden;
105 }
106
107 .category-icon {
108   width: 32px;
109   height: 32px;
110   -moz-margin-start: 6px;
111 }
112
113 #category-search > .category-icon {
114   list-style-image: url("chrome://mozapps/skin/extensions/category-search.png");
115 }
116 #category-discover > .category-icon {
117   list-style-image: url("chrome://mozapps/skin/extensions/category-discover.png");
118 }
119 #category-languages > .category-icon {
120   list-style-image: url("chrome://mozapps/skin/extensions/category-languages.png");
121 }
122 #category-searchengines > .category-icon {
123   list-style-image: url("chrome://mozapps/skin/extensions/category-searchengines.png");
124 }
125 #category-extensions > .category-icon {
126   list-style-image: url("chrome://mozapps/skin/extensions/category-extensions.png");
127 }
128 #category-themes > .category-icon {
129   list-style-image: url("chrome://mozapps/skin/extensions/category-themes.png");
130 }
131 #category-plugins > .category-icon {
132   list-style-image: url("chrome://mozapps/skin/extensions/category-plugins.png");
133 }
134
135
136 /*** header ***/
137
138 #header {
139   background-color: #666699;
140   border: 1px inset #666699;
141   padding: 8px;
142   margin: 0px;
143   -moz-box-align: center;
144   height: 4.5em;
145 }
146
147 #header-name, #header-link {
148   color: #FFFFFF;
149 }
150
151 #header-name {
152   font-size: 180%;
153 }
154
155 #header-link {
156   -moz-appearance: none;
157   border: none;
158   background: transparent;
159   font-size: 120%;
160   cursor: pointer;
161   list-style-image: url("chrome://mozapps/skin/extensions/go-back.png");
162 }
163
164 #header-link .button-icon {
165   -moz-margin-end: 6px;
166 }
167
168 .view-header {
169   background: #9999CC;
170   padding: 4px;
171   margin: 0px;
172   border-bottom: 1px solid #666699;
173 }
174
175
176 /*** sorters ***/
177
178 .sort-controls {
179   -moz-appearance: none;
180 }
181
182 .sorter {
183   -moz-appearance: none;
184   border: none;
185   background-color: transparent;
186   /* -moz-border-radius: 100%; */
187   padding: 0px 6px;
188   margin: 0px 6px;
189   min-width: 12px !important;
190   -moz-box-direction: reverse;
191 }
192
193 .sorter[checkState="1"],
194 .sorter[checkState="2"] {
195   background-color: #666699;
196 }
197
198 .sorter[checkState="1"] {
199   list-style-image: url("chrome://global/skin/arrow/arrow-down.gif");
200 }
201
202 .sorter[checkState="2"] {
203   list-style-image: url("chrome://global/skin/arrow/arrow-up.gif");
204 }
205
206 .sorter .button-icon {
207   -moz-margin-start: 4px;
208 }
209
210
211 /*** empty list notification ***/
212
213 .empty-list-notice {
214   -moz-box-align: center;
215 }
216
217 .empty-list-notice > button {
218   margin: 20px;
219 }
220
221
222 /*** list ***/
223
224 .list {
225   -moz-appearance: none;
226   margin: 0px;
227   border: none;
228 }
229
230 .addon[status="installed"], .addon[status="installing"] {
231   background-color: #CCD0DD;
232   /* -moz-border-radius: 10px; */
233   border: 1px solid #9999CC;
234   padding: 6px 7px;
235   margin: 3px 8px;
236 }
237
238 .addon[status="installing"] {
239   -moz-box-align: center;
240   border-color: #336699;
241 }
242
243 .addon[selected]:not([status="uninstalled"]) {
244   background: #DDDDDD;
245   border-style: inset;
246   color: inherit;
247 }
248
249 .addon[status="installed"][selected]:not([pending="true"]) {
250   border: none;
251   padding: 8px 9px;
252 }
253
254 .addon[status="installed"][active="false"] .fade {
255   opacity: 0.5;
256 }
257
258 .addon[status="installed"][pending="true"] {
259   border-color: red;
260 }
261
262 .addon[selected] {
263   /* color: -moz-dialogtext; */
264 }
265
266 .addon[selected] .text-link {
267   /* color: -moz-nativehyperlinktext; */
268 }
269
270 .addon .toggle-more {
271   /* -moz-border-radius: 100%; */
272   padding: 0px 6px;
273   margin: 0px 6px;
274   min-width: 12px !important;
275   list-style-image: url("chrome://global/skin/arrow/arrow-down.gif");
276   -moz-box-direction: reverse;
277   border: 1px solid transparent;
278   background: transparent;
279   cursor: pointer;
280 }
281
282 .addon .toggle-more > .button-box > .button-icon {
283   -moz-padding-start: 4px;
284 }
285
286 .addon[show-extra] .toggle-more {
287   list-style-image: url("chrome://global/skin/arrow/arrow-up.gif");
288 }
289
290 .addon .toggle-more:hover {
291   background-color: #CCD0DD;
292   border: 1px outset #CCD0DD;
293 }
294
295 .addon[selected] .toggle-more:hover {
296   background-color: #CCD0DD;
297   border: 1px outset #CCD0DD;
298 }
299
300 .addon .extra-details {
301   height: 0px;
302   overflow: hidden;
303   opacity: 0;
304   text-align: end;
305   -moz-transition-property: height, opacity;
306   -moz-transition-duration: 0.5s, 0.5s;
307 }
308
309 .addon[show-extra] .extra-details {
310   opacity: 1;
311   -moz-transition-property: height, opacity;
312   -moz-transition-duration: 0.5s, 0.5s;
313 }
314
315 .addon .icon {
316   margin: 7px 5px;
317   width: 32px;
318   height: 32px;
319   list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric.png");
320 }
321
322 .addon[type="theme"] .icon {
323   list-style-image: url("chrome://mozapps/skin/extensions/themeGeneric.png");
324 }
325
326 .addon[type="locale"] .icon {
327   list-style-image: url("chrome://mozapps/skin/extensions/localeGeneric.png");
328 }
329
330 .addon[type="plugin"] .icon {
331   list-style-image: url("chrome://mozapps/skin/plugins/pluginGeneric.png");
332 }
333
334 .addon .name-container {
335   -moz-box-align: end;
336 }
337
338 .addon .name {
339   font-size: 150%;
340   margin-bottom: 0px;
341 }
342
343 .addon .disabled-postfix {
344   font-size: 130%;
345 }
346
347 .addon .description {
348   margin-top: 8px;
349   -moz-margin-start: 6px;
350 }
351
352 .addon .warning {
353   color: #FF0000;
354   -moz-box-align: start;
355 }
356
357 .addon .warning-icon {
358   opacity: 0.7;
359   list-style-image: url("chrome://global/skin/icons/warning-16.png");
360 }
361
362 .addon[selected] .warning-icon {
363   opacity: 1;
364 }
365
366 .addon .details-container {
367   -moz-box-align: end;
368   -moz-margin-start: 20px;
369 }
370
371 .addon .control-container {
372   -moz-box-align: center;
373   -moz-box-pack: end;
374   margin-top: 6px;
375 }
376
377 .addon[selected] .details-container {
378   border-color: #9999CC;
379 }
380
381
382 /*** item - uninstalled ***/
383
384 .addon[status="uninstalled"] {
385   border: none;
386 }
387
388 .addon[status="uninstalled"] > .container {
389   -moz-box-align: center;
390   padding: 4px 20px;
391   background-color: #808080;
392   -moz-border-radius: 8px;
393   font-size: 120%;
394 }
395
396 .addon[status="uninstalled"][selected] {
397   background-color: transparent;
398 }
399
400
401
402 /*** search view ***/
403
404 .search-filter {
405   padding: 20px;
406   -moz-box-align: center;
407   background-color: #FFFFFF;
408   font-size: 120%;
409 }
410
411
412 /*** detail view ***/
413
414 #detail-view[active="false"] .fade {
415   opacity: 0.5;
416 }
417
418 #detail-view > .loading {
419   opacity: 0;
420 }
421
422 #detail-view:not([loading]) > .loading {
423   visibility: collapse;
424 }
425
426 #detail-view[loading-extended] > .loading {
427   -moz-box-align: center;
428   -moz-box-pack: center;
429   opacity: 1;
430   -moz-transition-property: opacity;
431   -moz-transition-duration: 1s;
432 }
433
434 #detail-view > .loading > image {
435   list-style-image: url("chrome://global/skin/icons/loading.gif");
436 }
437
438 .detail-view-container {
439   overflow: auto;
440   padding: 10px 20px;
441 }
442
443 .detail-basicinfo {
444   padding: 10px 0px;
445   -moz-box-align: center;
446 }
447
448 .detail-extra {
449   margin-top: 20px;
450 }
451
452 #detail-desc {
453   min-height: 40px;
454   margin-bottom: 20px;
455 }
456
457 #detail-icon {
458   width: 32px;
459   height: 32px;
460   -moz-margin-end: 10px;
461   list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric.png");
462 }
463
464 #detail-view[type="theme"] #detail-icon {
465   list-style-image: url("chrome://mozapps/skin/extensions/themeGeneric.png");
466 }
467
468 #detail-view[type="locale"] #detail-icon {
469   list-style-image: url("chrome://mozapps/skin/extensions/localeGeneric.png");
470 }
471
472 #detail-view[type="plugin"] #detail-icon {
473   list-style-image: url("chrome://mozapps/skin/plugins/pluginGeneric.png");
474 }
475
476 #detail-name {
477   font-size: 200%;
478 }
479
480 #detail-screenshot {
481   width: 140px;
482   height: 140px;
483   background-color: blue;
484   margin: 0px 10px 0px 0px;
485 }
486
487 .detail-prefs {
488   -moz-box-align: start;
489 }
490
491 .meta-label {
492   font-weight: bold;
493 }
494
495 #detail-notification {
496   -moz-box-align: center;
497   -moz-box-pack: center;
498   margin: 0px 50px;
499   padding: 4px 20px;
500   background-color: #FFFFCC;
501   /* -moz-border-radius: 8px; */
502   font-size: 120%;
503   border: 1px solid #666699;
504 }
505
506
507 /*** creator ***/
508
509 .creator > label {
510   -moz-margin-start: 0px;
511   -moz-margin-end: 0px;
512 }
513
514 .creator > .text-link {
515   margin-top: 1px;
516   margin-bottom: 1px;
517 }
518
519
520 /*** rating ***/
521
522 .meta-rating {
523   -moz-margin-start: 0px;
524   -moz-margin-end: 0px;
525   vertical-align: text-top;
526 }
527
528 .meta-rating[showrating="average"] > .star {
529   list-style-image: url("chrome://mozapps/skin/extensions/rating-not-won.png");
530   padding: 0px 1px;
531 }
532
533 .meta-rating[showrating="user"] > .star {
534   list-style-image: url("chrome://mozapps/skin/extensions/rating-unrated.png");
535   padding: 2px 3px;
536 }
537
538 .meta-rating > .star[on="true"],
539 .meta-rating[showrating="user"] > .star[hover] {
540   list-style-image: url("chrome://mozapps/skin/extensions/rating-won.png");
541   padding: 0px 1px;
542 }
543
544
545 /*** download progress ***/
546
547 .download-progress {
548   background-color: #CCD0DD;
549   /* -moz-border-radius: 100%; */
550   border: 1px solid #808080;
551   width: 200px;
552   height: 24px;
553   margin: 0px 8px;
554 }
555
556 .download-progress .start-cap,
557 .download-progress[complete] .end-cap,
558 .download-progress .progress .progress-bar {
559   background-color: #336699;
560 }
561
562 .download-progress .progress {
563   background-color: transparent;
564 }
565
566 .download-progress .start-cap, .download-progress .end-cap {
567   width: 12px;
568 }
569
570 .download-progress .start-cap {
571   -moz-border-radius: 100% 0 0 100%;
572 }
573
574 .download-progress .end-cap {
575   -moz-border-radius: 0 100% 100% 0;
576 }
577
578 .download-progress .progress {
579   -moz-appearance: none;
580   padding: 0px;
581   margin: 0px;
582   border: none;
583 }
584
585 .download-progress .pause, .download-progress .cancel {
586   -moz-appearance: none;
587   background-color: #CCD0DD;
588   border-width: 1px 0px 0px 1px;
589   border-style: solid;
590   -moz-border-top-colors: #FFFFFF;
591   -moz-border-left-colors: #FFFFFF;
592   /* -moz-border-radius: 100%; */
593   min-width: 16px;
594   width: 16px;
595   height: 16px;
596   margin: 3px;
597 }
598
599 .download-progress .pause {
600   list-style-image: url('chrome://mozapps/skin/extensions/pause.png');
601 }
602
603 .download-progress .cancel {
604   list-style-image: url('chrome://mozapps/skin/extensions/cancel.png');
605 }
606
607 .download-progress .status-container {
608   -moz-box-align: center;
609 }
610
611
612 /*** install status ***/
613
614 .install-status {
615   -moz-box-align: center;
616 }
617
618
619 /*** check for updates ***/
620
621 #updates-container {
622   -moz-box-align: center;
623 }
624
625 #updates-installed, #updates-downloaded {
626   color: #00CC00;
627   font-weight: bold;
628 }
629
630
631 /*** buttons ***/
632
633 .addon-control {
634   padding: 0px 5px;
635 }
636
637 .addon-control[disabled="true"] {
638   display: none;
639 }
640
641 .contribute {
642   -moz-padding-start: 20px;
643   -moz-padding-end: 4px;
644 }
645
646 .button-link {
647   background: transparent;
648   border: none;
649   text-decoration: underline;
650   color: blue;
651   cursor: pointer;
652   min-width: 0;
653 }