Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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/. */
5 /* Sidebars */
6 .sidebar-placesTree {
7 -moz-appearance: none;
8 border: 0;
9 margin: 0;
10 border-top: 1px solid ThreeDShadow;
11 }
13 .sidebar-placesTreechildren::-moz-tree-cell(leaf) ,
14 .sidebar-placesTreechildren::-moz-tree-image(leaf) {
15 cursor: pointer;
16 }
18 .sidebar-placesTreechildren::-moz-tree-cell-text(leaf, hover) {
19 cursor: pointer;
20 text-decoration: underline;
21 }
23 .sidebar-placesTreechildren::-moz-tree-cell(separator) {
24 cursor: default;
25 }
27 /* Trees */
28 treechildren::-moz-tree-image(title) {
29 list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
30 padding-right: 2px;
31 margin: 0px 2px;
32 width: 16px;
33 height: 16px;
34 }
36 treechildren::-moz-tree-image(title, livemarkItem) {
37 list-style-image: url("chrome://browser/skin/places/livemark-item.png");
38 -moz-image-region: rect(0px, 16px, 16px, 0px);
39 }
41 treechildren::-moz-tree-image(title, livemarkItem, visited) {
42 -moz-image-region: rect(0px, 32px, 16px, 16px);
43 }
45 treechildren::-moz-tree-image(title, separator) {
46 list-style-image: none;
47 width: 0;
48 height: 0;
49 }
51 treechildren::-moz-tree-image(title, container) {
52 list-style-image: url("chrome://global/skin/icons/folder-item.png");
53 -moz-image-region: rect(0px, 32px, 16px, 16px);
54 }
56 treechildren::-moz-tree-image(title, open) {
57 -moz-image-region: rect(16px, 32px, 32px, 16px);
58 }
60 treechildren::-moz-tree-image(title, container, livemark) {
61 list-style-image: url("chrome://browser/skin/livemark-folder.png");
62 -moz-image-region: auto;
63 }
65 treechildren::-moz-tree-image(container, OrganizerQuery_AllBookmarks) {
66 list-style-image: url("chrome://browser/skin/places/allBookmarks.png");
67 -moz-image-region: auto;
68 }
70 treechildren::-moz-tree-image(container, OrganizerQuery_BookmarksToolbar) {
71 list-style-image: url("chrome://browser/skin/places/bookmarksToolbar.png");
72 -moz-image-region: auto;
73 }
75 treechildren::-moz-tree-image(container, OrganizerQuery_BookmarksMenu) {
76 list-style-image: url("chrome://browser/skin/places/bookmarksMenu.png");
77 -moz-image-region: auto;
78 }
80 treechildren::-moz-tree-image(container, OrganizerQuery_UnfiledBookmarks) {
81 list-style-image: url("chrome://browser/skin/places/unsortedBookmarks.png");
82 -moz-image-region: auto;
83 }
85 /* query-nodes should be styled even if they're not expandable */
86 treechildren::-moz-tree-image(title, query) {
87 list-style-image: url("chrome://browser/skin/places/query.png");
88 -moz-image-region: auto;
89 }
91 treechildren::-moz-tree-image(title, query, tagContainer),
92 treechildren::-moz-tree-image(query, OrganizerQuery_Tags) {
93 list-style-image: url("chrome://browser/skin/places/tag.png");
94 -moz-image-region: auto;
95 }
97 treechildren::-moz-tree-image(query, OrganizerQuery_Downloads) {
98 list-style-image: url("chrome://browser/skin/places/downloads.png");
99 -moz-image-region: auto;
100 }
102 /* calendar icon for folders grouping items by date */
103 treechildren::-moz-tree-image(title, query, dayContainer) {
104 list-style-image: url("chrome://browser/skin/places/calendar.png");
105 -moz-image-region: auto;
106 }
108 treechildren::-moz-tree-image(title, query, hostContainer) {
109 list-style-image: url("chrome://global/skin/icons/folder-item.png");
110 -moz-image-region: rect(0px, 32px, 16px, 16px);
111 }
113 treechildren::-moz-tree-image(title, query, hostContainer, open) {
114 list-style-image: url("chrome://global/skin/icons/folder-item.png");
115 -moz-image-region: rect(16px, 32px, 32px, 16px);
116 }
118 treechildren::-moz-tree-image(title, query, OrganizerQuery_History) {
119 list-style-image: url("chrome://browser/skin/places/history.png");
120 }
122 /* We want some queries to look like ordinary folders. This must come
123 after the (title, query) selector, or it would get overridden. */
124 treechildren::-moz-tree-image(title, query, folder) {
125 list-style-image: url("chrome://global/skin/icons/folder-item.png");
126 -moz-image-region: rect(0px, 32px, 16px, 16px);
127 }
129 treechildren::-moz-tree-image(title, query, folder, open) {
130 -moz-image-region: rect(16px, 32px, 32px, 16px);
131 }
133 treechildren::-moz-tree-image(cutting) {
134 opacity: 0.5;
135 }
137 treechildren::-moz-tree-cell-text(cutting) {
138 opacity: 0.7;
139 }
141 /* Browser Sidebars */
143 /* Default button vert. margins are 1px/2px, and this can cause misalignment */
144 #viewButton {
145 margin-top: 2px;
146 margin-bottom: 2px;
147 }
149 #viewButton > .button-box > .button-menu-dropmarker {
150 height: auto;
151 width: auto;
152 -moz-margin-end: -3px;
153 }