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/. */
5 /* ===== listbox.css =======================================================
6 == Styles used by XUL listbox-related elements.
7 ======================================================================= */
9 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
11 /* ::::: listbox ::::: */
17 border: 1px solid #9C9CFF;
18 background-color: #000000;
22 listbox[disabled="true"] {
23 border: 1px solid #8050B0;
27 /* ::::: listitem ::::: */
30 border: 1px solid transparent;
32 --listitem-selectedColor: #000000;
33 --listitem-selectedBackground: #008484;
34 --listitem-selectedFocusColor: #FFCF00;
35 --listitem-selectedFocusBackground: var(--listitem-selectedBackground);
36 --listitem-focusCurrentBorder: #FF9F00;
37 --listitem-selectedFocusCurrentBorder: var(--listitem-focusCurrentBorder);
40 listbox:-moz-focusring > listitem[current="true"] {
41 border: 1px dotted var(--listitem-focusCurrentBorder);
44 listbox:-moz-focusring > listitem[current="true"][selected="true"] {
45 border: 1px dotted var(--listitem-selectedFocusCurrentBorder);
48 listitem[selected="true"] {
49 background-color: var(--listitem-selectedBackground);
50 color: var(--listitem-selectedColor);
53 listbox:focus > listitem[selected="true"] {
54 background-color: var(--listitem-selectedFocusBackground);
55 color: var(--listitem-selectedFocusColor);
58 /* ::::: listheader ::::: */
61 -moz-box-align: center;
62 border: 1px solid #FF9F00;
63 border-top-left-radius: 3px;
64 border-top-right-radius: 3px;
65 background-color: #9C9CFF;
70 listheader > treecol {
71 -moz-border-start: none;
76 listheader > treecol:last-child {
77 -moz-border-end: none;
80 listheader[sortable="true"]:hover:active {
81 border: 1px solid #FF9F00;
84 -moz-padding-start: 5px;
85 -moz-padding-end: 4px;
93 margin: 0 4px !important;
96 /* ..... sort direction icon ..... */
98 .listheader-sortdirection {
99 list-style-image: none;
102 .listheader-sortdirection[sortDirection="ascending"] {
103 list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
106 .listheader-sortdirection[sortDirection="descending"] {
107 list-style-image: url("chrome://global/skin/tree/sort-desc.gif");
110 /* ::::: listcell ::::: */
113 margin: 0px !important;
116 -moz-padding-start: 4px;
117 -moz-padding-end: 0px;
122 -moz-margin-end: 2px;
125 .listcell-label[disabled="true"] {
129 /* ::::: listcell checkbox ::::: */
132 -moz-box-align: center;
134 border: 1px solid #FF9F00;
138 background: #000000 no-repeat 50% 50%;
141 .listcell-check[checked="true"] {
142 background-image: url("chrome://global/skin/checkbox/cbox-check.gif");
145 listitem[type="checkbox"]:hover .listcell-check[checked="true"] {
146 background-image: url("chrome://global/skin/checkbox/cbox-check-hover.gif");
149 listitem[type="checkbox"]:hover .listcell-check {
150 border-color: #FFCF00;
153 listitem[type="checkbox"]:hover .listcell-label {