| 1 | /* -*- Mode: C; c-basic-offset: 2 -*- */ |
| 2 | /* ***** BEGIN LICENSE BLOCK ***** |
| 3 | * Version: NPL 1.1/GPL 2.0/LGPL 2.1 |
| 4 | * |
| 5 | * The contents of this file are subject to the Netscape Public License |
| 6 | * Version 1.1 (the "License"); you may not use this file except in |
| 7 | * compliance with the License. You may obtain a copy of the License at |
| 8 | * http://www.mozilla.org/NPL/ |
| 9 | * |
| 10 | * Software distributed under the License is distributed on an "AS IS" basis, |
| 11 | * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
| 12 | * for the specific language governing rights and limitations under the |
| 13 | * License. |
| 14 | * |
| 15 | * The Original Code is mozilla.org code. |
| 16 | * |
| 17 | * The Initial Developer of the Original Code is |
| 18 | * Netscape Communications Corporation. |
| 19 | * Portions created by the Initial Developer are Copyright (C) 1998 |
| 20 | * the Initial Developer. All Rights Reserved. |
| 21 | * |
| 22 | * Contributor(s): |
| 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 | /* |
| 39 | |
| 40 | Style rules specific to the directory listing window. |
| 41 | |
| 42 | */ |
| 43 | |
| 44 | @import url(chrome://communicator/skin/); |
| 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-icon.gif"); |
| 55 | } |
| 56 | |
| 57 | treeitem[selected="true"] > treerow > .treecell-filename |
| 58 | { |
| 59 | list-style-image : url("chrome://communicator/skin/directory/file-icon-sel.gif"); |
| 60 | } |
| 61 | |
| 62 | treeitem[container="true"] > treerow > .treecell-filename |
| 63 | { |
| 64 | list-style-image : url("chrome://communicator/skin/directory/file-folder-closed.gif"); |
| 65 | } |
| 66 | treeitem[container="true"][selected="true"] > treerow > .treecell-filename |
| 67 | { |
| 68 | list-style-image : url("chrome://communicator/skin/directory/file-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/file-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/file-folder-open-sel.gif"); |
| 78 | } |
| 79 | |
| 80 | |
| 81 | /* Show an animated icon when a directory/symlink is loading */ |
| 82 | treeitem[type="SYMBOLIC-LINK"][loading="true"] > treerow > .treecell-filename > .tree-cell-twisty, |
| 83 | treeitem[type="DIRECTORY"][loading="true"] > treerow > treecell > .tree-cell-twisty |
| 84 | { |
| 85 | list-style-image : url("chrome://global/skin/loading.gif"); |
| 86 | } |
| 87 | |
| 88 | /* Italicize a symbolic link and make it look like a link (it can be a dir or link) */ |
| 89 | .treecell-filename[type="SYMBOLIC-LINK"] |
| 90 | { |
| 91 | color : inherit; |
| 92 | text-decoration : inherit; |
| 93 | font-style : italic; |
| 94 | } |
| 95 | |
| 96 | treerow |
| 97 | { |
| 98 | min-height : 19px; |
| 99 | } |
| 100 | |
| 101 | /** |
| 102 | * This fixes a bug. As you scroll down in a tree the computed column width |
| 103 | * can change. That would make the columns shift durning scrolling. |
| 104 | * So we give them inital preferred widths so they aren't computed. |
| 105 | */ |
| 106 | #FilenameColumn { |
| 107 | width: 100px; |
| 108 | } |
| 109 | |
| 110 | #ContentLengthColumn { |
| 111 | width: 100px; |
| 112 | } |
| 113 | |
| 114 | #LastModColumn { |
| 115 | width: 100px; |
| 116 | } |
| 117 | |
| 118 | div.server { |
| 119 | color: blue; |
| 120 | display: block; |
| 121 | font-size: 10pt; |
| 122 | font-family: sans-serif; |
| 123 | } |
| 124 | |
| 125 | div.client { |
| 126 | color: red; |
| 127 | display: block; |
| 128 | font-size: 10pt; |
| 129 | font-family: sans-serif; |
| 130 | } |