Commit | Line | Data |
---|---|---|
9099c61d RK |
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 | |
3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
351107c9 | 4 | |
5 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
6 | ||
3d6dd546 | 7 | /** |
8 | * Style rules for generic bookmarks items. | |
9 | */ | |
10 | ||
1d7eeb22 RK |
11 | treechildren::-moz-tree-image(Name), |
12 | treechildren::-moz-tree-image(title) { | |
a59b9464 | 13 | -moz-padding-end: 2px; |
351107c9 | 14 | } |
3d6dd546 | 15 | |
16 | .bookmark-item, | |
1d7eeb22 RK |
17 | treechildren::-moz-tree-image(Name), |
18 | treechildren::-moz-tree-image(title) { | |
351107c9 | 19 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.gif"); |
20 | } | |
21 | ||
3d6dd546 | 22 | .bookmark-item[container="true"], |
1d7eeb22 RK |
23 | treechildren::-moz-tree-image(Name, container), |
24 | treechildren::-moz-tree-image(title, container) { | |
351107c9 | 25 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif"); |
26 | } | |
27 | ||
3d6dd546 | 28 | .bookmark-item[open="true"], |
1d7eeb22 RK |
29 | treechildren::-moz-tree-image(Name, open), |
30 | treechildren::-moz-tree-image(title, open) { | |
351107c9 | 31 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif"); |
32 | } | |
33 | ||
34 | .bookmark-item[container="true"][open="true"][loading="true"] { | |
b1eaa419 | 35 | list-style-image: url("chrome://global/skin/icons/loading.gif") !important; |
351107c9 | 36 | } |
37 | ||
b1eaa419 | 38 | .bookmark-item > .menu-iconic-left { |
39 | height: 16px; | |
40 | } | |
41 | ||
b1eaa419 | 42 | toolbarbutton.bookmark-item > .toolbarbutton-menu-dropmarker { |
43 | display: none; | |
44 | } | |
45 | ||
d84b9613 | 46 | .bookmark-item > .toolbarbutton-icon { |
b1eaa419 | 47 | list-style-image: inherit; |
d84b9613 | 48 | max-height: 16px; |
49 | max-width: 16px; | |
b1eaa419 | 50 | } |
2b722888 | 51 | |
0ef1663c RK |
52 | /* calendar icon for folders grouping items by day */ |
53 | treechildren::-moz-tree-image(Name, query, dayContainer) { | |
54 | list-style-image: url("chrome://communicator/skin/history/calendar.png"); | |
55 | } | |
56 | ||
1d7eeb22 RK |
57 | .bookmark-item[container][livemark], |
58 | treechildren::-moz-tree-image(title, container, livemark) { | |
59 | list-style-image: url("chrome://communicator/skin/bookmarks/livemark-folder.png"); | |
60 | -moz-image-region: auto; | |
61 | } | |
62 | ||
63 | .bookmark-item[container][livemark] .bookmark-item, | |
64 | treechildren::-moz-tree-image(title, livemarkItem) { | |
65 | list-style-image: url("chrome://communicator/skin/bookmarks/livemark-item.png"); | |
719b06bc RK |
66 | -moz-image-region: rect(0px, 16px, 16px, 0px); |
67 | } | |
68 | ||
69 | .bookmark-item[container][livemark] .bookmark-item[visited], | |
70 | treechildren::-moz-tree-image(title, livemarkItem, visited) { | |
71 | -moz-image-region: rect(0px, 32px, 16px, 16px); | |
1d7eeb22 RK |
72 | } |
73 | ||
74 | treechildren::-moz-tree-image(container, OrganizerQuery_AllBookmarks) { | |
75 | list-style-image: url("chrome://communicator/skin/bookmarks/allBookmarks.png"); | |
76 | -moz-image-region: auto; | |
77 | } | |
78 | ||
79 | #bookmarksToolbarFolderMenu, | |
80 | #BMB_bookmarksToolbarFolderMenu, | |
81 | treechildren::-moz-tree-image(container, OrganizerQuery_BookmarksToolbar) { | |
82 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png"); | |
83 | -moz-image-region: auto; | |
84 | } | |
85 | ||
86 | treechildren::-moz-tree-image(container, OrganizerQuery_BookmarksMenu) { | |
87 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmarksMenu.png"); | |
88 | -moz-image-region: auto; | |
89 | } | |
90 | ||
91 | #unsortedBookmarksFolderMenu, | |
d3d79c39 | 92 | #BMB_unsortedBookmarksFolderMenu, |
1d7eeb22 RK |
93 | treechildren::-moz-tree-image(container, OrganizerQuery_UnfiledBookmarks) { |
94 | list-style-image: url("chrome://communicator/skin/bookmarks/unsortedBookmarks.png"); | |
95 | -moz-image-region: auto; | |
96 | } | |
97 | ||
98 | /* query-nodes should be styled even if they're not expandable */ | |
99 | .bookmark-item[container][query], | |
100 | treechildren::-moz-tree-image(title, query) { | |
101 | list-style-image: url("chrome://communicator/skin/bookmarks/query.png"); | |
102 | -moz-image-region: auto; | |
103 | } | |
104 | ||
105 | .bookmark-item[query][tagContainer], | |
106 | treechildren::-moz-tree-image(title, query, tagContainer), | |
107 | treechildren::-moz-tree-image(query, OrganizerQuery_Tags) { | |
108 | list-style-image: url("chrome://mozapps/skin/places/tagContainerIcon.png"); | |
109 | -moz-image-region: auto; | |
110 | } | |
111 | ||
112 | treechildren::-moz-tree-image(Name, separator), | |
113 | treechildren::-moz-tree-image(title, separator) { | |
ac1cdf20 | 114 | list-style-image: none; |
115 | } | |
116 | ||
1d7eeb22 RK |
117 | treechildren::-moz-tree-cell-text(Name, separator), |
118 | treechildren::-moz-tree-cell-text(title, separator) { | |
ac1cdf20 | 119 | color: #E7ADE7; |
02920d2b | 120 | margin: 0px 5px; |
ac1cdf20 | 121 | } |
122 | ||
1d7eeb22 RK |
123 | treechildren::-moz-tree-cell-text(Name, separator, selected, focus), |
124 | treechildren::-moz-tree-cell-text(title, separator, selected, focus) { | |
ac1cdf20 | 125 | /* color: #FFCF00; */ |
126 | } | |
01d40f5a RK |
127 | |
128 | /* sidebar panel */ | |
129 | ||
130 | #bookmarksPanel, | |
131 | #history-panel { | |
132 | padding: 0; | |
133 | } | |
134 | ||
135 | #sidebar-search-container > #search-box, | |
136 | #history-panel > hbox > #search-box { | |
137 | margin: 0; | |
138 | } | |
139 | ||
140 | #sidebar-search-container > #search-box, | |
141 | #history-panel > hbox { | |
142 | margin-bottom: 3px; | |
143 | } |