Commit | Line | Data |
---|---|---|
f6e0a33f | 1 | /* ***** BEGIN LICENSE BLOCK ***** |
2 | * Version: NPL 1.1/GPL 2.0/LGPL 2.1 | |
3 | * | |
4 | * The contents of this file are subject to the Netscape Public License | |
5 | * Version 1.1 (the "License"); you may not use this file except in | |
6 | * compliance with the License. You may obtain a copy of the License at | |
7 | * http://www.mozilla.org/NPL/ | |
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 mozilla.org code. | |
15 | * | |
76983f4c | 16 | * The Initial Developer of the Original Code is |
f6e0a33f | 17 | * Netscape Communications Corporation. |
18 | * Portions created by the Initial Developer are Copyright (C) 1998 | |
19 | * the Initial Developer. All Rights Reserved. | |
20 | * | |
21 | * Contributor(s): | |
22 | * Ben Goodger <ben@netscape.com> | |
23 | * Josh Soref <timeless@mac.com> | |
76983f4c | 24 | * Dan Cannon <dc2@myrealbox.com> |
128000f4 | 25 | * Robert Kaiser <KaiRo@KaiRo.at> |
f6e0a33f | 26 | * |
27 | * Alternatively, the contents of this file may be used under the terms of | |
76983f4c | 28 | * either the GNU General Public License Version 2 or later (the "GPL"), or |
f6e0a33f | 29 | * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), |
30 | * in which case the provisions of the GPL or the LGPL are applicable instead | |
31 | * of those above. If you wish to allow use of your version of this file only | |
32 | * under the terms of either the GPL or the LGPL, and not to allow others to | |
33 | * use your version of this file under the terms of the NPL, indicate your | |
34 | * decision by deleting the provisions above and replace them with the notice | |
35 | * and other provisions required by the GPL or the LGPL. If you do not delete | |
36 | * the provisions above, a recipient may use your version of this file under | |
37 | * the terms of any one of the NPL, the GPL or the LGPL. | |
38 | * | |
39 | * ***** END LICENSE BLOCK ***** */ | |
40 | ||
128000f4 | 41 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
42 | ||
76983f4c | 43 | /** |
44 | * Style rules for generic bookmarks items. | |
45 | */ | |
46 | ||
1d7eeb22 RK |
47 | treechildren::-moz-tree-image(Name), |
48 | treechildren::-moz-tree-image(title) { | |
a59b9464 | 49 | -moz-padding-end: 2px; |
f6e0a33f | 50 | } |
76983f4c | 51 | |
52 | .bookmark-item, | |
1d7eeb22 RK |
53 | treechildren::-moz-tree-image(Name), |
54 | treechildren::-moz-tree-image(title) { | |
f6e0a33f | 55 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.gif"); |
56 | } | |
57 | ||
76983f4c | 58 | .bookmark-item[container="true"], |
1d7eeb22 RK |
59 | treechildren::-moz-tree-image(Name, container), |
60 | treechildren::-moz-tree-image(title, container) { | |
f6e0a33f | 61 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif"); |
62 | } | |
63 | ||
76983f4c | 64 | .bookmark-item[open="true"], |
1d7eeb22 RK |
65 | treechildren::-moz-tree-image(Name, open), |
66 | treechildren::-moz-tree-image(title, open) { | |
f6e0a33f | 67 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif"); |
68 | } | |
69 | ||
70 | .bookmark-item[container="true"][open="true"][loading="true"] { | |
74d14f90 | 71 | list-style-image: url("chrome://global/skin/icons/loading.gif") !important; |
f6e0a33f | 72 | } |
73 | ||
74d14f90 | 74 | .bookmark-item > .menu-iconic-left { |
75 | height: 16px; | |
76 | } | |
77 | ||
74d14f90 | 78 | toolbarbutton.bookmark-item > .toolbarbutton-menu-dropmarker { |
79 | display: none; | |
80 | } | |
81 | ||
d84b9613 | 82 | .bookmark-item > .toolbarbutton-icon { |
74d14f90 | 83 | list-style-image: inherit; |
d84b9613 | 84 | max-height: 16px; |
85 | max-width: 16px; | |
74d14f90 | 86 | } |
d36c7ec4 | 87 | |
0ef1663c RK |
88 | /* calendar icon for folders grouping items by day */ |
89 | treechildren::-moz-tree-image(Name, query, dayContainer) { | |
90 | list-style-image: url("chrome://communicator/skin/history/calendar.png"); | |
91 | } | |
92 | ||
1d7eeb22 RK |
93 | .bookmark-item[container][livemark], |
94 | treechildren::-moz-tree-image(title, container, livemark) { | |
95 | list-style-image: url("chrome://communicator/skin/bookmarks/livemark-folder.png"); | |
96 | -moz-image-region: auto; | |
97 | } | |
98 | ||
99 | .bookmark-item[container][livemark] .bookmark-item, | |
100 | treechildren::-moz-tree-image(title, livemarkItem) { | |
101 | list-style-image: url("chrome://communicator/skin/bookmarks/livemark-item.png"); | |
102 | } | |
103 | ||
104 | treechildren::-moz-tree-image(container, OrganizerQuery_AllBookmarks) { | |
105 | list-style-image: url("chrome://communicator/skin/bookmarks/allBookmarks.png"); | |
106 | -moz-image-region: auto; | |
107 | } | |
108 | ||
109 | #bookmarksToolbarFolderMenu, | |
110 | #BMB_bookmarksToolbarFolderMenu, | |
111 | treechildren::-moz-tree-image(container, OrganizerQuery_BookmarksToolbar) { | |
112 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png"); | |
113 | -moz-image-region: auto; | |
114 | } | |
115 | ||
116 | treechildren::-moz-tree-image(container, OrganizerQuery_BookmarksMenu) { | |
117 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmarksMenu.png"); | |
118 | -moz-image-region: auto; | |
119 | } | |
120 | ||
121 | #unsortedBookmarksFolderMenu, | |
d3d79c39 | 122 | #BMB_unsortedBookmarksFolderMenu, |
1d7eeb22 RK |
123 | treechildren::-moz-tree-image(container, OrganizerQuery_UnfiledBookmarks) { |
124 | list-style-image: url("chrome://communicator/skin/bookmarks/unsortedBookmarks.png"); | |
125 | -moz-image-region: auto; | |
126 | } | |
127 | ||
128 | /* query-nodes should be styled even if they're not expandable */ | |
129 | .bookmark-item[container][query], | |
130 | treechildren::-moz-tree-image(title, query) { | |
131 | list-style-image: url("chrome://communicator/skin/bookmarks/query.png"); | |
132 | -moz-image-region: auto; | |
133 | } | |
134 | ||
135 | .bookmark-item[query][tagContainer], | |
136 | treechildren::-moz-tree-image(title, query, tagContainer), | |
137 | treechildren::-moz-tree-image(query, OrganizerQuery_Tags) { | |
138 | list-style-image: url("chrome://mozapps/skin/places/tagContainerIcon.png"); | |
139 | -moz-image-region: auto; | |
140 | } | |
141 | ||
142 | treechildren::-moz-tree-image(Name, separator), | |
143 | treechildren::-moz-tree-image(title, separator) { | |
b618d1fd | 144 | list-style-image: none; |
145 | } | |
146 | ||
1d7eeb22 RK |
147 | treechildren::-moz-tree-cell-text(Name, separator), |
148 | treechildren::-moz-tree-cell-text(title, separator) { | |
b618d1fd | 149 | color: #808080; |
02920d2b | 150 | margin: 0px 5px; |
b618d1fd | 151 | } |
152 | ||
1d7eeb22 RK |
153 | treechildren::-moz-tree-cell-text(Name, separator, selected, focus), |
154 | treechildren::-moz-tree-cell-text(title, separator, selected, focus) { | |
b618d1fd | 155 | color: #FFFFFF; |
156 | } |