| 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 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
| 6 | |
| 7 | /** |
| 8 | * Style rules for generic bookmarks items. |
| 9 | */ |
| 10 | |
| 11 | treechildren::-moz-tree-image(Name), |
| 12 | treechildren::-moz-tree-image(title) { |
| 13 | padding-inline-end: 2px; |
| 14 | } |
| 15 | |
| 16 | .bookmark-item, |
| 17 | treechildren::-moz-tree-image(Name), |
| 18 | treechildren::-moz-tree-image(title) { |
| 19 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.gif"); |
| 20 | } |
| 21 | |
| 22 | .bookmark-item[container="true"], |
| 23 | treechildren::-moz-tree-image(Name, container), |
| 24 | treechildren::-moz-tree-image(title, container) { |
| 25 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif"); |
| 26 | } |
| 27 | |
| 28 | .bookmark-item[open="true"], |
| 29 | treechildren::-moz-tree-image(Name, open), |
| 30 | treechildren::-moz-tree-image(title, open) { |
| 31 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif"); |
| 32 | } |
| 33 | |
| 34 | .bookmark-item[container="true"][open="true"][loading="true"] { |
| 35 | list-style-image: url("chrome://global/skin/icons/loading.gif") !important; |
| 36 | } |
| 37 | |
| 38 | .bookmark-item > .menu-iconic-left { |
| 39 | height: 16px; |
| 40 | } |
| 41 | |
| 42 | toolbarbutton.bookmark-item > .toolbarbutton-menu-dropmarker { |
| 43 | display: none; |
| 44 | } |
| 45 | |
| 46 | .bookmark-item > .toolbarbutton-icon { |
| 47 | list-style-image: inherit; |
| 48 | max-height: 16px; |
| 49 | max-width: 16px; |
| 50 | } |
| 51 | |
| 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 | |
| 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"); |
| 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); |
| 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, |
| 92 | #BMB_unsortedBookmarksFolderMenu, |
| 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) { |
| 114 | list-style-image: none; |
| 115 | } |
| 116 | |
| 117 | treechildren::-moz-tree-cell-text(Name, separator), |
| 118 | treechildren::-moz-tree-cell-text(title, separator) { |
| 119 | color: #E7ADE7; |
| 120 | margin: 0px 5px; |
| 121 | } |
| 122 | |
| 123 | treechildren::-moz-tree-cell-text(Name, separator, selected, focus), |
| 124 | treechildren::-moz-tree-cell-text(title, separator, selected, focus) { |
| 125 | /* color: #FFCF00; */ |
| 126 | } |
| 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 | } |