home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 March / PCWorld_2005-03_cd.bin / komunikace / kmeleon / kmeleon09.exe / classic.jar / skin / classic / global / tree.css < prev    next >
Cascading Style Sheet File  |  2004-03-25  |  9KB  |  327 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.  *   Dean Tessman (dean_tessman@hotmail.com)
  23.  */
  24.  
  25. /* ===== tree.css ===================================================
  26.   == Styles used by the XUL outline element.
  27.   ======================================================================= */
  28.  
  29. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  30.  
  31. /* ::::: tree ::::: */
  32.  
  33. tree {
  34.   margin: 0px 4px;
  35.   border: 2px solid;
  36.   -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
  37.   -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
  38.   -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
  39.   -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
  40.   background-color: -moz-Field;
  41.   color: -moz-FieldText;
  42.   -moz-appearance: treeview;
  43. }
  44.  
  45. /* ::::: tree focusring ::::: */
  46.  
  47. .focusring > .tree-rows > .tree-bodybox {
  48.   border: 1px solid transparent;  
  49. }
  50.  
  51. .focusring:focus > .tree-rows > .tree-bodybox {
  52.   border: 1px solid #000000;
  53. }
  54.  
  55. /* ::::: tree rows ::::: */
  56.  
  57. treechildren::-moz-tree-row {
  58.   border: 1px solid transparent;
  59.   background-color: transparent;
  60.   min-height: 18px;
  61.   height: 1.3em;
  62. }
  63.  
  64. treechildren::-moz-tree-row(selected) {
  65.   background-color: -moz-Dialog;
  66. }
  67.  
  68. treechildren::-moz-tree-row(selected, focus) {
  69.   background-color: Highlight;
  70. }
  71.  
  72. treechildren::-moz-tree-row(current, focus) {
  73.   border: 1px dotted #000000;
  74. }
  75.  
  76. treechildren::-moz-tree-row(selected, current, focus) {
  77.   border: 1px dotted #C0C0C0;
  78. }
  79.  
  80. tree[selstyle="primary"] > treechildren::-moz-tree-row {
  81.   border: none;
  82.   background-color: transparent;
  83. }
  84.  
  85. /* ::::: tree cells ::::: */
  86.  
  87. treechildren::-moz-tree-cell {
  88.   padding: 0px 2px 0px 2px;
  89. }
  90.  
  91. tree[selstyle="primary"] > treechildren::-moz-tree-cell-text,
  92. treechildren::-moz-tree-cell-text {
  93.   color: inherit;
  94. }
  95.  
  96. treechildren::-moz-tree-cell-text(selected) {
  97.   color: -moz-DialogText;
  98. }
  99.  
  100. tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary) {
  101.   border: 1px solid transparent;
  102.   padding: 0px 1px 1px 1px;
  103. }
  104.  
  105. tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, selected) {
  106.   background-color: -moz-Dialog;
  107.   color: -moz-DialogText;
  108. }
  109.  
  110. treechildren::-moz-tree-cell-text(selected, focus) {
  111.   color: HighlightText;
  112. }
  113.  
  114. tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, selected, focus) {
  115.   background-color: Highlight;
  116.   color: HighlightText;
  117. }
  118.  
  119. tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, current, focus) {
  120.   border: 1px dotted #000000;
  121. }
  122.  
  123. tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, selected, current, focus) {
  124.   border: 1px dotted #C0C0C0;
  125. }
  126.  
  127.  
  128. /* ::::: lines connecting cells ::::: */
  129.  
  130. tree[selstyle="primary"] > treechildren::-moz-tree-line,
  131. treechildren::-moz-tree-line {
  132.   border: 1px dotted ThreeDShadow;
  133. }
  134.  
  135. treechildren::-moz-tree-line(selected, focus) {
  136.   border: 1px dotted HighlightText;
  137. }
  138.  
  139.  
  140. /* ::::: tree separator ::::: */
  141.  
  142. treechildren::-moz-tree-separator {
  143.   border-top: 1px solid ThreeDShadow;
  144.   border-bottom: 1px solid ThreeDHighlight;
  145. }
  146.  
  147.  
  148. /* ::::: drop feedback ::::: */
  149.  
  150. tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, dropOn),
  151. treechildren::-moz-tree-cell-text(primary, dropOn) {
  152.   background-color: Highlight;
  153.   color: HighlightText;
  154. }
  155.  
  156. treechildren::-moz-tree-drop-feedback {
  157.   background-color: Highlight;
  158.   width: 50px;
  159.   height: 2px;
  160.   margin-left: 5px;
  161. }
  162.  
  163. /* ::::: tree progress meter ::::: */
  164.  
  165. treechildren::-moz-tree-progressmeter {
  166.   margin: 2px 4px;
  167.   border: 2px solid;
  168.   -moz-border-top-colors: ThreeDShadow -moz-Dialog;
  169.   -moz-border-right-colors: ThreeDHighlight -moz-Dialog;
  170.   -moz-border-bottom-colors: ThreeDHighlight -moz-Dialog;
  171.   -moz-border-left-colors: ThreeDShadow -moz-Dialog;
  172.   background-color: -moz-Dialog;
  173.   color: ThreeDShadow;
  174. }
  175.  
  176. treechildren::-moz-tree-progressmeter(progressUndetermined) {
  177.   list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif");
  178. }
  179.  
  180. treechildren::-moz-tree-cell-text(progressmeter) {
  181.   margin: 2px 4px;
  182. }
  183.  
  184. /* ::::: tree columns ::::: */
  185.  
  186. treecol,
  187. treecolpicker { 
  188.   -moz-appearance: treeheadercell;
  189.   -moz-box-align: center;
  190.   -moz-box-pack: center;
  191.   border: 2px solid;
  192.   -moz-border-top-colors: ThreeDHighlight ThreeDLightShadow;
  193.   -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
  194.   -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
  195.   -moz-border-left-colors: ThreeDHighlight ThreeDLightShadow;
  196.   background-color: -moz-Dialog;
  197.   color: -moz-DialogText;
  198.   padding: 1px 4px 0px 5px;
  199. }
  200.  
  201. .treecol-image {
  202.   padding: 1px 1px 0px 2px;
  203. }
  204.  
  205. .treecol-text {
  206.   margin: 0px !important;
  207. }
  208.  
  209. treecol[hideheader="true"] {
  210.   -moz-appearance: none;
  211.   border: none;
  212.   padding: 0;
  213. }
  214.  
  215. /* ..... internal box ..... */
  216.  
  217. treecol:hover:active,
  218. treecolpicker:hover:active {
  219.   border-top: 2px solid;
  220.   border-right: 1px solid;
  221.   border-bottom: 1px solid;
  222.   border-left: 2px solid;
  223.   -moz-border-top-colors: ThreeDShadow -moz-Dialog;
  224.   -moz-border-right-colors: ThreeDShadow;
  225.   -moz-border-bottom-colors: ThreeDShadow;
  226.   -moz-border-left-colors: ThreeDShadow -moz-Dialog;
  227. }
  228.  
  229.  
  230. /* ::::: column drag and drop styles ::::: */
  231.  
  232. treecol[dragging="true"] {
  233.   -moz-border-top-colors: ThreeDDarkShadow transparent !important;
  234.   -moz-border-right-colors: ThreeDDarkShadow transparent!important;
  235.   -moz-border-bottom-colors: ThreeDDarkShadow transparent !important;
  236.   -moz-border-left-colors: ThreeDDarkShadow transparent !important;
  237.   background-color: ThreeDShadow !important;
  238.   color: ThreeDHighlight !important;
  239. }
  240.  
  241. treecol[insertafter="true"] {
  242.   -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
  243. }
  244.  
  245. treecol[insertbefore="true"] {
  246.   -moz-border-left-colors: ThreeDDarkShadow ThreeDShadow;
  247. }
  248.  
  249. treechildren::-moz-tree-column(insertbefore) {
  250.   border-left: 1px solid ThreeDShadow;
  251. }
  252.  
  253. treechildren::-moz-tree-column(insertafter) {
  254.   border-right: 1px solid ThreeDShadow;
  255. }
  256.  
  257. /* ::::: sort direction indicator :::::  */
  258.  
  259. .treecol-sortdirection {
  260.   list-style-image: none;
  261.   width: 8px;  /* The image's width is 7 pixels */
  262. }
  263.  
  264. .treecol-sortdirection[sortDirection="ascending"] {
  265.   list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
  266. }
  267.  
  268. .treecol-sortdirection[sortDirection="descending"] {
  269.   list-style-image: url("chrome://global/skin/tree/sort-dsc.gif");
  270. }
  271.  
  272. /* ::::: column picker :::::  */
  273.  
  274. .tree-columnpicker-icon {
  275.   list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
  276. }
  277.  
  278. /* ::::: twisty :::::  */
  279.  
  280. treechildren::-moz-tree-twisty {
  281.   padding-right: 3px;
  282.   width: 9px; /* The image's width is 9 pixels */
  283.   list-style-image: url("chrome://global/skin/tree/twisty-clsd.gif");
  284. }
  285.  
  286. treechildren::-moz-tree-twisty(open) {
  287.   width: 9px; /* The image's width is 9 pixels */
  288.   list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
  289. }
  290.  
  291. treechildren::-moz-tree-indentation {
  292.   width: 16px;
  293. }
  294.  
  295. /* ::::: gridline style ::::: */
  296.  
  297. treechildren.gridlines::-moz-tree-cell {
  298.   border-right: 1px solid GrayText;
  299.   border-bottom: 1px solid GrayText;
  300. }
  301.  
  302. treechildren.gridlines::-moz-tree-row {
  303.   border: none;
  304. }
  305.  
  306. /* ::::: alternating background ::::: */
  307.  
  308. treechildren[alternatingbackground="true"]::-moz-tree-row(odd) {
  309.   background-color: #f3f3f3;
  310. }
  311.  
  312. treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected) {
  313.   background-color: -moz-Dialog;
  314. }
  315.  
  316. treechildren[alternatingbackground="true"]::-moz-tree-cell-text(odd, selected) {
  317.   color: -moz-DialogText;
  318. }
  319.  
  320. treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected, focus) {
  321.   background-color: Highlight;
  322. }
  323.  
  324. treechildren[alternatingbackground="true"]::-moz-tree-cell-text(odd, selected, focus) {
  325.   color: HighlightText;
  326. }
  327.