fa0976d6b0607a32cf2958ee19150c4e35255e18
[themes.git] / LCARStrek / communicator / directory / directory.css
1 /* ***** BEGIN LICENSE BLOCK *****
2  * Version: NPL 1.1/GPL 2.0/LGPL 2.1
3  *
4  * The contents of this file are subject to the Netscape Public License
5  * Version 1.1 (the "License"); you may not use this file except in
6  * compliance with the License. You may obtain a copy of the License at
7  * http://www.mozilla.org/NPL/
8  *
9  * Software distributed under the License is distributed on an "AS IS" basis,
10  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11  * for the specific language governing rights and limitations under the
12  * License.
13  *
14  * The Original Code is mozilla.org code.
15  *
16  * The Initial Developer of the Original Code is 
17  * Netscape Communications Corporation.
18  * Portions created by the Initial Developer are Copyright (C) 1998
19  * the Initial Developer. All Rights Reserved.
20  *
21  * Contributor(s):
22  *   Robert Kaiser <KaiRo@KaiRo.at>
23  *
24  * Alternatively, the contents of this file may be used under the terms of
25  * either the GNU General Public License Version 2 or later (the "GPL"), or 
26  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27  * in which case the provisions of the GPL or the LGPL are applicable instead
28  * of those above. If you wish to allow use of your version of this file only
29  * under the terms of either the GPL or the LGPL, and not to allow others to
30  * use your version of this file under the terms of the NPL, indicate your
31  * decision by deleting the provisions above and replace them with the notice
32  * and other provisions required by the GPL or the LGPL. If you do not delete
33  * the provisions above, a recipient may use your version of this file under
34  * the terms of any one of the NPL, the GPL or the LGPL.
35  *
36  * ***** END LICENSE BLOCK ***** */
37
38 @import url(chrome://communicator/skin/);
39
40 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
41
42 /*
43   Style rules specific to the directory listing window.
44 */
45
46
47 /* Hide twisty for files */
48 .treecell-indent[type="FILE"] > .tree-cell-twisty {
49   list-style-image: none;
50 }
51
52 .treecell-filename {
53   list-style-image: url("chrome://communicator/skin/directory/file.gif");
54 }  
55   
56 treeitem[selected="true"] > treerow > .treecell-filename {
57   list-style-image: url("chrome://communicator/skin/directory/file-sel.gif");
58 }
59   
60 treeitem[container="true"] > treerow > .treecell-filename {
61   list-style-image: url("chrome://communicator/skin/directory/folder-closed.gif");
62 }
63
64 treeitem[container="true"][selected="true"] > treerow > .treecell-filename {
65   list-style-image: url("chrome://communicator/skin/directory/folder-closed-sel.gif");
66 }
67
68 treeitem[container="true"][open="true"] > treerow > .treecell-filename {
69   list-style-image: url("chrome://communicator/skin/directory/folder-open.gif");
70 }
71
72 treeitem[container="true"][open="true"][selected="true"] > treerow > .treecell-filename {
73   list-style-image: url("chrome://communicator/skin/directory/folder-open-sel.gif");
74 }
75   
76 /* Show an animated icon when a directory/symlink is loading */
77 treeitem[type="SYMBOLIC-LINK"][loading="true"] > treerow > .treecell-filename > .tree-cell-twisty,
78 treeitem[type="DIRECTORY"][loading="true"] > treerow > treecell > .tree-cell-twisty {
79   list-style-image: url("chrome://global/skin/icons/loading.gif");
80 }
81
82 /* Italicize a symbolic link and make it look like a link (it can be a dir or link) */
83 .treecell-filename[type="SYMBOLIC-LINK"] {
84   color: inherit;
85   text-decoration: inherit;
86   font-style: italic;
87 }
88
89 treerow {
90   min-height: 19px;
91 }
92
93 /**
94  * This fixes a bug. As you scroll down in a tree the computed column width
95  * can change. That would make the columns shift durning scrolling.
96  * So we give them inital preferred widths so they aren't computed.
97  */
98 #FilenameColumn {
99   width: 100px;
100 }
101
102 #ContentLengthColumn {
103   width: 100px;
104 }
105
106 #LastModColumn {
107   width: 100px;
108 }
109
110 div.server     { 
111   color:    blue;
112   display:  block; 
113   font-size: 10pt;
114   font-family: sans-serif;
115 }
116
117 div.client     { 
118   color:    red;
119   display:  block; 
120   font-size: 10pt;
121   font-family: sans-serif;
122 }