|
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/. */ |
|
4 |
|
5 /* Sidebars */ |
|
6 .sidebar-placesTree { |
|
7 margin: 0; |
|
8 } |
|
9 |
|
10 .sidebar-placesTreechildren::-moz-tree-cell(leaf) , |
|
11 .sidebar-placesTreechildren::-moz-tree-image(leaf) { |
|
12 cursor: pointer; |
|
13 } |
|
14 |
|
15 .sidebar-placesTreechildren::-moz-tree-cell-text(leaf, hover) { |
|
16 cursor: pointer; |
|
17 text-decoration: underline; |
|
18 } |
|
19 |
|
20 .sidebar-placesTreechildren::-moz-tree-cell(separator) { |
|
21 cursor: default; |
|
22 } |
|
23 |
|
24 /* Trees */ |
|
25 treechildren::-moz-tree-image(title) { |
|
26 padding-right: 2px; |
|
27 margin: 0px 2px; |
|
28 width: 16px; |
|
29 height: 16px; |
|
30 list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png"); |
|
31 } |
|
32 |
|
33 treechildren::-moz-tree-image(title, livemarkItem) { |
|
34 list-style-image: url("chrome://browser/skin/places/livemark-item.png"); |
|
35 -moz-image-region: rect(0px, 16px, 16px, 0px); |
|
36 } |
|
37 |
|
38 treechildren::-moz-tree-image(title, livemarkItem, visited) { |
|
39 -moz-image-region: rect(0px, 32px, 16px, 16px); |
|
40 } |
|
41 |
|
42 treechildren::-moz-tree-image(title, separator) { |
|
43 list-style-image: none; |
|
44 width: 0; |
|
45 height: 0; |
|
46 } |
|
47 |
|
48 treechildren::-moz-tree-image(title, container) { |
|
49 list-style-image: url("moz-icon://stock/gtk-directory?size=menu"); |
|
50 } |
|
51 |
|
52 treechildren::-moz-tree-image(title, container, livemark) { |
|
53 list-style-image: url("chrome://browser/skin/feeds/feedIcon16.png"); |
|
54 -moz-image-region: auto; |
|
55 } |
|
56 |
|
57 treechildren::-moz-tree-image(container, OrganizerQuery_AllBookmarks) { |
|
58 list-style-image: url("chrome://browser/skin/Toolbar-small.png"); |
|
59 -moz-image-region: rect(0px 48px 16px 32px); |
|
60 } |
|
61 |
|
62 treechildren::-moz-tree-image(container, OrganizerQuery_BookmarksToolbar) { |
|
63 list-style-image: url("chrome://browser/skin/places/bookmarksToolbar.png"); |
|
64 -moz-image-region: auto; |
|
65 } |
|
66 |
|
67 treechildren::-moz-tree-image(container, OrganizerQuery_BookmarksMenu) { |
|
68 list-style-image: url("chrome://browser/skin/places/bookmarksMenu.png"); |
|
69 -moz-image-region: auto; |
|
70 } |
|
71 |
|
72 treechildren::-moz-tree-image(container, OrganizerQuery_UnfiledBookmarks) { |
|
73 list-style-image: url("chrome://browser/skin/places/unsortedBookmarks.png"); |
|
74 -moz-image-region: auto; |
|
75 } |
|
76 |
|
77 /* query-nodes should be styled even if they're not expandable */ |
|
78 treechildren::-moz-tree-image(title, query) { |
|
79 list-style-image: url("chrome://browser/skin/places/query.png"); |
|
80 } |
|
81 |
|
82 treechildren::-moz-tree-image(query, OrganizerQuery_Downloads) { |
|
83 list-style-image: url("chrome://browser/skin/places/downloads.png"); |
|
84 -moz-image-region: auto; |
|
85 } |
|
86 |
|
87 treechildren::-moz-tree-image(title, query, tagContainer), |
|
88 treechildren::-moz-tree-image(query, OrganizerQuery_Tags) { |
|
89 list-style-image: url("chrome://browser/skin/places/tag.png"); |
|
90 } |
|
91 |
|
92 /* calendar icon for folders grouping items by date */ |
|
93 treechildren::-moz-tree-image(title, query, dayContainer) { |
|
94 list-style-image: url("chrome://browser/skin/places/calendar.png"); |
|
95 } |
|
96 |
|
97 treechildren::-moz-tree-image(title, query, hostContainer) { |
|
98 list-style-image: url("moz-icon://stock/gtk-directory?size=menu"); |
|
99 } |
|
100 |
|
101 treechildren::-moz-tree-image(title, query, hostContainer, open) { |
|
102 list-style-image: url("moz-icon://stock/gtk-directory?size=menu"); |
|
103 } |
|
104 |
|
105 treechildren::-moz-tree-image(title, query, OrganizerQuery_History) { |
|
106 list-style-image: url("chrome://browser/skin/Toolbar-small.png"); |
|
107 -moz-image-region: rect(0px 32px 16px 16px); |
|
108 } |
|
109 |
|
110 /* We want some queries to look like ordinary folders. This must come |
|
111 after the (title, query) selector, or it would get overridden. */ |
|
112 treechildren::-moz-tree-image(title, query, folder) { |
|
113 list-style-image: url("moz-icon://stock/gtk-directory?size=menu"); |
|
114 } |
|
115 |
|
116 treechildren::-moz-tree-image(cutting) { |
|
117 opacity: 0.5; |
|
118 } |
|
119 |
|
120 treechildren::-moz-tree-cell-text(cutting) { |
|
121 opacity: 0.7; |
|
122 } |
|
123 |
|
124 /**** menuitem stock icons ****/ |
|
125 menuitem:not([type]) { |
|
126 -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic"); |
|
127 } |
|
128 |
|
129 menuitem[command="cmd_cut"], |
|
130 menuitem[cmd="cmd_cut"] { |
|
131 list-style-image: url("moz-icon://stock/gtk-cut?size=menu"); |
|
132 } |
|
133 |
|
134 menuitem[command="cmd_cut"][disabled], |
|
135 menuitem[cmd="cmd_cut"][disabled] { |
|
136 list-style-image: url("moz-icon://stock/gtk-cut?size=menu&state=disabled"); |
|
137 } |
|
138 |
|
139 menuitem[command="cmd_copy"], |
|
140 menuitem[cmd="cmd_copy"] { |
|
141 list-style-image: url("moz-icon://stock/gtk-copy?size=menu"); |
|
142 } |
|
143 |
|
144 menuitem[command="cmd_copy"][disabled], |
|
145 menuitem[cmd="cmd_copy"][disabled] { |
|
146 list-style-image: url("moz-icon://stock/gtk-copy?size=menu&state=disabled"); |
|
147 } |
|
148 |
|
149 menuitem[command="cmd_paste"], |
|
150 menuitem[cmd="cmd_paste"] { |
|
151 list-style-image: url("moz-icon://stock/gtk-paste?size=menu"); |
|
152 } |
|
153 |
|
154 menuitem[command="cmd_paste"][disabled], |
|
155 menuitem[cmd="cmd_paste"][disabled] { |
|
156 list-style-image: url("moz-icon://stock/gtk-paste?size=menu&state=disabled"); |
|
157 } |
|
158 |
|
159 menuitem[command="cmd_delete"], |
|
160 menuitem[cmd="cmd_delete"] { |
|
161 list-style-image: url("moz-icon://stock/gtk-delete?size=menu"); |
|
162 } |
|
163 |
|
164 menuitem[command="cmd_delete"][disabled], |
|
165 menuitem[cmd="cmd_delete"][disabled] { |
|
166 list-style-image: url("moz-icon://stock/gtk-delete?size=menu&state=disabled"); |
|
167 } |
|
168 |
|
169 menuitem[command="cmd_undo"], |
|
170 menuitem[cmd="cmd_undo"] { |
|
171 list-style-image: url("moz-icon://stock/gtk-undo?size=menu"); |
|
172 } |
|
173 |
|
174 menuitem[command="cmd_undo"][disabled], |
|
175 menuitem[cmd="cmd_undo"][disabled] { |
|
176 list-style-image: url("moz-icon://stock/gtk-undo?size=menu&state=disabled"); |
|
177 } |
|
178 |
|
179 menuitem[command="cmd_redo"] { |
|
180 list-style-image: url("moz-icon://stock/gtk-redo?size=menu"); |
|
181 } |
|
182 |
|
183 menuitem[command="cmd_redo"][disabled] { |
|
184 list-style-image: url("moz-icon://stock/gtk-redo?size=menu&state=disabled"); |
|
185 } |
|
186 |
|
187 menuitem[command="cmd_selectAll"], |
|
188 menuitem[cmd="cmd_selectAll"] { |
|
189 list-style-image: url("moz-icon://stock/gtk-select-all?size=menu"); |
|
190 } |
|
191 |
|
192 menuitem[command="cmd_selectAll"][disabled], |
|
193 menuitem[cmd="cmd_selectAll"][disabled] { |
|
194 list-style-image: url("moz-icon://stock/gtk-select-all?size=menu&state=disabled"); |
|
195 } |
|
196 |
|
197 #placesContext_open\:newwindow, |
|
198 menuitem[command="placesCmd_open:window"] { |
|
199 list-style-image: url("chrome://browser/skin/Toolbar-small.png"); |
|
200 -moz-image-region: rect(0px 80px 16px 64px); |
|
201 } |
|
202 |
|
203 #placesContext_open\:newtab, |
|
204 menuitem[command="placesCmd_open:tab"] { |
|
205 list-style-image: url("chrome://browser/skin/Toolbar-small.png"); |
|
206 -moz-image-region: rect(0px 64px 16px 48px); |
|
207 } |
|
208 |
|
209 #placesContext_show\:info, |
|
210 menuitem[command="placesCmd_show:info"] { |
|
211 list-style-image: url("moz-icon://stock/gtk-properties?size=menu"); |
|
212 } |
|
213 |
|
214 #placesContext_reload { |
|
215 list-style-image: url("moz-icon://stock/gtk-refresh?size=menu"); |
|
216 } |