| 1 | /* ***** BEGIN LICENSE BLOCK ***** |
| 2 | * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 3 | * |
| 4 | * The contents of this file are subject to the Mozilla Public License Version |
| 5 | * 1.1 (the "License"); you may not use this file except in compliance with |
| 6 | * the License. You may obtain a copy of the License at |
| 7 | * http://www.mozilla.org/MPL/ |
| 8 | * |
| 9 | * Software distributed under the License is distributed on an "AS IS" basis, |
| 10 | * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
| 11 | * for the specific language governing rights and limitations under the |
| 12 | * License. |
| 13 | * |
| 14 | * The Original Code is "Classic" theme of mozilla.org code. |
| 15 | * |
| 16 | * The Initial Developer of the Original Code is |
| 17 | * the Mozilla Organization. |
| 18 | * Portions created by the Initial Developer are Copyright (C) 1998-2001 |
| 19 | * the Initial Developer. All Rights Reserved. |
| 20 | * |
| 21 | * Contributor(s): |
| 22 | * Robert Kaiser <KaiRo@KaiRo.at> |
| 23 | * |
| 24 | * Alternatively, the contents of this file may be used under the terms of |
| 25 | * either the GNU General Public License Version 2 or later (the "GPL"), or |
| 26 | * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), |
| 27 | * in which case the provisions of the GPL or the LGPL are applicable instead |
| 28 | * of those above. If you wish to allow use of your version of this file only |
| 29 | * under the terms of either the GPL or the LGPL, and not to allow others to |
| 30 | * use your version of this file under the terms of the MPL, indicate your |
| 31 | * decision by deleting the provisions above and replace them with the notice |
| 32 | * and other provisions required by the GPL or the LGPL. If you do not delete |
| 33 | * the provisions above, a recipient may use your version of this file under |
| 34 | * the terms of any one of the MPL, the GPL or the LGPL. |
| 35 | * |
| 36 | * ***** END LICENSE BLOCK ***** */ |
| 37 | |
| 38 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
| 39 | |
| 40 | /* ===== tree.css ======================================================= |
| 41 | == Styles used by the XUL tree element. |
| 42 | ======================================================================= */ |
| 43 | |
| 44 | /* ::::: tree ::::: */ |
| 45 | |
| 46 | tree { |
| 47 | -moz-border-radius: 5px; |
| 48 | border-spacing: 0px; |
| 49 | border: 1px solid #9C9CFF; |
| 50 | background-color: #000000; |
| 51 | color: #FF9F00; |
| 52 | } |
| 53 | |
| 54 | /* ::::: tree rows ::::: */ |
| 55 | |
| 56 | treechildren:-moz-tree-row { |
| 57 | border: 1px solid transparent; |
| 58 | min-height: 18px; |
| 59 | height: 1.3em; |
| 60 | } |
| 61 | |
| 62 | treechildren:-moz-tree-row(selected) { |
| 63 | background-color: #008484; |
| 64 | color: #FFCF00; |
| 65 | } |
| 66 | |
| 67 | treechildren:-moz-tree-row(selected, focus) { |
| 68 | background-color: #008484; |
| 69 | color: #FFCF00; |
| 70 | } |
| 71 | |
| 72 | treechildren:-moz-tree-row(current, focus) { |
| 73 | border: 1px dotted #008484; |
| 74 | } |
| 75 | |
| 76 | /* ::::: tree cells ::::: */ |
| 77 | |
| 78 | treechildren:-moz-tree-cell { |
| 79 | padding: 0px 0px 1px 2px; |
| 80 | } |
| 81 | |
| 82 | treechildren:-moz-tree-cell-text { |
| 83 | color: inherit; |
| 84 | border: 2px solid transparent; |
| 85 | } |
| 86 | |
| 87 | /* |
| 88 | treechildren:-moz-tree-cell-text(selected) { |
| 89 | color: #FFFFFF; |
| 90 | } |
| 91 | |
| 92 | treechildren:-moz-tree-cell-text(selected, focus) { |
| 93 | color: #FFFFFF; |
| 94 | } |
| 95 | */ |
| 96 | |
| 97 | /* ::::: lines connecting cells ::::: */ |
| 98 | |
| 99 | treechildren:-moz-tree-line { |
| 100 | visibility: hidden; |
| 101 | } |
| 102 | |
| 103 | /* |
| 104 | treechildren:-moz-tree-line { |
| 105 | border: 1px dotted grey; |
| 106 | } |
| 107 | |
| 108 | treechildren:-moz-tree-line(selected) { |
| 109 | border: 1px dotted black; |
| 110 | } |
| 111 | */ |
| 112 | |
| 113 | /* ::::: tree separator ::::: */ |
| 114 | |
| 115 | treechildren:-moz-tree-separator { |
| 116 | border: 1px solid #9C9CFF; |
| 117 | } |
| 118 | |
| 119 | /* ::::: drop feedback ::::: */ |
| 120 | |
| 121 | treechildren:-moz-tree-cell-text(dropOn) { |
| 122 | background-color: #008484; |
| 123 | color: #FFCF00; |
| 124 | } |
| 125 | |
| 126 | treechildren:-moz-tree-drop-feedback { |
| 127 | background-color: #008484; |
| 128 | width: 50px; |
| 129 | height: 2px; |
| 130 | margin-left: 5px; |
| 131 | } |
| 132 | |
| 133 | treechildren:-moz-tree-drop-feedback(selected) { |
| 134 | background-color: #FFCF00; |
| 135 | } |
| 136 | |
| 137 | /* ::::: tree progress meter ::::: */ |
| 138 | |
| 139 | treechildren:-moz-tree-progressmeter { |
| 140 | margin: 0px 0px; |
| 141 | border: 1px solid #FF9F00; |
| 142 | background-color: #000000; |
| 143 | color: #008484; |
| 144 | } |
| 145 | |
| 146 | treechildren:-moz-tree-progressmeter(progressUndetermined) { |
| 147 | list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif"); |
| 148 | background-color: #008484; |
| 149 | } |
| 150 | |
| 151 | treechildren:-moz-tree-cell-text(progressmeter) { |
| 152 | margin: 2px 4px; |
| 153 | } |
| 154 | |
| 155 | /* ::::: tree columns ::::: */ |
| 156 | |
| 157 | treecol { |
| 158 | -moz-box-align: center; |
| 159 | -moz-box-pack: center; |
| 160 | border: 1px solid #FF9F00; |
| 161 | background-color: #9C9CFF; |
| 162 | color: #000000; |
| 163 | padding: 1px 4px; |
| 164 | } |
| 165 | |
| 166 | treecolpicker { |
| 167 | -moz-box-align: center; |
| 168 | -moz-box-pack: center; |
| 169 | border: 1px solid transparent; |
| 170 | background-color: #000000; |
| 171 | padding: 1px 0px; |
| 172 | } |
| 173 | |
| 174 | .treecol-image { |
| 175 | padding: 1px; |
| 176 | } |
| 177 | |
| 178 | .treecol-text { |
| 179 | margin: 0px !important; |
| 180 | padding: 0px !important; |
| 181 | } |
| 182 | |
| 183 | treecol[hideheader="true"] { |
| 184 | border: none; |
| 185 | padding: 0; |
| 186 | } |
| 187 | |
| 188 | /* ..... internal box ..... */ |
| 189 | |
| 190 | treecol:hover:active { |
| 191 | border: 1px solid #FFCF00; |
| 192 | padding: 2px 3px 0px 5px; |
| 193 | } |
| 194 | |
| 195 | treecolpicker:hover { |
| 196 | background-color: #FFCF00; |
| 197 | } |
| 198 | |
| 199 | treecolpicker:hover:active { |
| 200 | border: 1px solid #FFCF00; |
| 201 | background-color: #FF9F00; |
| 202 | } |
| 203 | |
| 204 | .treecol-image:hover:active { |
| 205 | padding: 2px 0px 0px 2px; |
| 206 | } |
| 207 | |
| 208 | /* ::::: column drag and drop styles ::::: */ |
| 209 | |
| 210 | treecol[dragging="true"] { |
| 211 | border: 1px solid transparent; |
| 212 | background-color: #008484; |
| 213 | color: #000000; |
| 214 | } |
| 215 | |
| 216 | treecol[insertafter="true"] { |
| 217 | border-right: 1px solid #FFCF00; |
| 218 | } |
| 219 | |
| 220 | treecol[insertbefore="true"] { |
| 221 | border-left: 1px solid #FFCF00; |
| 222 | } |
| 223 | |
| 224 | treechildren:-moz-tree-column(insertbefore) { |
| 225 | border-left: 1px solid #FFCF00; |
| 226 | } |
| 227 | |
| 228 | treechildren:-moz-tree-column(insertafter) { |
| 229 | border-right: 1px solid #FFCF00; |
| 230 | } |
| 231 | |
| 232 | /* ::::: sort direction indicator ::::: */ |
| 233 | |
| 234 | .treecol-sortdirection { |
| 235 | list-style-image: none; |
| 236 | } |
| 237 | |
| 238 | .sortDirectionIndicator[sortDirection="ascending"] .treecol-sortdirection { |
| 239 | list-style-image: url("chrome://global/skin/tree/sort-asc.gif"); |
| 240 | } |
| 241 | |
| 242 | .sortDirectionIndicator[sortDirection="descending"] .treecol-sortdirection { |
| 243 | list-style-image: url("chrome://global/skin/tree/sort-desc.gif"); |
| 244 | } |
| 245 | |
| 246 | /* ::::: column picker ::::: */ |
| 247 | |
| 248 | .tree-columnpicker-icon { |
| 249 | list-style-image: url("chrome://global/skin/tree/columnpicker.gif"); |
| 250 | } |
| 251 | |
| 252 | treecolpicker:hover > .tree-columnpicker-icon, |
| 253 | treecolpicker:hover:active > .tree-columnpicker-icon { |
| 254 | list-style-image: url("chrome://global/skin/tree/columnpicker-hover.gif"); |
| 255 | } |
| 256 | |
| 257 | /* ::::: twisty ::::: */ |
| 258 | |
| 259 | treechildren:-moz-tree-twisty { |
| 260 | padding-right: 2px; |
| 261 | padding-top: 1px; |
| 262 | width: 11px; /* The image's width is 11 pixels */ |
| 263 | list-style-image: url("chrome://global/skin/tree/twisty-closed.gif"); |
| 264 | } |
| 265 | |
| 266 | treechildren:-moz-tree-twisty(open) { |
| 267 | width: 11px; /* The image's width is 11 pixels */ |
| 268 | list-style-image: url("chrome://global/skin/tree/twisty-open.gif"); |
| 269 | } |
| 270 | |
| 271 | treechildren:-moz-tree-indentation { |
| 272 | width: 11px; |
| 273 | } |
| 274 | |
| 275 | /* ::::: gridline style ::::: */ |
| 276 | |
| 277 | treechildren.gridlines:-moz-tree-cell { |
| 278 | border-right: 1px solid green; |
| 279 | border-bottom: 1px solid green; |
| 280 | } |
| 281 | |
| 282 | treechildren.gridlines:-moz-tree-row { |
| 283 | border: none; |
| 284 | } |