Commit | Line | Data |
---|---|---|
9099c61d RK |
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/. */ | |
b1eaa419 | 4 | |
b1eaa419 | 5 | /* ===== listbox.css ======================================================= |
6 | == Styles used by XUL listbox-related elements. | |
7 | ======================================================================= */ | |
8 | ||
f98e9249 RK |
9 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
10 | ||
b1eaa419 | 11 | /* ::::: listbox ::::: */ |
12 | ||
13 | listbox { | |
569543b3 | 14 | border-radius: 5px; |
7aa65558 | 15 | margin: 1px 2px; |
16 | padding: 0px; | |
b1eaa419 | 17 | border: 1px solid #9C9CFF; |
18 | background-color: #000000; | |
19 | color: #FF9F00; | |
20 | } | |
21 | ||
242fc635 | 22 | listbox[disabled="true"] { |
23 | border: 1px solid #8050B0; | |
24 | color: #8050B0; | |
25 | } | |
26 | ||
b1eaa419 | 27 | /* ::::: listitem ::::: */ |
28 | ||
29 | listitem { | |
30 | border: 1px solid transparent; | |
31 | } | |
32 | ||
024ec655 | 33 | listbox:-moz-focusring > listitem[current="true"] { |
dc8e1207 | 34 | border: 1px dotted #FF9F00; |
35 | } | |
36 | ||
024ec655 | 37 | listbox:-moz-focusring > listitem[current="true"][selected="true"] { |
b1eaa419 | 38 | border: 1px dotted #FF9F00; |
39 | } | |
40 | ||
41 | listitem[selected="true"] { | |
42 | background-color: #008484; | |
43 | color: #000000; | |
44 | } | |
45 | ||
46 | listbox:focus > listitem[selected="true"] { | |
47 | background-color: #008484; | |
48 | color: #FFCF00; | |
49 | } | |
50 | ||
51 | /* ::::: listheader ::::: */ | |
52 | ||
242fc635 | 53 | listheader { |
b1eaa419 | 54 | -moz-box-align: center; |
55 | border: 1px solid #FFCF00; | |
56 | background-color: #9C9CFF; | |
57 | color: #000000; | |
58 | padding: 0 4px; | |
59 | } | |
60 | ||
61 | listheader[sortable="true"]:hover:active { | |
62 | border: 1px solid #FFCF00; | |
f98e9249 RK |
63 | padding-top: 1px; |
64 | padding-bottom: 0px; | |
65 | -moz-padding-start: 5px; | |
66 | -moz-padding-end: 4px; | |
b1eaa419 | 67 | } |
68 | ||
69 | .listheader-icon { | |
8caa872d | 70 | -moz-margin-end: 2px; |
b1eaa419 | 71 | } |
72 | ||
73 | .listheader-label { | |
74 | margin: 0px !important; | |
75 | } | |
76 | ||
77 | /* ..... sort direction icon ..... */ | |
78 | ||
79 | .listheader-sortdirection { | |
80 | list-style-image: none; | |
81 | } | |
82 | ||
7aa65558 | 83 | .listheader-sortdirection[sortDirection="ascending"] { |
b1eaa419 | 84 | list-style-image: url("chrome://global/skin/tree/sort-asc.gif"); |
85 | } | |
86 | ||
7aa65558 | 87 | .listheader-sortdirection[sortDirection="descending"] { |
b1eaa419 | 88 | list-style-image: url("chrome://global/skin/tree/sort-desc.gif"); |
89 | } | |
90 | ||
91 | /* ::::: listcell ::::: */ | |
92 | ||
93 | .listcell-label { | |
94 | margin: 0px !important; | |
f98e9249 RK |
95 | padding-top: 0px; |
96 | padding-bottom: 1px; | |
97 | -moz-padding-start: 4px; | |
98 | -moz-padding-end: 0px; | |
b1eaa419 | 99 | white-space: nowrap; |
100 | } | |
80916bc4 | 101 | |
102 | .listcell-icon { | |
f98e9249 | 103 | -moz-margin-end: 2px; |
80916bc4 | 104 | } |
105 | ||
7aa65558 | 106 | .listcell-label[disabled="true"] { |
107 | color: #8050B0; | |
108 | } | |
109 | ||
242fc635 | 110 | /* ::::: listcell checkbox ::::: */ |
80916bc4 | 111 | |
112 | .listcell-check { | |
7aa65558 | 113 | -moz-box-align: center; |
80916bc4 | 114 | margin: 0px 2px; |
115 | border: 1px solid #FF9F00; | |
116 | padding: 2px; | |
7aa65558 | 117 | min-width: 12px; |
118 | min-height: 12px; | |
119 | background: #000000 no-repeat 50% 50%; | |
80916bc4 | 120 | } |
deada455 RK |
121 | |
122 | .listcell-check[checked="true"] { | |
123 | background-image: url("chrome://global/skin/checkbox/cbox-check.gif"); | |
124 | } | |
125 | ||
126 | listitem[type="checkbox"]:hover .listcell-check { | |
127 | border-color: #FFCF00; | |
128 | } | |
129 | ||
130 | listitem[type="checkbox"]:hover .listcell-label { | |
131 | color: #FFCF00; | |
132 | } |