home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 114 / CDRom114.iso / internet / temathun / Charamel.jar / global / filepicker.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2004-07-24  |  3.4 KB  |  130 lines

  1. /*
  2.  * The contents of this file are subject to the Netscape Public
  3.  * License Version 1.1 (the "License"); you may not use this file
  4.  * except in compliance with the License. You may obtain a copy of
  5.  * the License at http://www.mozilla.org/NPL/
  6.  *
  7.  * Software distributed under the License is distributed on an "AS
  8.  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  9.  * implied. See the License for the specific language governing
  10.  * rights and limitations under the License.
  11.  *
  12.  * The Original Code is Mozilla Communicator client code, released
  13.  * March 31, 1998.
  14.  *
  15.  * The Initial Developer of the Original Code is Netscape
  16.  * Communications Corporation. Portions created by Netscape are
  17.  * Copyright (C) 1998-2001 Netscape Communications Corporation. All
  18.  * Rights Reserved.
  19.  *
  20.  * Contributor(s):
  21.  *   Joe Hewitt (hewitt@netscape.com)
  22.  *   Brian Ryner (bryner@brianryner.com)
  23.  *   Alex W. (Charamel) <lucx@shaw.ca>
  24.  
  25. /* ===== filepicker.css =================================================
  26.   == Styles used by the File Picker dialog.
  27.   ======================================================================= */
  28.  
  29. @import url("chrome://global/skin/");
  30.  
  31. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  32.  
  33. /* ::::: column widths ::::: */
  34.  
  35. #FilenameColumn,
  36. #ContentLengthColumn,
  37. #LastModifiedDateColumn {
  38.   width: 100px;
  39. }
  40.  
  41. /* ::::: file/directory items ::::: */
  42.  
  43. treechildren::-moz-tree-image(FilenameColumn, directory) {
  44.   list-style-image: url("chrome://global/skin/filepicker/folder.png");
  45. }
  46.  
  47. treechildren::-moz-tree-image(FilenameColumn, file) {
  48.   list-style-image: url("chrome://global/skin/filepicker/document.png");
  49. }
  50.  
  51. /* ::::: focus tree box ::::: */
  52.  
  53. #directoryTree > treerows > .tree-bodybox {
  54.   border: 1px solid transparent;
  55. }
  56.  
  57. #directoryTree:focus > treerows > .tree-bodybox {
  58.   border-color: #3FBCFC;
  59. }
  60.  
  61. /* ::::: button items ::::: */
  62.  
  63.  
  64. /*remove startcap; button padding & round corners*/
  65. .up-button,
  66. .home-button,
  67. .new-dir-button{
  68. background:none;
  69. max-width:25px;
  70. -moz-border-radius:5px;
  71. padding-left:2px;
  72. margin:0px 2px;
  73. }
  74.  
  75. /*remove endcap & padding*/
  76. .up-button .button-box,
  77. .home-button .button-box,
  78. .new-dir-button .button-box{
  79. background:none;
  80. padding-right:0px;
  81. }
  82.  
  83.  
  84. /*hide labels*/
  85. .up-button .button-text,
  86. .home-button .button-text,
  87. .new-dir-button .button-text{
  88. display:none;
  89. }
  90.  
  91. /*hover background*/
  92. .up-button:hover,
  93. .home-button:hover,
  94. .new-dir-button:hover{
  95. background-color:#F6F1E6;
  96. }
  97.  
  98. .up-button {
  99. list-style-image: url("chrome://global/skin/filepicker/icons.png");
  100. -moz-image-region: rect(0px 20px 16px 0px);
  101. }
  102. .up-button:active {
  103. -moz-image-region: rect(16px 20px 32px 0px);
  104. }
  105. .up-button[disabled="true"] {
  106. -moz-image-region: rect(32px 20px 48px 0px);
  107. }
  108.  
  109. .home-button {
  110. list-style-image: url("chrome://global/skin/filepicker/icons.png");
  111. -moz-image-region: rect(0px 40px 16px 20px);
  112. }
  113. .home-button:active {
  114. -moz-image-region: rect(16px 40px 32px 20px);
  115. }
  116. .home-button[disabled="true"] {
  117. -moz-image-region: rect(32px 40px 48px 20px);
  118. }
  119.  
  120. .new-dir-button {
  121. list-style-image: url("chrome://global/skin/filepicker/icons.png");
  122. -moz-image-region: rect(0px, 60px, 16px, 40px);
  123. }
  124. .new-dir-button:active {
  125. -moz-image-region: rect(16px, 60px, 32px, 40px);
  126. }
  127. .new-dir-button[disabled="true"] {
  128. -moz-image-region: rect(32px, 60px, 48px, 40px);
  129. }
  130.