keeping up with classic; make labels do better & clean up margins of some elements
[themes.git] / EarlyBlue / communicator / directory / directory.css
CommitLineData
f6e0a33f 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):
128000f4 22 * Robert Kaiser <KaiRo@KaiRo.at>
f6e0a33f 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
74d14f90 38@import url("chrome://communicator/skin/");
39
128000f4 40@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
41
f6e0a33f 42/*
f6e0a33f 43 Style rules specific to the directory listing window.
f6e0a33f 44*/
45
f6e0a33f 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 {
74d14f90 54 list-style-image : url("chrome://communicator/skin/directory/file.gif");
f6e0a33f 55 }
56
57treeitem[selected="true"] > treerow > .treecell-filename
58 {
74d14f90 59 list-style-image : url("chrome://communicator/skin/directory/file-sel.gif");
f6e0a33f 60 }
61
62treeitem[container="true"] > treerow > .treecell-filename
63 {
74d14f90 64 list-style-image : url("chrome://communicator/skin/directory/folder-closed.gif");
f6e0a33f 65 }
66treeitem[container="true"][selected="true"] > treerow > .treecell-filename
67 {
74d14f90 68 list-style-image : url("chrome://communicator/skin/directory/folder-closed-sel.gif");
f6e0a33f 69 }
70
71treeitem[container="true"][open="true"] > treerow > .treecell-filename
72 {
74d14f90 73 list-style-image : url("chrome://communicator/skin/directory/folder-open.gif");
f6e0a33f 74 }
75treeitem[container="true"][open="true"][selected="true"] > treerow > .treecell-filename
76 {
74d14f90 77 list-style-image : url("chrome://communicator/skin/directory/folder-open-sel.gif");
f6e0a33f 78 }
74d14f90 79
f6e0a33f 80/* Show an animated icon when a directory/symlink is loading */
81treeitem[type="SYMBOLIC-LINK"][loading="true"] > treerow > .treecell-filename > .tree-cell-twisty,
82treeitem[type="DIRECTORY"][loading="true"] > treerow > treecell > .tree-cell-twisty
83 {
74d14f90 84 list-style-image : url("chrome://global/skin/icons/loading.gif");
f6e0a33f 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
95treerow
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
117div.server {
118 color: blue;
119 display: block;
120 font-size: 10pt;
121 font-family: sans-serif;
122}
123
124div.client {
125 color: red;
126 display: block;
127 font-size: 10pt;
128 font-family: sans-serif;
129}