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 /* ===== tree.css =======================================================
6 == Styles used by the XUL tree element.
7 ======================================================================= */
9 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
11 /* ::::: tree ::::: */
15 border: 1px inset #CCD0DD;
16 background-color: #FFFFFF;
20 /* ::::: tree focusring ::::: */
22 .focusring > .tree-stack > .tree-rows > .tree-bodybox {
23 border: 1px solid transparent;
26 .focusring:-moz-focusring > .tree-stack > .tree-rows > .tree-bodybox {
27 border: 1px solid #000000;
30 /* ::::: tree rows ::::: */
32 treechildren::-moz-tree-row {
33 border: 1px solid transparent;
34 background-color: transparent;
39 treechildren::-moz-tree-row(selected) {
40 background-color: #808080;
43 treechildren::-moz-tree-row(selected, focus) {
44 background-color: #336699;
47 treechildren::-moz-tree-row(current, focus) {
48 border: 1px dotted #9999CC;
51 treechildren::-moz-tree-row(selected, current, focus) {
52 border: 1px dotted #666699;
55 tree[seltype="cell"] > treechildren::-moz-tree-row,
56 tree[seltype="text"] > treechildren::-moz-tree-row {
58 background-color: transparent;
61 /* ::::: tree cells ::::: */
63 treechildren::-moz-tree-cell {
67 tree[seltype="cell"] > treechildren::-moz-tree-cell-text,
68 tree[seltype="text"] > treechildren::-moz-tree-cell-text,
69 treechildren::-moz-tree-cell-text {
73 treechildren::-moz-tree-cell-text(selected) {
77 tree[seltype="cell"] > treechildren::-moz-tree-cell {
78 border: 1px solid transparent;
82 tree[seltype="text"] > treechildren::-moz-tree-cell-text {
83 border: 1px solid transparent;
87 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected) {
88 background-color: #808080;
90 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected) {
94 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected) {
95 background-color: #808080;
99 treechildren::-moz-tree-cell-text(selected, focus) {
103 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, focus) {
104 background-color: #336699;
106 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
110 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
111 background-color: #336699;
115 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, current, focus) {
116 border: 1px dotted #9999CC;
119 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, current, focus) {
120 border: 1px dotted #9999CC;
123 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, current, focus) {
124 border: 1px dotted #666699;
127 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, current, focus) {
128 border: 1px dotted #666699;
131 /* ::::: lines connecting cells ::::: */
133 tree[seltype="cell"] > treechildren::-moz-tree-line,
134 tree[seltype="text"] > treechildren::-moz-tree-line,
135 treechildren::-moz-tree-line {
139 tree[seltype="cell"] > treechildren::-moz-tree-line,
140 tree[seltype="text"] > treechildren::-moz-tree-line,
141 treechildren::-moz-tree-line {
142 border: 1px dotted #CCD0DD;
145 tree[seltype="cell"] > treechildren::-moz-tree-line(active, selected, focus),
146 treechildren::-moz-tree-line(selected, focus) {
147 border: 1px dotted #666699;
150 /* ::::: tree separator ::::: */
152 treechildren::-moz-tree-separator {
154 border: 1px outset #CCD0DD;
158 /* ::::: drop feedback ::::: */
160 treechildren::-moz-tree-row(dropOn) {
161 background-color: #336699;
164 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(primary, dropOn),
165 tree[seltype="text"] > treechildren::-moz-tree-cell-text(primary, dropOn),
166 treechildren::-moz-tree-cell-text(dropOn) {
170 treechildren::-moz-tree-drop-feedback {
171 background-color: #336699;
174 -moz-margin-start: 5px;
177 treechildren::-moz-tree-drop-feedback(selected) {
178 background-color: #FFFFFF;
181 /* ::::: tree checkbox ::::: */
183 treechildren::-moz-tree-checkbox {
184 list-style-image: url("chrome://global/skin/tree/checkbox.gif");
187 treechildren::-moz-tree-checkbox(checked) {
188 list-style-image: url("chrome://global/skin/tree/checkbox-checked.gif");
191 /* ::::: tree progress meter ::::: */
193 treechildren::-moz-tree-progressmeter {
195 border: 1px inset #CCD0DD;
196 background-color: #999999;
200 treechildren::-moz-tree-progressmeter(progressUndetermined) {
201 list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif");
202 background-color: #CCD0DD;
205 treechildren::-moz-tree-cell-text(progressmeter) {
209 /* ::::: tree columns ::::: */
212 -moz-box-align: center;
213 -moz-box-pack: center;
214 border: 1px outset #CCD0DD;
215 background-color: #CCD0DD;
221 -moz-box-align: center;
222 -moz-box-pack: center;
223 border: 1px solid transparent;
224 background-color: #CCD0DD;
233 margin: 0px !important;
234 padding: 0px !important;
237 treecol[hideheader="true"] {
242 /* ..... internal box ..... */
244 treecol:hover:active {
245 border: 1px solid #666699;
248 -moz-padding-start: 5px;
249 -moz-padding-end: 3px;
252 treecolpicker:hover:active {
253 border: 1px solid #666699;
256 .treecol-image:hover:active {
259 -moz-padding-start: 2px;
260 -moz-padding-end: 0px;
263 /* ::::: column drag and drop styles ::::: */
265 treecol[dragging="true"] {
266 border: 1px solid transparent;
267 background-color: #336699;
271 treecol[insertafter="true"]:-moz-locale-dir(ltr),
272 treecol[insertbefore="true"]:-moz-locale-dir(rtl) {
273 border-right: 1px solid #000000;
276 treecol[insertafter="true"]:-moz-locale-dir(rtl),
277 treecol[insertbefore="true"]:-moz-locale-dir(ltr) {
278 border-left: 1px solid #000000;
281 treechildren::-moz-tree-column(insertbefore) {
282 -moz-border-start: 1px solid #000000;
285 treechildren::-moz-tree-column(insertafter) {
286 -moz-border-end: 1px solid #000000;
289 /* ::::: sort direction indicator ::::: */
291 .treecol-sortdirection {
292 list-style-image: none;
293 width: 8px; /* The image's width is 7 pixels */
296 treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="ascending"] {
297 list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
300 treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="descending"] {
301 list-style-image: url("chrome://global/skin/tree/sort-desc.gif");
304 /* ::::: column picker ::::: */
306 .tree-columnpicker-icon {
307 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
310 /* ::::: twisty ::::: */
312 treechildren::-moz-tree-twisty {
313 -moz-padding-end: 2px;
315 width: 11px; /* The image's width is 11 pixels */
316 list-style-image: url("chrome://global/skin/tree/twisty-closed.gif");
319 treechildren::-moz-tree-twisty(open) {
320 width: 11px; /* The image's width is 11 pixels */
321 list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
324 treechildren::-moz-tree-indentation {
328 /* ::::: gridline style ::::: */
330 treechildren.gridlines::-moz-tree-cell {
331 border-right: 1px solid green;
332 border-bottom: 1px solid green;
335 treechildren.gridlines::-moz-tree-row {
339 /* ::::: alternating background ::::: */
341 treechildren[alternatingbackground="true"]::-moz-tree-row(odd) {
342 background-color: #F5F7FF;
345 treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected) {
346 background-color: #A0A0A0;
349 treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected, focus) {
350 background-color: #6699CC;
353 /* ::::: editable tree ::::: */
355 treechildren::-moz-tree-row(selected, editing) {
356 background-color: transparent;
360 treechildren::-moz-tree-cell-text(selected, editing) {
365 border: 1px solid #336699;
367 -moz-margin-start: -4px;