update to suite default status of 2009-01-30: bug 474807 - replace margin/padding...
[themes.git] / LCARStrek / communicator / directory / directory.css
index fa0976d6b0607a32cf2958ee19150c4e35255e18..2107b99106529c67c9bb88a1995eb47a97321a42 100644 (file)
@@ -19,7 +19,8 @@
  * 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/);
+@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.
-*/
+/* ===== directory.css ==================================================
+  == Styles specific to the directory listing window.
+  ======================================================================= */
 
+page {
+  padding: 0px;
+}
 
-/* Hide twisty for files */
-.treecell-indent[type="FILE"] > .tree-cell-twisty {
-  list-style-image: none;
+#tree {
+  margin: 0px !important;
+  border: none;
 }
 
-.treecell-filename {
+treechildren::-moz-tree-image(FilenameColumn) {
+  -moz-margin-end: 2px;
   list-style-image: url("chrome://communicator/skin/directory/file.gif");
-}  
-  
-treeitem[selected="true"] > treerow > .treecell-filename {
+}
+
+treechildren::-moz-tree-image(FilenameColumn, selected) {
+  -moz-margin-end: 2px;
   list-style-image: url("chrome://communicator/skin/directory/file-sel.gif");
 }
-  
-treeitem[container="true"] > treerow > .treecell-filename {
+
+treechildren::-moz-tree-image(FilenameColumn, container) {
   list-style-image: url("chrome://communicator/skin/directory/folder-closed.gif");
 }
 
-treeitem[container="true"][selected="true"] > treerow > .treecell-filename {
+treechildren::-moz-tree-image(FilenameColumn, container, selected) {
   list-style-image: url("chrome://communicator/skin/directory/folder-closed-sel.gif");
 }
 
-treeitem[container="true"][open="true"] > treerow > .treecell-filename {
+treechildren::-moz-tree-image(FilenameColumn, container, open) {
   list-style-image: url("chrome://communicator/skin/directory/folder-open.gif");
 }
 
-treeitem[container="true"][open="true"][selected="true"] > treerow > .treecell-filename {
+treechildren::-moz-tree-image(FilenameColumn, container, open, selected) {
   list-style-image: url("chrome://communicator/skin/directory/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 {
+
+treechildren::-moz-tree-image(FilenameColumn, loading) {
   list-style-image: url("chrome://global/skin/icons/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;
+treechildren::-moz-tree-cell-text(symbolic-link) {
   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;
-}
+/* ::::: column/row preferred sizes ::::: */
 
+#FilenameColumn,
+#LastModColumn,
 #ContentLengthColumn {
   width: 100px;
 }
 
-#LastModColumn {
-  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;
 }