1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
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/
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
14 * The Original Code is the Extension Manager UI.
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.
22 * Blair McBride <bmcbride@mozilla.com>
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.
36 * ***** END LICENSE BLOCK ***** */
38 @import url("chrome://global/skin/inContentUI.css");
40 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
43 list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
47 -moz-border-start: none;
50 #back-btn:-moz-locale-dir(ltr),
51 #forward-btn:-moz-locale-dir(rtl) {
52 -moz-image-region: rect(42px 25px 63px 0px);
55 #back-btn[disabled="true"]:-moz-locale-dir(ltr),
56 #forward-btn[disabled="true"]:-moz-locale-dir(rtl) {
57 -moz-image-region: rect(42px 50px 63px 25px);
60 #back-btn:-moz-locale-dir(rtl),
61 #forward-btn:-moz-locale-dir(ltr) {
62 -moz-image-region: rect(63px 25px 84px 0px);
65 #back-btn[disabled="true"]:-moz-locale-dir(rtl),
66 #forward-btn[disabled="true"]:-moz-locale-dir(ltr) {
67 -moz-image-region: rect(63px 50px 84px 25px);
71 /*** global warnings ***/
73 .global-warning-container {
78 -moz-box-align: center;
84 #addons-page[warning] .global-warning-container {
85 background-color: #FFFFCC;
88 #detail-view .global-warning {
90 border-bottom: 1px solid #9999CC;
93 @media all and (max-width: 600px) {
94 .global-warning-text {
98 .global-warning .warning-icon {
99 /* background-color: #FFF;
100 box-shadow: 0px 0px 2px 5px #FFF;
101 border-radius: 10px; */
105 /*** global informations ***/
106 #addons-page .global-info-container {
107 background-color: #9C9CFF;
110 /* Plugins aren't yet disabled by safemode (bug 342333),
111 so don't show that warning when viewing plugins. */
112 #addons-page[warning="safemode"] .view-pane[type="plugin"] .global-warning-container,
113 #addons-page[warning="safemode"] #detail-view[loading="true"] .global-warning-container {
114 background-color: inherit;
115 background-image: none;
119 /*** notification icons ***/
122 list-style-image: url("chrome://global/skin/icons/warning-16.png");
129 list-style-image: url("chrome://global/skin/icons/error-16.png");
137 list-style-image: url("chrome://global/skin/icons/information-16.png");
143 .addon-view[pending="disable"] .pending-icon,
144 .addon-view[pending="uninstall"] .pending-icon {
145 list-style-image: url("chrome://global/skin/icons/warning-16.png");
152 /*** view alert boxes ***/
155 -moz-box-align: center;
158 .alert-spacer-before {
162 .alert-spacer-after {
167 -moz-box-align: center;
170 border: 1px inset #CCD0DD;
172 background-color: #CCD0DD;
173 background-clip: padding-box;
176 .alert .alert-title {
187 list-style-image: url("chrome://global/skin/icons/loading.gif");
193 /*** category selector ***/
196 -moz-appearance: none;
198 -moz-margin-end: -1px;
199 background-color: transparent;
205 background-color: transparent;
211 border-color: transparent;
212 -moz-box-align: center;
216 .category[disabled] {
221 -moz-transition-property: height, opacity;
222 -moz-transition-duration: 1s, 0.8s;
225 .category:not([disabled]) {
227 -moz-transition-property: height, opacity;
228 -moz-transition-duration: 1s, 0.8s;
231 .category[selected] {
232 background-color: #FFFFFF;
234 border-color: #666699;
241 /* Maximize the size of the viewport when the window is small */
242 @media all and (max-width: 800px) {
249 background-color: #666699;
252 border: 1px outset #666699;
258 .category-badge[value="0"] {
265 -moz-margin-start: 6px;
268 #category-search > .category-icon {
269 list-style-image: url("chrome://mozapps/skin/extensions/category-search.png");
271 #category-discover > .category-icon {
272 list-style-image: url("chrome://mozapps/skin/extensions/category-discover.png");
274 #category-locale > .category-icon {
275 list-style-image: url("chrome://mozapps/skin/extensions/category-languages.png");
277 #category-searchengine > .category-icon {
278 list-style-image: url("chrome://mozapps/skin/extensions/category-searchengines.png");
280 #category-extension > .category-icon {
281 list-style-image: url("chrome://mozapps/skin/extensions/category-extensions.png");
283 #category-theme > .category-icon {
284 list-style-image: url("chrome://mozapps/skin/extensions/category-themes.png");
286 #category-plugin > .category-icon {
287 list-style-image: url("chrome://mozapps/skin/extensions/category-plugins.png");
289 #category-dictionary > .category-icon {
290 list-style-image: url("chrome://mozapps/skin/extensions/category-dictionaries.png");
292 #category-availableUpdates > .category-icon {
293 list-style-image: url("chrome://mozapps/skin/extensions/category-available.png");
295 #category-recentUpdates > .category-icon {
296 list-style-image: url("chrome://mozapps/skin/extensions/category-recent.png");
309 border: 1px inset #CCD0DD;
311 background-color: #CCD0DD;
315 #header-search .textbox-input:-moz-placeholder {
319 #header-search[focused] {
320 background-color: #FFFFFF;
324 list-style-image: url("chrome://mozapps/skin/extensions/utilities.png");
325 -moz-margin-end: 16px;
329 background-color: #9999CC;
333 border-bottom: 1px solid #666699;
340 -moz-appearance: none;
344 -moz-appearance: none;
345 border: 1px solid transparent;
346 background-color: transparent;
350 min-width: 12px !important;
351 -moz-box-direction: reverse;
354 .sorter .button-box {
360 border: 1px outset #666699;
363 .sorter[checkState="1"],
364 .sorter[checkState="2"] {
365 background-color: #666699;
367 border: 1px inset #666699;
370 .sorter[checkState="1"] {
371 list-style-image: url("chrome://global/skin/arrow/arrow-down.gif");
374 .sorter[checkState="2"] {
375 list-style-image: url("chrome://global/skin/arrow/arrow-up.gif");
378 .sorter .button-icon {
379 -moz-margin-start: 4px;
383 /*** discover view ***/
385 .discover-spacer-before,
386 .discover-spacer-after {
390 #discover-error .alert {
396 list-style-image: url("chrome://mozapps/skin/extensions/discover-logo.png");
397 -moz-margin-end: 15px;
403 /* font-family: MetaWebPro-Book, "Trebuchet MS", sans-serif; */
407 .discover-description {
422 background-color: transparent;
426 border-bottom: 1px solid #9999CC;
428 background-origin: border-box;
434 -moz-margin-start: 10px;
441 -moz-box-align: center;
442 -moz-box-pack: center;
446 list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric.png");
451 .addon[active="false"] .icon {
452 filter: url("chrome://mozapps/skin/extensions/extensions.svg#greyscale");
455 .addon-view[type="theme"] .icon {
456 list-style-image: url("chrome://mozapps/skin/extensions/themeGeneric.png");
459 .addon-view[type="locale"] .icon {
460 list-style-image: url("chrome://mozapps/skin/extensions/localeGeneric.png");
463 .addon-view[type="plugin"] .icon {
464 list-style-image: url("chrome://mozapps/skin/plugins/pluginGeneric.png");
467 .addon-view[type="dictionary"] .icon {
468 list-style-image: url("chrome://mozapps/skin/extensions/dictionaryGeneric.png");
484 .creator .text-link {
485 /* color: #0066CC; */
488 .description-container {
489 -moz-margin-start: 6px;
490 -moz-box-align: center;
501 -moz-margin-start: 48px;
503 -moz-box-align: center;
507 .basicinfo-container {
508 -moz-box-align: start;
511 .addon[status="installing"] > .content-container {
512 -moz-box-align: stretch;
515 .advancedinfo-container,
516 .update-info-container {
517 -moz-box-align: center;
524 .install-status-container {
529 .name-outer-container {
530 -moz-box-pack: center;
533 .relnotes-toggle-container,
534 .icon-outer-container {
535 -moz-box-pack: start;
543 .addon-view .warning {
551 .addon-view .pending {
555 .addon-view[pending="disable"] .pending,
556 .addon-view[pending="uninstall"] .pending {
560 .addon .relnotes-container {
561 -moz-box-align: start;
562 -moz-margin-start: 6px;
566 -moz-transition-property: height, opacity;
567 -moz-transition-duration: 0.5s, 0.5s;
570 .addon[show-relnotes] .relnotes-container {
572 -moz-transition-property: height, opacity;
573 -moz-transition-duration: 0.5s, 0.5s;
576 .addon .relnotes-header {
581 .addon .relnotes-toggle {
583 background: transparent;
585 -moz-box-direction: reverse;
587 list-style-image: url("chrome://global/skin/arrow/arrow-down.gif");
590 .addon .relnotes-toggle > .button-box > .button-icon {
591 -moz-padding-start: 4px;
594 .addon[show-relnotes] .relnotes-toggle {
595 list-style-image: url("chrome://global/skin/arrow/arrow-up.gif");
598 .addon[active="false"] {
599 background-color: #DDDDDD;
602 .addon-view[active="false"],
603 .addon-view[active="false"] .name-container {
607 .addon-view[notification="warning"] {
608 background-color: #FFFFCC;
611 .addon-view[notification="error"] {
612 background-color: #FFD0DD;
615 .addon-view[notification="info"] {
616 background-color: #9999CC;
619 .addon-view[pending="enable"],
620 .addon-view[pending="upgrade"],
621 .addon-view[pending="install"] {
622 background-color: #CCFFDD;
625 .addon-view[pending="enable"] .pending,
626 .addon-view[pending="upgrade"] .pending,
627 .addon-view[pending="install"] .pending {
631 .addon-view[pending="disable"],
632 .addon-view[pending="uninstall"] {
633 background-color: #808080;
637 background-color: #336699;
641 .addon[selected] .name-container {
645 .addon[active="false"][selected] {
649 .addon[active="false"][selected] .name-container {
654 /*** item - uninstalled ***/
656 .addon[status="uninstalled"] {
660 .addon[status="uninstalled"] > .container {
661 -moz-box-align: center;
663 background-color: #808080;
668 .addon[status="uninstalled"][selected] {
669 background-color: transparent;
673 /*** search view ***/
677 -moz-box-align: center;
678 background-color: #FFFFFF;
680 border-bottom: 1px solid #666699;
684 #search-filter-label {
689 .search-filter-radio {
690 -moz-appearance: none;
693 border-radius: 10000px;
696 .search-filter-radio[selected] {
697 background-color: #3366699;
701 .search-filter-radio .radio-check-box1 {
705 .search-filter-radio .radio-icon {
709 #search-allresults-link {
714 /*** detail view ***/
716 #detail-view .loading {
720 #detail-view[loading-extended] .loading {
722 -moz-transition-property: opacity;
723 -moz-transition-duration: 1s;
726 .detail-view-container {
727 padding: 0 2em 2em 2em;
731 #detail-notifications {
736 #detail-notifications .warning,
737 #detail-notifications .pending,
738 #detail-notifications .error {
739 -moz-margin-start: 0;
743 -moz-margin-end: 10px;
753 #detail-name-container {
758 -moz-margin-end: 2em;
763 #detail-screenshot[loading] {
764 background-image: url("chrome://communicator/skin/brand/throbber-anim.gif");
765 background-position: 50% 50%;
766 background-repeat: no-repeat;
769 #detail-screenshot[loading="error"] {
770 background-image: url("chrome://global/skin/icons/alert-error.gif");
773 #detail-desc-container {
777 #detail-desc, #detail-fulldesc {
778 -moz-margin-start: 6px;
779 white-space: pre-wrap;
780 /* This is necessary to fix layout issues with multi-line descriptions, see
782 outline: solid transparent;
790 #detail-contributions {
792 border: 1px solid #666699;
795 background-color: #FFFFCC;
798 #detail-contrib-description {
804 #detail-contrib-suggested {
809 #detail-contrib-btn {
810 list-style-image: url("chrome://mozapps/skin/extensions/heart.png");
813 #detail-contrib-btn .button-icon {
814 -moz-margin-end: 3px;
821 #detail-grid > columns > column:first-child {
825 .detail-row[first-row="true"],
826 .detail-row-complex[first-row="true"],
827 setting[first-row="true"] {
834 border-top: 1px solid #808080;
835 -moz-box-align: center;
843 #detail-view[active="false"]:not([pending]):not([notification]) {
844 /* background-color: foo; */
847 setting[first-row="true"] {
851 .preferences-description {
855 -moz-margin-start: 2em;
858 setting[type="string"] > .setting-input > textbox {
862 setting[type="radio"] > radiogroup {
863 -moz-box-orient: horizontal;
866 menulist { /* Fixes some styling inconsistencies */
867 margin: 1px 5px 2px 5px;
873 -moz-margin-start: 0;
877 .creator > .text-link {
890 .meta-rating > .star {
891 list-style-image: url("chrome://mozapps/skin/extensions/rating-not-won.png");
895 .meta-rating > .star[on="true"] {
896 list-style-image: url("chrome://mozapps/skin/extensions/rating-won.png");
900 /*** download progress ***/
903 background-color: #CCD0DD;
904 border: 1px solid #808080;
910 .download-progress[mode="undetermined"] .status-container {
914 .download-progress .start-cap,
915 .download-progress[complete] .end-cap,
916 .download-progress[mode="undetermined"] .end-cap,
917 .download-progress .progress .progress-bar {
918 background-color: #336699;
921 .download-progress .progress .progress-bar {
922 border-left-width: 0;
923 border-right-width: 0;
927 .download-progress .progress {
928 background-color: transparent;
934 .download-progress .start-cap, .download-progress .end-cap {
938 .download-progress .start-cap:-moz-locale-dir(ltr),
939 .download-progress .end-cap:-moz-locale-dir(rtl) {
940 border-radius: 3px 0 0 3px;
943 .download-progress .end-cap:-moz-locale-dir(ltr),
944 .download-progress .start-cap:-moz-locale-dir(rtl) {
945 border-radius: 0 3px 3px 0;
948 .download-progress .cancel {
949 -moz-appearance: none;
950 background-color: #CCD0DD;
951 border: 1px solid #666699;
957 .download-progress .cancel .button-box {
962 .download-progress .cancel .button-text {
966 .download-progress .cancel .button-icon {
967 -moz-margin-start: 0;
970 .download-progress .cancel {
971 list-style-image: url('chrome://mozapps/skin/extensions/cancel.png');
974 .download-progress .status-container {
975 -moz-box-align: center;
978 .download-progress .status {
979 /* text-shadow: #FFF 0 0 2px; */
982 /*** install status ***/
985 -moz-box-align: center;
989 /*** check for updates ***/
992 -moz-box-align: center;
995 #updates-container .button-link {
1000 #updates-downloaded {
1011 .addon-control[disabled="true"] {
1015 button.button-link {
1016 background: transparent;
1018 text-decoration: underline;
1025 /* Needed to override normal button style from inContent.css */
1026 button.button-link:not([disabled="true"]):active:hover {