992786d7d189b34e904d4add7e8889dce9a40f93
[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 #addons-page {
39   background-color: #CCD0DD;
40   color: #000000;
41   margin: 20px;
42 }
43
44 #view-port-container {
45   /* Needed to allow the radius to clip the inner content, see bug 595656 */
46   overflow: hidden;
47   background-color: #FFFFFF;
48   border: 1px solid #666699;
49 }
50
51 .nav-button {
52   list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
53   min-width: 0;
54 }
55
56 #forward-btn {
57   -moz-border-start: none;
58 }
59
60 #back-btn:-moz-locale-dir(ltr),
61 #forward-btn:-moz-locale-dir(rtl) {
62   -moz-image-region: rect(42px 25px 63px 0px);
63 }
64
65 #back-btn[disabled="true"]:-moz-locale-dir(ltr),
66 #forward-btn[disabled="true"]:-moz-locale-dir(rtl) {
67   -moz-image-region: rect(42px 50px 63px 25px);
68 }
69
70 #back-btn:-moz-locale-dir(rtl),
71 #forward-btn:-moz-locale-dir(ltr) {
72   -moz-image-region: rect(63px 25px 84px 0px);
73 }
74
75 #back-btn[disabled="true"]:-moz-locale-dir(rtl),
76 #forward-btn[disabled="true"]:-moz-locale-dir(ltr) {
77   -moz-image-region: rect(63px 50px 84px 25px);
78 }
79
80 /*** global warnings ***/
81
82 .global-warning-container {
83   overflow-x: hidden;
84 }
85
86 .global-warning {
87   -moz-box-align: center;
88   padding: 0 8px;
89   color: #000000;
90   font-weight: bold;
91 }
92
93 #addons-page[warning] .global-warning-container {
94   background-color: #FFFFCC;
95 }
96
97 #detail-view .global-warning {
98   padding: 4px 12px;
99   border-bottom: 1px solid #9999CC;
100 }
101
102 @media all and (max-width: 600px) {
103   .global-warning-text {
104     display: none;
105   }
106
107   .global-warning .warning-icon {
108     /* background-color: #FFF;
109     box-shadow: 0px 0px 2px 5px #FFF;
110     border-radius: 10px; */
111   }
112 }
113
114 /* Plugins aren't yet disabled by safemode (bug 342333),
115    so don't show that warning when viewing plugins. */
116 #addons-page[warning="safemode"] .view-pane[type="plugin"] .global-warning-container,
117 #addons-page[warning="safemode"] #detail-view[loading="true"] .global-warning-container {
118   background-color: inherit;
119   background-image: none;
120 }
121
122
123 /*** notification icons ***/
124
125 .warning-icon {
126   list-style-image: url("chrome://global/skin/icons/warning-16.png");
127   width: 16px;
128   height: 16px;
129   margin: 3px 0;
130 }
131
132 .error-icon {
133   list-style-image: url("chrome://global/skin/icons/error-16.png");
134   width: 16px;
135   height: 16px;
136   margin: 3px 0;
137 }
138
139 .pending-icon,
140 .info-icon {
141   list-style-image: url("chrome://global/skin/icons/information-16.png");
142   width: 16px;
143   height: 16px;
144   margin: 3px 0;
145 }
146
147 .addon-view[pending="disable"] .pending-icon,
148 .addon-view[pending="uninstall"] .pending-icon {
149   list-style-image: url("chrome://global/skin/icons/warning-16.png");
150   width: 16px;
151   height: 15px;
152   margin: 3px 0;
153 }
154
155
156 /*** view alert boxes ***/
157
158 .alert-container {
159   -moz-box-align: center;
160 }
161
162 .alert-spacer-before {
163   -moz-box-flex: 1;
164 }
165
166 .alert-spacer-after {
167   -moz-box-flex: 3;
168 }
169
170 .alert {
171   -moz-box-align: center;
172   padding: 10px;
173   color: #000000;
174   border: 1px inset #CCD0DD;
175   border-radius: 8px;
176   background-color: #CCD0DD;
177 }
178
179 .alert .alert-title {
180   font-weight: bold;
181   font-size: 200%;
182   margin-bottom: 15px;
183 }
184
185 .alert .addon-control {
186   margin: 1em 2em;
187 }
188
189 .loading {
190   list-style-image: url("chrome://global/skin/icons/loading.gif");
191   padding-left: 20px;
192   padding-right: 20px;
193 }
194
195
196 /*** category selector ***/
197
198 #categories {
199   -moz-appearance: none;
200   border: none;
201   -moz-margin-end: -1px;
202   background-color: transparent;
203   position: relative;
204   margin-top: 31px;
205 }
206
207 .category {
208   background-color: transparent;
209   color: #404040;
210   min-height: 0;
211   padding: 10px 4px;
212   border-width: 1px;
213   border-style: solid;
214   border-color: transparent;
215   -moz-box-align: center;
216   overflow: hidden;
217 }
218
219 .category[disabled] {
220   height: 0;
221   opacity: 0;
222   -moz-transition-property: height, opacity;
223   -moz-transition-duration: 1s, 0.8s;
224 }
225
226 .category:not([disabled]) {
227   height: 52px;
228   -moz-transition-property: height, opacity;
229   -moz-transition-duration: 1s, 0.8s;
230 }
231
232 .category[selected] {
233   background-color: #FFFFFF;
234   color: #000000;
235   border-color: #666699;
236 }
237
238 .category-name {
239   font-size: 150%;
240 }
241
242 /* Maximize the size of the viewport when the window is small */
243 @media all and (max-width: 800px) {
244   .category-name {
245     display: none;
246   }
247 }
248
249 .category-badge {
250   background-color: #666699;
251   padding: 2px 8px;
252   margin: 6px 0;
253   border: 1px outset #666699;
254   color: #FFFFFF;
255   font-weight: bold;
256   text-align: center;
257 }
258
259 .category-badge[value="0"] {
260   visibility: hidden;
261 }
262
263 .category-icon {
264   width: 32px;
265   height: 32px;
266   -moz-margin-start: 6px;
267 }
268
269 #category-search > .category-icon {
270   list-style-image: url("chrome://mozapps/skin/extensions/category-search.png");
271 }
272 #category-discover > .category-icon {
273   list-style-image: url("chrome://mozapps/skin/extensions/category-discover.png");
274 }
275 #category-languages > .category-icon {
276   list-style-image: url("chrome://mozapps/skin/extensions/category-languages.png");
277 }
278 #category-searchengines > .category-icon {
279   list-style-image: url("chrome://mozapps/skin/extensions/category-searchengines.png");
280 }
281 #category-extensions > .category-icon {
282   list-style-image: url("chrome://mozapps/skin/extensions/category-extensions.png");
283 }
284 #category-themes > .category-icon {
285   list-style-image: url("chrome://mozapps/skin/extensions/category-themes.png");
286 }
287 #category-plugins > .category-icon {
288   list-style-image: url("chrome://mozapps/skin/extensions/category-plugins.png");
289 }
290 #category-availableUpdates > .category-icon {
291   list-style-image: url("chrome://mozapps/skin/extensions/category-available.png");
292 }
293 #category-recentUpdates > .category-icon {
294   list-style-image: url("chrome://mozapps/skin/extensions/category-recent.png");
295 }
296
297
298 /*** header ***/
299
300 #header {
301   margin-bottom: 18px;
302   height: 2em;
303 }
304
305 #header-search {
306   color: #000000;
307   border: 1px inset #CCD0DD;
308   padding: 3px;
309   background-color: #CCD0DD;
310   margin: 0;
311 }
312
313 #header-search .textbox-input:-moz-placeholder {
314   color: #808080;
315 }
316
317 #header-search[focused="true"] {
318   background-color: #FFFFFF;
319 }
320
321 #header-utils-btn {
322   min-width: 4.5em;
323   list-style-image: url("chrome://mozapps/skin/extensions/utilities.png");
324   -moz-margin-end: 18px;
325 }
326
327 .view-header {
328   background-color: #9999CC;
329   padding: 4px;
330   margin: 0;
331   min-height: 31px;
332   border-bottom: 1px solid #666699;
333 }
334
335
336 /*** sorters ***/
337
338 .sort-controls {
339   -moz-appearance: none;
340 }
341
342 .sorter {
343   -moz-appearance: none;
344   border: 1px solid transparent;
345   background-color: transparent;
346   color: #000000;
347   padding: 0 5px;
348   margin: 0 6px;
349   min-width: 12px !important;
350   -moz-box-direction: reverse;
351 }
352
353 .sorter .button-box {
354   padding-top: 0;
355   padding-bottom: 0;
356 }
357
358 .sorter:hover {
359   border: 1px outset #666699;
360 }
361
362 .sorter[checkState="1"],
363 .sorter[checkState="2"] {
364   background-color: #666699;
365   color: #FFFFFF;
366   border: 1px inset #666699;
367 }
368
369 .sorter[checkState="1"] {
370   list-style-image: url("chrome://global/skin/arrow/arrow-down.gif");
371 }
372
373 .sorter[checkState="2"] {
374   list-style-image: url("chrome://global/skin/arrow/arrow-up.gif");
375 }
376
377 .sorter .button-icon {
378   -moz-margin-start: 4px;
379 }
380
381
382 /*** list ***/
383
384 .list {
385   margin: 0;
386   border: none;
387   background-color: transparent;
388 }
389
390 .addon {
391   border-bottom: 1px solid #9999CC;
392   padding: 5px;
393   background-origin: border-box;
394 }
395
396 .details {
397   cursor: pointer;
398   margin: 0;
399   -moz-margin-start: 10px;
400 }
401
402 .icon-container {
403   width: 48px;
404   height: 48px;
405   margin: 22px 7px 7px 7px;
406 }
407
408 .addon[active="false"] .icon {
409 /*  filter: url("chrome://mozapps/skin/extensions/extensions.svg#greyscale"); */
410 }
411
412 .icon {
413   list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric.png");
414   max-width: 48px;
415   max-height: 48px;
416 }
417
418 .addon-view[type="theme"] .icon {
419   list-style-image: url("chrome://mozapps/skin/extensions/themeGeneric.png");
420 }
421
422 .addon-view[type="locale"] .icon {
423   list-style-image: url("chrome://mozapps/skin/extensions/localeGeneric.png");
424 }
425
426 .addon-view[type="plugin"] .icon {
427   list-style-image: url("chrome://mozapps/skin/plugins/pluginGeneric.png");
428 }
429
430 .name-container {
431   font-size: 150%;
432   font-weight: bold;
433   color: #404040;
434   margin-bottom: 0;
435 }
436
437 .creator {
438   font-weight: bold;
439 }
440
441 .creator .text-link {
442   /* color: #0066CC; */
443 }
444
445 .description-container {
446   margin-top: 8px;
447   -moz-margin-start: 6px;
448 }
449
450 .description {
451   margin: 0;
452 }
453
454 .warning,
455 .pending,
456 .error,
457 .info {
458   -moz-margin-start: 48px;
459   font-weight: bold;
460 }
461
462 .addon-view .warning {
463   color: #808000;
464 }
465
466 .addon-view .error {
467   color: #FF0000;
468 }
469
470 .addon-view .pending {
471   color: #33FF33;
472 }
473
474 .addon-view[pending="disable"] .pending,
475 .addon-view[pending="uninstall"] .pending {
476   color: #000000;
477 }
478
479 .addon .relnotes-container {
480   -moz-box-align: start;
481   -moz-margin-start: 6px;
482   height: 0;
483   overflow: hidden;
484   opacity: 0;
485   -moz-transition-property: height, opacity;
486   -moz-transition-duration: 0.5s, 0.5s;
487 }
488
489 .addon[show-relnotes] .relnotes-container {
490   opacity: 1;
491   -moz-transition-property: height, opacity;
492   -moz-transition-duration: 0.5s, 0.5s;
493 }
494
495 .addon .relnotes-header {
496   font-weight: bold;
497   margin: 10px 0;
498 }
499
500 .addon .relnotes-toggle {
501   border: none;
502   background: transparent;
503   font-weight: bold;
504   -moz-box-direction: reverse;
505   cursor: pointer;
506   list-style-image: url("chrome://global/skin/arrow/arrow-down.gif");
507 }
508
509 .addon .relnotes-toggle > .button-box > .button-icon {
510   -moz-padding-start: 4px;
511 }
512
513 .addon[show-relnotes] .relnotes-toggle {
514   list-style-image: url("chrome://global/skin/arrow/arrow-up.gif");
515 }
516
517 .addon[active="false"] {
518   /* background-color: rgba(135, 135, 135, 0.1); */
519 }
520
521 .addon-view[active="false"],
522 .addon-view[active="false"] .name-container {
523   color: #666699;
524 }
525
526 .addon-view[notification="warning"] {
527   background-color: #FFFFCC;
528 }
529
530 .addon-view[notification="error"] {
531   background-color: #FFD0DD;
532 }
533
534 .addon-view[notification="info"] {
535   background-color: #9999CC;
536 }
537
538 .addon-view[pending="enable"],
539 .addon-view[pending="upgrade"],
540 .addon-view[pending="install"] {
541   background-color: #CCFFDD;
542 }
543
544 .addon-view[pending="enable"] .pending,
545 .addon-view[pending="upgrade"] .pending,
546 .addon-view[pending="install"] .pending {
547   color: #008000;
548 }
549
550 .addon-view[pending="disable"],
551 .addon-view[pending="uninstall"] {
552   background-color: #808080;
553 }
554
555 .addon[selected] {
556   background-color: #336699;
557   color: #FFFFFF;
558 }
559
560 .addon[selected] .name-container {
561   color: #FFFFFF;
562 }
563
564 .addon[active="false"][selected] {
565   color: #000000;
566 }
567
568 .addon[active="false"][selected] .name-container {
569   color: #222233;
570 }
571
572
573 /*** item - uninstalled ***/
574
575 .addon[status="uninstalled"] {
576   border: none;
577 }
578
579 .addon[status="uninstalled"] > .container {
580   -moz-box-align: center;
581   padding: 4px 20px;
582   background-color: #808080;
583   border-radius: 8px;
584   font-size: 120%;
585 }
586
587 .addon[status="uninstalled"][selected] {
588   background-color: transparent;
589 }
590
591
592 /*** search view ***/
593
594 #search-filter {
595   padding: 5px 20px;
596   -moz-box-align: center;
597   background-color: #FFFFFF;
598   font-size: 120%;
599   border-bottom: 1px solid #666699;
600   overflow-x: hidden;
601 }
602
603 #search-filter-label {
604   font-weight: bold;
605   color: #808080;
606 }
607
608 .search-filter-radio {
609   -moz-appearance: none;
610   padding: 0 6px;
611   margin: 0 3px;
612   border-radius: 10000px;
613 }
614
615 .search-filter-radio[selected] {
616   background-color: #3366699;
617   color: #000000;
618 }
619
620 .search-filter-radio .radio-check-box1 {
621   display: none;
622 }
623
624 .search-filter-radio .radio-icon {
625   display: none;
626 }
627
628 #search-allresults-link {
629   margin-top: 1em;
630   margin-bottom: 2em;
631 }
632
633 /*** detail view ***/
634
635 #detail-view .loading {
636   opacity: 0;
637 }
638
639 #detail-view[loading-extended] .loading {
640   opacity: 1;
641   -moz-transition-property: opacity;
642   -moz-transition-duration: 1s;
643 }
644
645 .detail-view-container {
646   padding: 0 2em 2em 2em;
647   font-size: 110%;
648 }
649
650 #detail-notifications {
651   margin-top: 1em;
652   margin-bottom: 2em;
653 }
654
655 #detail-notifications .warning,
656 #detail-notifications .pending,
657 #detail-notifications .error {
658   -moz-margin-start: 0;
659 }
660
661 #detail-icon {
662   -moz-margin-end: 10px;
663   margin-top: 6px;
664   max-width: 64px;
665   max-height: 64px;
666 }
667
668 #detail-summary {
669   margin-bottom: 2em;
670 }
671
672 #detail-name-container {
673   font-size: 200%;
674 }
675
676 #detail-screenshot {
677   -moz-margin-end: 2em;
678   max-width: 300px;
679   max-height: 300px;
680 }
681
682 #detail-desc-container {
683   margin-bottom: 2em;
684 }
685
686 #detail-desc, #detail-fulldesc {
687   -moz-margin-start: 6px;
688   white-space: pre-wrap;
689   /* This is necessary to fix layout issues with multi-line descriptions, see
690      bug 592712*/
691   outline: solid transparent;
692   min-width: 8em;
693 }
694
695 #detail-fulldesc {
696   margin-top: 1em;
697 }
698
699 #detail-contributions {
700   border-radius: 5px;
701   border: 1px solid #666699;
702   margin-bottom: 2em;
703   padding: 1em;
704   background-color: #FFFFCC;
705 }
706
707 #detail-contrib-description {
708   font-style: italic;
709   margin-bottom: 1em;
710   color: #000000;
711 }
712
713 #detail-contrib-suggested {
714   color: #808080;
715   font-weight: bold;
716 }
717
718 #detail-contrib-btn {
719   list-style-image: url("chrome://mozapps/skin/extensions/heart.png");
720 }
721
722 #detail-contrib-btn .button-icon {
723   -moz-margin-end: 3px;
724 }
725
726 #detail-grid {
727   margin-bottom: 2em;
728 }
729
730 .detail-row[first-row="true"],
731 .detail-row-complex[first-row="true"] {
732   border-top: none;
733 }
734
735 .detail-row,
736 .detail-row-complex {
737   border-top: 1px solid #808080;
738   -moz-box-align: center;
739 }
740
741 .detail-row-value {
742   -moz-margin-start: 0;
743 }
744
745 #detail-controls {
746   margin-bottom: 1em;
747 }
748
749 #detail-view[active="false"]:not([pending]):not([notification]) {
750   /* background-color: foo; */
751 }
752
753 /*** creator ***/
754
755 .creator > label {
756   -moz-margin-start: 0;
757   -moz-margin-end: 0;
758 }
759
760 .creator > .text-link {
761   margin-top: 1px;
762   margin-bottom: 1px;
763 }
764
765
766 /*** rating ***/
767
768 .meta-rating {
769   -moz-margin-start: 0;
770   -moz-margin-end: 0;
771   padding-top: 2px;
772 }
773
774 .meta-rating > .star {
775   list-style-image: url("chrome://mozapps/skin/extensions/rating-not-won.png");
776   padding: 0 1px;
777 }
778
779 .meta-rating > .star[on="true"] {
780   list-style-image: url("chrome://mozapps/skin/extensions/rating-won.png");
781 }
782
783
784 /*** download progress ***/
785
786 .download-progress {
787   background-color: #CCD0DD;
788   border: 1px solid #808080;
789   width: 200px;
790   height: 21px;
791   margin: 0 8px;
792 }
793
794 .download-progress[mode="undetermined"] .status-container {
795   padding: 0 2px;
796 }
797
798 .download-progress .start-cap,
799 .download-progress[complete] .end-cap,
800 .download-progress[mode="undetermined"] .end-cap,
801 .download-progress .progress .progress-bar {
802   background-color: #336699;
803 }
804
805 .download-progress .progress .progress-bar  {
806   border-left-width: 0;
807   border-right-width: 0;
808   min-height: 21px;
809 }
810
811 .download-progress .progress {
812   background-color: transparent;
813   padding: 0;
814   margin: 0;
815   border: none;
816 }
817
818 .download-progress .start-cap, .download-progress .end-cap {
819   width: 12px;
820 }
821
822 .download-progress .start-cap:-moz-locale-dir(ltr),
823 .download-progress .end-cap:-moz-locale-dir(rtl) {
824   border-radius: 3px 0 0 3px;
825 }
826
827 .download-progress .end-cap:-moz-locale-dir(ltr),
828 .download-progress .start-cap:-moz-locale-dir(rtl) {
829   border-radius: 0 3px 3px 0;
830 }
831
832 .download-progress .cancel {
833   -moz-appearance: none;
834   background-color: #CCD0DD;
835   border: 1px solid #666699;
836   padding: 3px;
837   min-width: 0;
838   margin: 3px;
839 }
840
841 .download-progress .cancel .button-box {
842   padding: 0;
843   border: none;
844 }
845
846 .download-progress .cancel .button-text {
847   display: none;
848 }
849
850 .download-progress .cancel .button-icon {
851   -moz-margin-start: 0;
852 }
853
854 .download-progress .cancel {
855   list-style-image: url('chrome://mozapps/skin/extensions/cancel.png');
856 }
857
858 .download-progress .status-container {
859   -moz-box-align: center;
860 }
861
862 .download-progress .status {
863 /*  text-shadow: #FFF 0 0 2px; */
864 }
865
866 /*** install status ***/
867
868 .install-status {
869   -moz-box-align: center;
870 }
871
872
873 /*** check for updates ***/
874
875 #updates-container {
876   -moz-box-align: center;
877 }
878
879 #updates-container .button-link {
880   font-weight: bold;
881 }
882
883 #updates-installed,
884 #updates-downloaded {
885   color: #00CC00;
886   font-weight: bold;
887 }
888
889 #update-selected {
890   margin: 12px;
891 }
892
893 /*** buttons ***/
894
895 .addon-control[disabled="true"] {
896   display: none;
897 }
898
899 .button-link {
900   background: transparent;
901   border: none;
902   text-decoration: underline;
903   color: #0000FF;
904   cursor: pointer;
905   min-width: 0;
906   margin: 0 6px;
907 }