toolkit/themes/osx/global/listbox.css

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:4e7575e9918f
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/. */
4
5 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
6
7 listbox {
8 -moz-appearance: listbox;
9 margin: 2px 4px;
10 background-color: #FFFFFF;
11 color: -moz-FieldText;
12 }
13
14 .listcell-label {
15 margin: 0px !important;
16 padding-bottom: 1px;
17 -moz-padding-start: 4px;
18 white-space: nowrap;
19 }
20
21 /* ::::: listitem ::::: */
22
23 listitem {
24 border: 1px solid transparent;
25 }
26
27 listitem[selected="true"] {
28 background-color: -moz-mac-secondaryhighlight;
29 color: -moz-DialogText;
30 }
31
32 listbox:focus > listitem[selected="true"] {
33 background-color: Highlight;
34 color: HighlightText;
35 }
36
37 /* ::::: listheader ::::: */
38
39 listheader {
40 -moz-appearance: treeheadercell;
41 -moz-box-align: center;
42 border: 2px solid;
43 -moz-border-top-colors: ThreeDHighlight ThreeDLightShadow;
44 -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
45 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
46 -moz-border-left-colors: ThreeDHighlight ThreeDLightShadow;
47 background-color: -moz-Dialog;
48 color: -moz-DialogText;
49 padding: 0 4px;
50 }
51
52 listheader[sortable="true"]:hover:active {
53 border-top: 2px solid;
54 border-right: 1px solid;
55 border-bottom: 1px solid;
56 border-left: 2px solid;
57 -moz-border-top-colors: ThreeDShadow -moz-Dialog;
58 -moz-border-right-colors: ThreeDShadow;
59 -moz-border-bottom-colors: ThreeDShadow;
60 -moz-border-left-colors: ThreeDShadow -moz-Dialog;
61 padding-top: 1px;
62 -moz-padding-start: 5px;
63 -moz-padding-end: 4px;
64 }
65
66 .listheader-icon {
67 -moz-margin-end: 2px;
68 }
69
70 .listheader-label {
71 margin: 0px !important;
72 }
73
74 /* ::::: listcell ::::: */
75
76 .listcell-label {
77 margin: 0px !important;
78 padding-bottom: 1px;
79 -moz-padding-start: 4px;
80 white-space: nowrap;
81 }
82
83 .listcell-icon {
84 -moz-margin-end: 2px;
85 }
86
87 .listcell-label[disabled="true"] {
88 color: GrayText;
89 }
90
91 /* ::::: listcell checkbox ::::: */
92
93 .listcell-check {
94 -moz-appearance: checkbox;
95 -moz-box-align: center;
96 margin: 0px 2px;
97 border: 1px solid -moz-DialogText;
98 min-width: 13px;
99 min-height: 13px;
100 background: -moz-Field no-repeat 50% 50%;
101 }
102
103 .listcell-check[checked="true"] {
104 background-image: url("chrome://global/skin/checkbox/cbox-check.gif");
105 }
106
107 .listcell-check[disabled="true"] {
108 border-color: GrayText;
109 }
110
111 .listcell-check[disabled="true"][checked="true"] {
112 background-image: url("chrome://global/skin/checkbox/cbox-check-dis.gif");
113 }

mercurial