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