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 ::::: */
16 border: 1px solid #9C9CFF;
17 background-color: #000000;
21 /* ::::: tree focusring ::::: */
23 .focusring > .tree-stack > .tree-rows > .tree-bodybox {
24 outline: 1px solid transparent;
28 .focusring:-moz-focusring > .tree-stack > .tree-rows > .tree-bodybox {
29 outline: 1px dotted #008484;
32 /* ::::: tree rows ::::: */
34 treechildren::-moz-tree-row {
35 border: 1px solid transparent;
36 background-color: transparent;
41 treechildren::-moz-tree-row(selected) {
42 background-color: #008484;
46 treechildren::-moz-tree-row(selected, focus) {
47 background-color: #008484;
51 treechildren::-moz-tree-row(current, focus) {
52 border: 1px dotted #008484;
55 treechildren::-moz-tree-row(selected, current, focus) {
56 border: 1px dotted #FF9F00;
59 tree[seltype="cell"] > treechildren::-moz-tree-row,
60 tree[seltype="text"] > treechildren::-moz-tree-row {
62 background-color: transparent;
65 /* ::::: tree cells ::::: */
67 treechildren::-moz-tree-cell {
70 -moz-padding-start: 1px;
71 -moz-padding-end: 1px;
74 tree[seltype="cell"] > treechildren::-moz-tree-cell-text,
75 tree[seltype="text"] > treechildren::-moz-tree-cell-text,
76 treechildren::-moz-tree-cell-text {
80 tree[seltype="cell"] > treechildren::-moz-tree-cell {
81 border: 1px solid transparent;
85 tree[seltype="text"] > treechildren::-moz-tree-cell-text {
86 border: 1px solid transparent;
89 -moz-padding-start: 1px;
90 -moz-padding-end: 1px;
93 treechildren::-moz-tree-cell-text(selected) {
97 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected) {
98 background-color: #008484;
100 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected) {
104 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected) {
105 background-color: #008484;
109 treechildren::-moz-tree-cell-text(selected, focus) {
113 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, focus) {
114 background-color: #008484;
116 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
120 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
121 background-color: #008484;
125 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, current, focus) {
126 border: 1px dotted #008484;
129 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, current, focus) {
130 border: 1px dotted #008484;
133 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, current, focus) {
134 border: 1px dotted #FF9F00;
137 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, current, focus) {
138 border: 1px dotted #FF9F00;
141 /* ::::: lines connecting cells ::::: */
143 tree[seltype="cell"] > treechildren::-moz-tree-line,
144 tree[seltype="text"] > treechildren::-moz-tree-line,
145 treechildren::-moz-tree-line {
149 tree[seltype="cell"] > treechildren::-moz-tree-line,
150 tree[seltype="text"] > treechildren::-moz-tree-line,
151 treechildren::-moz-tree-line {
152 border: 1px dotted #9C9CFF;
155 tree[seltype="cell"] > treechildren::-moz-tree-line(active, selected, focus),
156 treechildren::-moz-tree-line(selected) {
157 border: 1px dotted #000000;
160 /* ::::: tree separator ::::: */
162 treechildren::-moz-tree-separator {
164 border: 1px solid #9C9CFF;
168 /* ::::: drop feedback ::::: */
170 treechildren::-moz-tree-row(dropOn) {
171 background-color: #008484;
174 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(primary, dropOn),
175 tree[seltype="text"] > treechildren::-moz-tree-cell-text(primary, dropOn),
176 treechildren::-moz-tree-cell-text(dropOn) {
180 treechildren::-moz-tree-drop-feedback {
181 background-color: #008484;
184 -moz-margin-start: 5px;
187 treechildren::-moz-tree-drop-feedback(selected) {
188 background-color: #FFCF00;
191 /* ::::: tree checkbox ::::: */
193 treechildren::-moz-tree-checkbox {
194 list-style-image: url("chrome://global/skin/tree/checkbox.gif");
197 treechildren::-moz-tree-checkbox(checked) {
198 list-style-image: url("chrome://global/skin/tree/checkbox-checked.gif");
201 /* ::::: tree progress meter ::::: */
203 treechildren::-moz-tree-progressmeter {
205 border: 1px solid #FF9F00;
206 background-color: #000000;
210 treechildren::-moz-tree-progressmeter(progressUndetermined) {
211 list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif");
212 background-color: #008484;
215 treechildren::-moz-tree-cell-text(progressmeter) {
219 /* ::::: tree columns ::::: */
222 -moz-box-align: center;
223 -moz-box-pack: center;
224 border: 1px solid #FF9F00;
225 background-color: #9C9CFF;
230 treecol:first-child {
231 border-top-left-radius: 3px;
234 tree[hidecolumnpicker] treecol:last-child {
235 border-top-right-radius: 3px;
239 border-top-right-radius: 3px;
240 -moz-box-align: center;
241 -moz-box-pack: center;
242 border: 1px solid #FF9F00;
243 background-color: #000000;
252 margin: 0px !important;
253 padding: 0px !important;
256 treecol[hideheader="true"] {
261 /* ..... internal box ..... */
263 treecol:hover:active {
264 border: 1px solid #FFCF00;
267 -moz-padding-start: 5px;
268 -moz-padding-end: 3px;
271 treecolpicker:hover {
272 background-color: #FFCF00;
275 treecolpicker:hover:active {
276 border: 1px solid #FFCF00;
277 background-color: #FF9F00;
280 .treecol-image:hover:active {
283 -moz-padding-start: 2px;
284 -moz-padding-end: 0px;
287 /* ::::: column drag and drop styles ::::: */
289 treecol[dragging="true"] {
290 border: 1px solid transparent;
291 background-color: #008484;
295 treecol[insertafter="true"]:-moz-locale-dir(ltr),
296 treecol[insertbefore="true"]:-moz-locale-dir(rtl) {
297 border-right: 1px solid #FFCF00;
300 treecol[insertafter="true"]:-moz-locale-dir(rtl),
301 treecol[insertbefore="true"]:-moz-locale-dir(ltr) {
302 border-left: 1px solid #FFCF00;
305 treechildren::-moz-tree-column(insertbefore) {
306 -moz-border-start: 1px solid #FFCF00;
309 treechildren::-moz-tree-column(insertafter) {
310 -moz-border-end: 1px solid #FFCF00;
313 /* ::::: sort direction indicator ::::: */
315 .treecol-sortdirection {
316 list-style-image: none;
317 width: 8px; /* The image's width is 7 pixels */
320 treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="ascending"] {
321 list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
324 treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="descending"] {
325 list-style-image: url("chrome://global/skin/tree/sort-desc.gif");
328 /* ::::: column picker ::::: */
330 .tree-columnpicker-icon {
331 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
334 treecolpicker:hover > .tree-columnpicker-icon,
335 treecolpicker:hover:active > .tree-columnpicker-icon {
336 list-style-image: url("chrome://global/skin/tree/columnpicker-hover.gif");
339 /* ::::: twisty ::::: */
341 treechildren::-moz-tree-twisty {
342 -moz-padding-end: 1px;
344 width: 11px; /* The image's width is 11 pixels */
345 list-style-image: url("chrome://global/skin/tree/twisty-closed.gif");
348 treechildren::-moz-tree-twisty(open) {
349 width: 11px; /* The image's width is 11 pixels */
350 list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
353 treechildren::-moz-tree-indentation {
357 /* ::::: gridline style ::::: */
359 treechildren.gridlines::-moz-tree-cell {
360 border-right: 1px solid #9C9CFF;
361 border-bottom: 1px solid #9C9CFF;
364 treechildren.gridlines::-moz-tree-row {
368 /* ::::: alternating background ::::: */
370 treechildren[alternatingbackground="true"]::-moz-tree-row(odd) {
371 background-color: #404000;
374 treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected) {
375 background-color: #008484;
379 treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected, focus) {
380 background-color: #008484;
384 /* ::::: editable tree ::::: */
386 treechildren::-moz-tree-row(selected, editing) {
387 background-color: transparent;
391 treechildren::-moz-tree-cell-text(selected, editing) {
396 border: 1px solid #9C9CFF;
398 -moz-margin-start: -4px;