| 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 | * Joe Hewitt (hewitt@netscape.com) |
| 24 | * Dean Tessman (dean_tessman@hotmail.com) |
| 25 | * |
| 26 | * Alternatively, the contents of this file may be used under the terms of |
| 27 | * either the GNU General Public License Version 2 or later (the "GPL"), or |
| 28 | * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), |
| 29 | * in which case the provisions of the GPL or the LGPL are applicable instead |
| 30 | * of those above. If you wish to allow use of your version of this file only |
| 31 | * under the terms of either the GPL or the LGPL, and not to allow others to |
| 32 | * use your version of this file under the terms of the MPL, indicate your |
| 33 | * decision by deleting the provisions above and replace them with the notice |
| 34 | * and other provisions required by the GPL or the LGPL. If you do not delete |
| 35 | * the provisions above, a recipient may use your version of this file under |
| 36 | * the terms of any one of the MPL, the GPL or the LGPL. |
| 37 | * |
| 38 | * ***** END LICENSE BLOCK ***** */ |
| 39 | |
| 40 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
| 41 | |
| 42 | /* ===== tree.css ======================================================= |
| 43 | == Styles used by the XUL tree element. |
| 44 | ======================================================================= */ |
| 45 | |
| 46 | /* ::::: tree ::::: */ |
| 47 | |
| 48 | tree { |
| 49 | -moz-border-radius: 5px; |
| 50 | border-spacing: 0px; |
| 51 | border: 1px solid #9C9CFF; |
| 52 | background-color: #000000; |
| 53 | color: #FF9F00; |
| 54 | } |
| 55 | |
| 56 | /* ::::: tree focusring ::::: */ |
| 57 | |
| 58 | /* deactivated, looks too bad for me in LCARStrek |
| 59 | .focusring > .tree-stack > .tree-rows > .tree-bodybox { |
| 60 | border: 1px solid transparent; |
| 61 | } |
| 62 | |
| 63 | .focusring:focus > .tree-stack > .tree-rows > .tree-bodybox { |
| 64 | border-color: #FFCF00; |
| 65 | } |
| 66 | */ |
| 67 | |
| 68 | /* ::::: tree rows ::::: */ |
| 69 | |
| 70 | treechildren::-moz-tree-row { |
| 71 | border: 1px solid transparent; |
| 72 | background-color: transparent; |
| 73 | min-height: 18px; |
| 74 | height: 1.3em; |
| 75 | } |
| 76 | |
| 77 | treechildren::-moz-tree-row(selected) { |
| 78 | background-color: #008484; |
| 79 | color: #FFCF00; |
| 80 | } |
| 81 | |
| 82 | treechildren::-moz-tree-row(selected, focus) { |
| 83 | background-color: #008484; |
| 84 | color: #FFCF00; |
| 85 | } |
| 86 | |
| 87 | treechildren::-moz-tree-row(current, focus) { |
| 88 | border: 1px dotted #FF9F00; |
| 89 | } |
| 90 | |
| 91 | treechildren::-moz-tree-row(selected, current, focus) { |
| 92 | border: 1px dotted #FF9F00; |
| 93 | } |
| 94 | |
| 95 | tree[seltype="cell"] > treechildren::-moz-tree-row, |
| 96 | tree[seltype="text"] > treechildren::-moz-tree-row { |
| 97 | border: none; |
| 98 | background-color: transparent; |
| 99 | } |
| 100 | |
| 101 | /* ::::: tree cells ::::: */ |
| 102 | |
| 103 | treechildren::-moz-tree-cell { |
| 104 | padding: 0px 0px 1px 2px; |
| 105 | } |
| 106 | |
| 107 | tree[seltype="cell"] > treechildren::-moz-tree-cell-text, |
| 108 | tree[seltype="text"] > treechildren::-moz-tree-cell-text, |
| 109 | treechildren::-moz-tree-cell-text { |
| 110 | color: inherit; |
| 111 | } |
| 112 | |
| 113 | tree[seltype="cell"] > treechildren::-moz-tree-cell { |
| 114 | border: 1px solid transparent; |
| 115 | padding: 0px 1px 0px 1px; |
| 116 | } |
| 117 | |
| 118 | tree[seltype="text"] > treechildren::-moz-tree-cell-text { |
| 119 | border: 1px solid transparent; |
| 120 | padding: 0px 1px 1px 1px; |
| 121 | } |
| 122 | |
| 123 | treechildren::-moz-tree-cell-text(selected) { |
| 124 | color: #FFCF00; |
| 125 | } |
| 126 | |
| 127 | tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected) { |
| 128 | background-color: #008484; |
| 129 | } |
| 130 | tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected) { |
| 131 | color: #FFCF00; |
| 132 | } |
| 133 | |
| 134 | tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected) { |
| 135 | background-color: #008484; |
| 136 | color: #FFCF00; |
| 137 | } |
| 138 | |
| 139 | treechildren::-moz-tree-cell-text(selected, focus) { |
| 140 | color: #FFCF00; |
| 141 | } |
| 142 | |
| 143 | tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, focus) { |
| 144 | background-color: #008484; |
| 145 | } |
| 146 | tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected, focus) { |
| 147 | color: #FFCF00; |
| 148 | } |
| 149 | |
| 150 | tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, focus) { |
| 151 | background-color: #008484; |
| 152 | color: #FFCF00; |
| 153 | } |
| 154 | |
| 155 | tree[seltype="cell"] > treechildren::-moz-tree-cell(active, current, focus) { |
| 156 | border: 1px dotted #FF9F00; |
| 157 | } |
| 158 | |
| 159 | tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, current, focus) { |
| 160 | border: 1px dotted #FF9F00; |
| 161 | } |
| 162 | |
| 163 | tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, current, focus) { |
| 164 | border: 1px dotted #FF9F00; |
| 165 | } |
| 166 | |
| 167 | tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, current, focus) { |
| 168 | border: 1px dotted #FF9F00; |
| 169 | } |
| 170 | |
| 171 | /* ::::: lines connecting cells ::::: */ |
| 172 | |
| 173 | tree[seltype="cell"] > treechildren::-moz-tree-line, |
| 174 | tree[seltype="text"] > treechildren::-moz-tree-line, |
| 175 | treechildren::-moz-tree-line { |
| 176 | visibility: hidden; |
| 177 | } |
| 178 | |
| 179 | /* |
| 180 | tree[seltype="cell"] > treechildren::-moz-tree-line, |
| 181 | tree[seltype="text"] > treechildren::-moz-tree-line, |
| 182 | treechildren::-moz-tree-line { |
| 183 | border: 1px dotted grey; |
| 184 | } |
| 185 | |
| 186 | tree[seltype="cell"] > treechildren::-moz-tree-line(active, selected, focus), |
| 187 | treechildren::-moz-tree-line(selected) { |
| 188 | border: 1px dotted black; |
| 189 | } |
| 190 | */ |
| 191 | |
| 192 | /* ::::: tree separator ::::: */ |
| 193 | |
| 194 | treechildren::-moz-tree-separator { |
| 195 | margin-top: 1px; |
| 196 | border: 1px solid #9C9CFF; |
| 197 | height: 2px; |
| 198 | } |
| 199 | |
| 200 | /* ::::: drop feedback ::::: */ |
| 201 | |
| 202 | tree[seltype="cell"] > treechildren::-moz-tree-cell-text(primary, dropOn), |
| 203 | tree[seltype="text"] > treechildren::-moz-tree-cell-text(primary, dropOn), |
| 204 | treechildren::-moz-tree-cell-text(dropOn) { |
| 205 | background-color: #008484; |
| 206 | color: #FFCF00; |
| 207 | } |
| 208 | |
| 209 | treechildren::-moz-tree-drop-feedback { |
| 210 | background-color: #008484; |
| 211 | width: 50px; |
| 212 | height: 2px; |
| 213 | margin-left: 5px; |
| 214 | } |
| 215 | |
| 216 | treechildren::-moz-tree-drop-feedback(selected) { |
| 217 | background-color: #FFCF00; |
| 218 | } |
| 219 | |
| 220 | /* ::::: tree checkbox ::::: */ |
| 221 | |
| 222 | treechildren::-moz-tree-checkbox { |
| 223 | list-style-image: url("chrome://global/skin/tree/checkbox.gif"); |
| 224 | } |
| 225 | |
| 226 | treechildren::-moz-tree-checkbox(checked) { |
| 227 | list-style-image: url("chrome://global/skin/tree/checkbox-checked.gif"); |
| 228 | } |
| 229 | |
| 230 | /* ::::: tree progress meter ::::: */ |
| 231 | |
| 232 | treechildren::-moz-tree-progressmeter { |
| 233 | margin: 0px 0px; |
| 234 | border: 1px solid #FF9F00; |
| 235 | background-color: #000000; |
| 236 | color: #008484; |
| 237 | } |
| 238 | |
| 239 | treechildren::-moz-tree-progressmeter(progressUndetermined) { |
| 240 | list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif"); |
| 241 | background-color: #008484; |
| 242 | } |
| 243 | |
| 244 | treechildren::-moz-tree-cell-text(progressmeter) { |
| 245 | margin: 2px 4px; |
| 246 | } |
| 247 | |
| 248 | /* ::::: tree columns ::::: */ |
| 249 | |
| 250 | treecol { |
| 251 | -moz-box-align: center; |
| 252 | -moz-box-pack: center; |
| 253 | border: 1px solid #FF9F00; |
| 254 | background-color: #9C9CFF; |
| 255 | color: #000000; |
| 256 | padding: 1px 4px; |
| 257 | } |
| 258 | |
| 259 | treecolpicker { |
| 260 | -moz-box-align: center; |
| 261 | -moz-box-pack: center; |
| 262 | border: 1px solid transparent; |
| 263 | background-color: #000000; |
| 264 | padding: 1px 0px; |
| 265 | } |
| 266 | |
| 267 | .treecol-image { |
| 268 | padding: 1px; |
| 269 | } |
| 270 | |
| 271 | .treecol-text { |
| 272 | margin: 0px !important; |
| 273 | padding: 0px !important; |
| 274 | } |
| 275 | |
| 276 | treecol[hideheader="true"] { |
| 277 | border: none; |
| 278 | padding: 0; |
| 279 | } |
| 280 | |
| 281 | /* ..... internal box ..... */ |
| 282 | |
| 283 | treecol:hover:active { |
| 284 | border: 1px solid #FFCF00; |
| 285 | padding: 2px 3px 0px 5px; |
| 286 | } |
| 287 | |
| 288 | treecolpicker:hover { |
| 289 | background-color: #FFCF00; |
| 290 | } |
| 291 | |
| 292 | treecolpicker:hover:active { |
| 293 | border: 1px solid #FFCF00; |
| 294 | background-color: #FF9F00; |
| 295 | } |
| 296 | |
| 297 | .treecol-image:hover:active { |
| 298 | padding: 2px 0px 0px 2px; |
| 299 | } |
| 300 | |
| 301 | /* ::::: column drag and drop styles ::::: */ |
| 302 | |
| 303 | treecol[dragging="true"] { |
| 304 | border: 1px solid transparent; |
| 305 | background-color: #008484; |
| 306 | color: #000000; |
| 307 | } |
| 308 | |
| 309 | treecol[insertafter="true"] { |
| 310 | border-right: 1px solid #FFCF00; |
| 311 | } |
| 312 | |
| 313 | treecol[insertbefore="true"] { |
| 314 | border-left: 1px solid #FFCF00; |
| 315 | } |
| 316 | |
| 317 | treechildren::-moz-tree-column(insertbefore) { |
| 318 | border-left: 1px solid #FFCF00; |
| 319 | } |
| 320 | |
| 321 | treechildren::-moz-tree-column(insertafter) { |
| 322 | border-right: 1px solid #FFCF00; |
| 323 | } |
| 324 | |
| 325 | /* ::::: sort direction indicator ::::: */ |
| 326 | |
| 327 | .treecol-sortdirection { |
| 328 | list-style-image: none; |
| 329 | width: 8px; /* The image's width is 7 pixels */ |
| 330 | } |
| 331 | |
| 332 | .treecol-sortdirection[sortDirection="ascending"] { |
| 333 | list-style-image: url("chrome://global/skin/tree/sort-asc.gif"); |
| 334 | } |
| 335 | |
| 336 | .treecol-sortdirection[sortDirection="descending"] { |
| 337 | list-style-image: url("chrome://global/skin/tree/sort-dsc.gif"); |
| 338 | } |
| 339 | |
| 340 | /* ::::: column picker ::::: */ |
| 341 | |
| 342 | .tree-columnpicker-icon { |
| 343 | list-style-image: url("chrome://global/skin/tree/columnpicker.gif"); |
| 344 | } |
| 345 | |
| 346 | treecolpicker:hover > .tree-columnpicker-icon, |
| 347 | treecolpicker:hover:active > .tree-columnpicker-icon { |
| 348 | list-style-image: url("chrome://global/skin/tree/columnpicker-hover.gif"); |
| 349 | } |
| 350 | |
| 351 | /* ::::: twisty ::::: */ |
| 352 | |
| 353 | treechildren::-moz-tree-twisty { |
| 354 | padding-right: 2px; |
| 355 | padding-top: 1px; |
| 356 | width: 11px; /* The image's width is 11 pixels */ |
| 357 | list-style-image: url("chrome://global/skin/tree/twisty-closed.gif"); |
| 358 | } |
| 359 | |
| 360 | treechildren::-moz-tree-twisty(open) { |
| 361 | width: 11px; /* The image's width is 11 pixels */ |
| 362 | list-style-image: url("chrome://global/skin/tree/twisty-open.gif"); |
| 363 | } |
| 364 | |
| 365 | treechildren::-moz-tree-indentation { |
| 366 | width: 11px; |
| 367 | } |
| 368 | |
| 369 | /* ::::: gridline style ::::: */ |
| 370 | |
| 371 | treechildren.gridlines::-moz-tree-cell { |
| 372 | border-right: 1px solid green; |
| 373 | border-bottom: 1px solid green; |
| 374 | } |
| 375 | |
| 376 | treechildren.gridlines::-moz-tree-row { |
| 377 | border: none; |
| 378 | } |
| 379 | |
| 380 | /* ::::: alternating background ::::: */ |
| 381 | |
| 382 | treechildren[alternatingbackground="true"]::-moz-tree-row(odd) { |
| 383 | background-color: #404000; |
| 384 | } |
| 385 | |
| 386 | treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected) { |
| 387 | background-color: #E7ADE7; |
| 388 | color: #000000; |
| 389 | } |
| 390 | |
| 391 | treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected, focus) { |
| 392 | background-color: #E7ADE7; |
| 393 | color: #000000; |
| 394 | } |
| 395 | |
| 396 | /* ::::: editable tree ::::: */ |
| 397 | |
| 398 | treechildren::-moz-tree-row(selected, editing) { |
| 399 | background-color: transparent; |
| 400 | border: none; |
| 401 | } |
| 402 | |
| 403 | treechildren::-moz-tree-cell-text(selected, editing) { |
| 404 | color: inherit; |
| 405 | } |
| 406 | |
| 407 | .tree-input { |
| 408 | -moz-appearance: none; |
| 409 | border: 1px solid #9C9CFF; |
| 410 | margin: 0 0 0 -4px; |
| 411 | padding: 1px; |
| 412 | } |