* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
- * Robert Kaiser <KaiRo@KaiRo.at>
+ * Joe Hewitt <hewitt@netscape.com>
+ * Robert Kaiser <KaiRo@KaiRo.at>
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
*
* ***** END LICENSE BLOCK ***** */
+@import url("chrome://communicator/skin/");
+
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
-/*
-
- Style rules specific to the directory listing window.
-
-*/
-
-@import url(chrome://communicator/skin/);
-
-/* Hide twisty for files */
-.treecell-indent[type="FILE"] > .tree-cell-twisty
- {
- list-style-image : none;
- }
-
-.treecell-filename
- {
- list-style-image : url("chrome://communicator/skin/directory/file-icon.gif");
- }
-
-treeitem[selected="true"] > treerow > .treecell-filename
- {
- list-style-image : url("chrome://communicator/skin/directory/file-icon-sel.gif");
- }
-
-treeitem[container="true"] > treerow > .treecell-filename
- {
- list-style-image : url("chrome://communicator/skin/directory/file-folder-closed.gif");
- }
-treeitem[container="true"][selected="true"] > treerow > .treecell-filename
- {
- list-style-image : url("chrome://communicator/skin/directory/file-folder-closed-sel.gif");
- }
-
-treeitem[container="true"][open="true"] > treerow > .treecell-filename
- {
- list-style-image : url("chrome://communicator/skin/directory/file-folder-open.gif");
- }
-treeitem[container="true"][open="true"][selected="true"] > treerow > .treecell-filename
- {
- list-style-image : url("chrome://communicator/skin/directory/file-folder-open-sel.gif");
- }
-
-
-/* Show an animated icon when a directory/symlink is loading */
-treeitem[type="SYMBOLIC-LINK"][loading="true"] > treerow > .treecell-filename > .tree-cell-twisty,
-treeitem[type="DIRECTORY"][loading="true"] > treerow > treecell > .tree-cell-twisty
- {
- list-style-image : url("chrome://global/skin/loading.gif");
- }
-
-/* Italicize a symbolic link and make it look like a link (it can be a dir or link) */
-.treecell-filename[type="SYMBOLIC-LINK"]
- {
- color : inherit;
- text-decoration : inherit;
- font-style : italic;
- }
-
-treerow
- {
- min-height : 19px;
- }
-
-/**
- * This fixes a bug. As you scroll down in a tree the computed column width
- * can change. That would make the columns shift durning scrolling.
- * So we give them inital preferred widths so they aren't computed.
- */
-#FilenameColumn {
- width: 100px;
+/* ===== directory.css ==================================================
+ == Styles specific to the directory listing window.
+ ======================================================================= */
+
+page {
+ padding: 0px;
}
-#ContentLengthColumn {
- width: 100px;
+#tree {
+ margin: 0px !important;
+ border: none;
+}
+
+treechildren::-moz-tree-image(FilenameColumn) {
+ margin-right: 2px;
+ list-style-image: url("chrome://communicator/skin/directory/file.gif");
+}
+
+treechildren::-moz-tree-image(FilenameColumn, selected) {
+ margin-right: 2px;
+ list-style-image: url("chrome://communicator/skin/directory/file-sel.gif");
}
-#LastModColumn {
+treechildren::-moz-tree-image(FilenameColumn, container) {
+ list-style-image: url("chrome://communicator/skin/directory/folder-closed.gif");
+}
+
+treechildren::-moz-tree-image(FilenameColumn, container, selected) {
+ list-style-image: url("chrome://communicator/skin/directory/folder-closed-sel.gif");
+}
+
+treechildren::-moz-tree-image(FilenameColumn, container, open) {
+ list-style-image: url("chrome://communicator/skin/directory/folder-open.gif");
+}
+
+treechildren::-moz-tree-image(FilenameColumn, container, open, selected) {
+ list-style-image: url("chrome://communicator/skin/directory/folder-open-sel.gif");
+}
+
+treechildren::-moz-tree-image(FilenameColumn, loading) {
+ list-style-image: url("chrome://global/skin/icons/loading.gif");
+}
+
+treechildren::-moz-tree-cell-text(symbolic-link) {
+ font-style: italic;
+}
+
+/* ::::: column/row preferred sizes ::::: */
+
+#FilenameColumn,
+#LastModColumn,
+#ContentLengthColumn {
width: 100px;
}
-div.server {
- color: blue;
- display: block;
+div.server {
+ color: blue;
+ display: block;
font-size: 10pt;
font-family: sans-serif;
}
-div.client {
- color: red;
- display: block;
+div.client {
+ color: red;
+ display: block;
font-size: 10pt;
font-family: sans-serif;
}