updating EarlyBlue skin; should almost be 0.8 now ;-)
[themes.git] / EarlyBlue / 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 /* Hide twisty for files */
47 .treecell-indent[type="FILE"] > .tree-cell-twisty 
48   {
49     list-style-image      : none;
50   }
51
52 .treecell-filename
53   {
54     list-style-image      : url("chrome://communicator/skin/directory/file.gif");
55   }  
56   
57 treeitem[selected="true"] > treerow > .treecell-filename
58   {
59     list-style-image      : url("chrome://communicator/skin/directory/file-sel.gif");
60   }
61   
62 treeitem[container="true"] > treerow > .treecell-filename
63   {
64     list-style-image      : url("chrome://communicator/skin/directory/folder-closed.gif");
65   }
66 treeitem[container="true"][selected="true"] > treerow > .treecell-filename
67   {
68     list-style-image      : url("chrome://communicator/skin/directory/folder-closed-sel.gif");
69   }
70
71 treeitem[container="true"][open="true"] > treerow > .treecell-filename
72   {
73     list-style-image      : url("chrome://communicator/skin/directory/folder-open.gif");
74   }
75 treeitem[container="true"][open="true"][selected="true"] > treerow > .treecell-filename
76   {
77     list-style-image      : url("chrome://communicator/skin/directory/folder-open-sel.gif");
78   }
79
80 /* Show an animated icon when a directory/symlink is loading */
81 treeitem[type="SYMBOLIC-LINK"][loading="true"] > treerow > .treecell-filename > .tree-cell-twisty,
82 treeitem[type="DIRECTORY"][loading="true"] > treerow > treecell > .tree-cell-twisty
83   {
84     list-style-image      : url("chrome://global/skin/icons/loading.gif");
85   }
86
87 /* Italicize a symbolic link and make it look like a link (it can be a dir or link) */
88 .treecell-filename[type="SYMBOLIC-LINK"] 
89   {
90     color                 : inherit;
91     text-decoration       : inherit;
92     font-style            : italic;
93   }
94
95 treerow
96   {
97     min-height            : 19px;
98   }
99
100 /**
101  * This fixes a bug. As you scroll down in a tree the computed column width
102  * can change. That would make the columns shift durning scrolling.
103  * So we give them inital preferred widths so they aren't computed.
104  */
105 #FilenameColumn {
106   width: 100px;
107 }
108
109 #ContentLengthColumn {
110   width: 100px;
111 }
112
113 #LastModColumn {
114   width: 100px;
115 }
116
117 div.server     { 
118   color:    blue;
119   display:  block; 
120   font-size: 10pt;
121   font-family: sans-serif;
122 }
123
124 div.client     { 
125   color:    red;
126   display:  block; 
127   font-size: 10pt;
128   font-family: sans-serif;
129 }