| 1 | /* |
| 2 | * The contents of this file are subject to the Netscape Public |
| 3 | * License Version 1.1 (the "License"); you may not use this file |
| 4 | * except in compliance with the License. You may obtain a copy of |
| 5 | * the License at http://www.mozilla.org/NPL/ |
| 6 | * |
| 7 | * Software distributed under the License is distributed on an "AS |
| 8 | * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or |
| 9 | * implied. See the License for the specific language governing |
| 10 | * rights and limitations under the License. |
| 11 | * |
| 12 | * The Original Code is Mozilla Communicator client code, released |
| 13 | * March 31, 1998. |
| 14 | * |
| 15 | * The Initial Developer of the Original Code is Netscape |
| 16 | * Communications Corporation. Portions created by Netscape are |
| 17 | * Copyright (C) 1998-2001 Netscape Communications Corporation. All |
| 18 | * Rights Reserved. |
| 19 | * |
| 20 | * Contributor(s): |
| 21 | * Joe Hewitt (hewitt@netscape.com) |
| 22 | * Robert Kaiser <KaiRo@KaiRo.at> |
| 23 | */ |
| 24 | |
| 25 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
| 26 | |
| 27 | /* ===== listbox.css ======================================================= |
| 28 | == Styles used by XUL listbox-related elements. |
| 29 | ======================================================================= */ |
| 30 | |
| 31 | /* ::::: listbox ::::: */ |
| 32 | |
| 33 | listbox { |
| 34 | -moz-border-radius: 5px; |
| 35 | margin: 2px 4px; |
| 36 | border: 1px solid #9C9CFF; |
| 37 | background-color: #000000; |
| 38 | color: #FF9F00; |
| 39 | } |
| 40 | |
| 41 | listrows { |
| 42 | } |
| 43 | |
| 44 | /* ::::: listitem ::::: */ |
| 45 | |
| 46 | listitem { |
| 47 | border: 1px solid transparent; |
| 48 | } |
| 49 | |
| 50 | listbox:focus > listitem[selected="true"][current="true"] { |
| 51 | border: 1px dotted #FF9F00; |
| 52 | } |
| 53 | |
| 54 | listitem[selected="true"] { |
| 55 | background-color: #008484; |
| 56 | color: #000000; |
| 57 | } |
| 58 | |
| 59 | listbox:focus > listitem[selected="true"] { |
| 60 | background-color: #008484; |
| 61 | color: #FFCF00; |
| 62 | } |
| 63 | |
| 64 | /* ::::: listheader ::::: */ |
| 65 | |
| 66 | listheader { |
| 67 | -moz-box-align: center; |
| 68 | border: 1px solid #FFCF00; |
| 69 | background-color: #9C9CFF; |
| 70 | color: #000000; |
| 71 | padding: 0 4px; |
| 72 | } |
| 73 | |
| 74 | listheader[sortable="true"]:hover:active { |
| 75 | border: 1px solid #FFCF00; |
| 76 | padding: 1px 4px 0 5px; |
| 77 | } |
| 78 | |
| 79 | .listheader-icon { |
| 80 | margin-right: 2px; |
| 81 | } |
| 82 | |
| 83 | .listheader-label { |
| 84 | margin: 0px !important; |
| 85 | } |
| 86 | |
| 87 | /* ..... sort direction icon ..... */ |
| 88 | |
| 89 | .listheader-sortdirection { |
| 90 | list-style-image: none; |
| 91 | } |
| 92 | |
| 93 | .listheader-sortdirection[sortdirection="ascending"] { |
| 94 | list-style-image: url("chrome://global/skin/tree/sort-asc.gif"); |
| 95 | } |
| 96 | |
| 97 | .listheader-sortdirection[sortdirection="descending"] { |
| 98 | list-style-image: url("chrome://global/skin/tree/sort-desc.gif"); |
| 99 | } |
| 100 | |
| 101 | /* ::::: listcell ::::: */ |
| 102 | |
| 103 | .listcell-label { |
| 104 | margin: 0px !important; |
| 105 | padding: 0px 0px 1px 4px; |
| 106 | white-space: nowrap; |
| 107 | } |