michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* ===== tree.css =================================================== michael@0: == Styles used by the XUL outline element. michael@0: ======================================================================= */ michael@0: michael@0: @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); michael@0: michael@0: /* ::::: tree ::::: */ michael@0: michael@0: tree { michael@0: margin: 0px 4px; michael@0: border: 2px solid; michael@0: -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow; michael@0: -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow; michael@0: -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow; michael@0: -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow; michael@0: background-color: -moz-Field; michael@0: color: -moz-FieldText; michael@0: -moz-appearance: listbox; michael@0: } michael@0: michael@0: /* ::::: tree focusring ::::: */ michael@0: michael@0: .focusring > .tree-stack > .tree-rows > .tree-bodybox { michael@0: border: 1px solid transparent; michael@0: } michael@0: michael@0: .focusring:focus > .tree-stack > .tree-rows > .tree-bodybox { michael@0: border: 1px solid #000000; michael@0: } michael@0: michael@0: michael@0: /* ::::: tree rows ::::: */ michael@0: michael@0: treechildren::-moz-tree-row { michael@0: border: 1px solid transparent; michael@0: min-height: 18px; michael@0: height: 1.3em; michael@0: } michael@0: michael@0: treechildren:not(.autocomplete-treebody)::-moz-tree-row(multicol, odd) { michael@0: background-color: -moz-oddtreerow; michael@0: } michael@0: michael@0: treechildren:not(.autocomplete-treebody)::-moz-tree-row(selected) { michael@0: background-color: -moz-cellhighlight; michael@0: } michael@0: michael@0: treechildren:not(.autocomplete-treebody)::-moz-tree-row(selected, focus) { michael@0: background-color: Highlight; michael@0: } michael@0: michael@0: treechildren::-moz-tree-row(current, focus) { michael@0: border: 1px dotted Highlight; michael@0: } michael@0: michael@0: treechildren::-moz-tree-row(selected, current, focus) { michael@0: border: 1px dotted #F3D982; michael@0: } michael@0: michael@0: tree[seltype="cell"] > treechildren::-moz-tree-row, michael@0: tree[seltype="text"] > treechildren::-moz-tree-row { michael@0: border: none; michael@0: background-color: transparent; michael@0: } michael@0: michael@0: /* ::::: tree cells ::::: */ michael@0: michael@0: treechildren::-moz-tree-cell { michael@0: padding: 0px 2px 0px 2px; michael@0: } michael@0: michael@0: tree[seltype="cell"] > treechildren::-moz-tree-cell-text, michael@0: tree[seltype="text"] > treechildren::-moz-tree-cell-text, michael@0: treechildren::-moz-tree-cell-text { michael@0: color: inherit; michael@0: } michael@0: michael@0: treechildren::-moz-tree-cell-text(selected) { michael@0: color: -moz-cellhighlighttext; michael@0: } michael@0: michael@0: tree[seltype="cell"] > treechildren::-moz-tree-cell { michael@0: border: 1px solid transparent; michael@0: padding: 0px 1px 0px 1px; michael@0: } michael@0: michael@0: tree[seltype="text"] > treechildren::-moz-tree-cell-text { michael@0: border: 1px solid transparent; michael@0: padding: 0px 1px 1px 1px; michael@0: } michael@0: michael@0: tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected) { michael@0: background-color: -moz-cellhighlight; michael@0: } michael@0: tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected) { michael@0: color: -moz-cellhighlighttext; michael@0: } michael@0: michael@0: tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected) { michael@0: background-color: -moz-cellhighlight; michael@0: color: -moz-cellhighlighttext; michael@0: } michael@0: michael@0: treechildren::-moz-tree-cell-text(selected, focus) { michael@0: color: HighlightText; michael@0: } michael@0: michael@0: tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, focus) { michael@0: background-color: Highlight; michael@0: } michael@0: michael@0: tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, focus) { michael@0: background-color: Highlight; michael@0: } michael@0: michael@0: tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected, focus) { michael@0: color: HighlightText; michael@0: } michael@0: michael@0: tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, focus) { michael@0: color: HighlightText; michael@0: } michael@0: michael@0: tree[seltype="cell"] > treechildren::-moz-tree-cell(active, current, focus) { michael@0: border: 1px dotted #000000; michael@0: } michael@0: michael@0: tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, current, focus) { michael@0: border: 1px dotted #000000; michael@0: } michael@0: michael@0: tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, current, focus) { michael@0: border: 1px dotted #C0C0C0; michael@0: } michael@0: michael@0: tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, current, focus) { michael@0: border: 1px dotted #C0C0C0; michael@0: } michael@0: michael@0: /* ::::: lines connecting cells ::::: */ michael@0: michael@0: tree[seltype="cell"] > treechildren::-moz-tree-line, michael@0: tree[seltype="text"] > treechildren::-moz-tree-line, michael@0: treechildren::-moz-tree-line { michael@0: border: 1px dotted ThreeDShadow; michael@0: } michael@0: michael@0: tree[seltype="cell"] > treechildren::-moz-tree-line(active, selected, focus), michael@0: treechildren::-moz-tree-line(selected, focus) { michael@0: border: 1px dotted HighlightText; michael@0: } michael@0: michael@0: michael@0: /* ::::: tree separator ::::: */ michael@0: michael@0: treechildren::-moz-tree-separator { michael@0: border-top: 1px solid ThreeDShadow; michael@0: border-bottom: 1px solid ThreeDHighlight; michael@0: } michael@0: michael@0: michael@0: /* ::::: drop feedback ::::: */ michael@0: michael@0: tree[seltype="cell"] > treechildren::-moz-tree-cell-text(primary, dropOn), michael@0: tree[seltype="text"] > treechildren::-moz-tree-cell-text(primary, dropOn), michael@0: treechildren::-moz-tree-cell-text(primary, dropOn) { michael@0: background-color: Highlight; michael@0: color: HighlightText; michael@0: } michael@0: michael@0: treechildren::-moz-tree-drop-feedback { michael@0: background-color: Highlight; michael@0: width: 50px; michael@0: height: 2px; michael@0: -moz-margin-start: 5px; michael@0: } michael@0: michael@0: /* ::::: tree progress meter ::::: */ michael@0: michael@0: treechildren::-moz-tree-progressmeter { michael@0: margin: 2px 4px; michael@0: padding: 1px; michael@0: border: 1px solid; michael@0: border-top-color: ThreeDShadow; michael@0: border-right-color: ThreeDHighlight; michael@0: border-bottom-color: ThreeDHighlight; michael@0: border-left-color: ThreeDShadow; michael@0: background-color: -moz-Dialog; michael@0: color: ThreeDShadow; michael@0: } michael@0: michael@0: treechildren::-moz-tree-progressmeter(progressUndetermined) { michael@0: list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif"); michael@0: } michael@0: michael@0: treechildren::-moz-tree-cell-text(progressmeter) { michael@0: margin: 2px 4px; michael@0: } michael@0: michael@0: /* ::::: tree columns ::::: */ michael@0: michael@0: treecol, michael@0: treecolpicker { michael@0: -moz-appearance: treeheadercell; michael@0: -moz-box-align: center; michael@0: -moz-box-pack: center; michael@0: border: 2px solid; michael@0: -moz-border-top-colors: ThreeDHighlight ThreeDLightShadow; michael@0: -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow; michael@0: -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow; michael@0: -moz-border-left-colors: ThreeDHighlight ThreeDLightShadow; michael@0: background-color: -moz-Dialog; michael@0: color: -moz-DialogText; michael@0: padding: 0px 2px; michael@0: } michael@0: michael@0: treecol:hover, michael@0: treecolpicker:hover { michael@0: color: -moz-buttonhovertext; michael@0: } michael@0: michael@0: .treecol-image { michael@0: padding: 0px 1px; michael@0: } michael@0: michael@0: .treecol-text { michael@0: margin: 0px !important; michael@0: } michael@0: michael@0: treecol[hideheader="true"] { michael@0: -moz-appearance: none; michael@0: border: none; michael@0: padding: 0; michael@0: } michael@0: michael@0: /* ..... internal box ..... */ michael@0: michael@0: treecol:hover:active, michael@0: treecolpicker:hover:active { michael@0: color: ButtonText; michael@0: border: 2px solid; michael@0: -moz-border-top-colors: ThreeDShadow -moz-Dialog; michael@0: -moz-border-right-colors: ThreeDShadow transparent; michael@0: -moz-border-bottom-colors: ThreeDShadow transparent; michael@0: -moz-border-left-colors: ThreeDShadow -moz-Dialog; michael@0: padding-top: 0px; michael@0: padding-bottom: 0px; michael@0: -moz-padding-start: 3px; michael@0: -moz-padding-end: 1px; michael@0: } michael@0: michael@0: .treecol-image:hover:active { michael@0: padding: 0px; michael@0: -moz-padding-start: 2px; michael@0: } michael@0: michael@0: treecol:hover:active .treecol-text { michael@0: margin: 1px 0px -1px 0px !important; michael@0: } michael@0: michael@0: /* ::::: column drag and drop styles ::::: */ michael@0: michael@0: treecol[dragging="true"] { michael@0: -moz-border-top-colors: ThreeDDarkShadow transparent !important; michael@0: -moz-border-right-colors: ThreeDDarkShadow transparent!important; michael@0: -moz-border-bottom-colors: ThreeDDarkShadow transparent !important; michael@0: -moz-border-left-colors: ThreeDDarkShadow transparent !important; michael@0: background-color: ThreeDShadow !important; michael@0: color: ThreeDHighlight !important; michael@0: } michael@0: michael@0: treecol[insertafter="true"]:-moz-locale-dir(ltr), michael@0: treecol[insertbefore="true"]:-moz-locale-dir(rtl) { michael@0: -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow; michael@0: } michael@0: michael@0: treecol[insertafter="true"]:-moz-locale-dir(rtl), michael@0: treecol[insertbefore="true"]:-moz-locale-dir(ltr) { michael@0: -moz-border-left-colors: ThreeDDarkShadow ThreeDShadow; michael@0: } michael@0: michael@0: treechildren::-moz-tree-column(insertbefore) { michael@0: -moz-border-start: 1px solid ThreeDShadow; michael@0: } michael@0: michael@0: treechildren::-moz-tree-column(insertafter) { michael@0: -moz-border-end: 1px solid ThreeDShadow; michael@0: } michael@0: michael@0: /* ::::: sort direction indicator ::::: */ michael@0: michael@0: .treecol-sortdirection { michael@0: -moz-appearance: treeheadersortarrow; michael@0: } michael@0: michael@0: /* ::::: column picker ::::: */ michael@0: michael@0: .tree-columnpicker-icon { michael@0: list-style-image: url("chrome://global/skin/tree/columnpicker.gif"); michael@0: } michael@0: michael@0: /* ::::: twisty ::::: */ michael@0: michael@0: treechildren::-moz-tree-twisty { michael@0: -moz-appearance: treetwisty; michael@0: -moz-padding-end: 4px; michael@0: padding-top: 1px; michael@0: width: 9px; /* The image's width is 9 pixels */ michael@0: list-style-image: url("chrome://global/skin/tree/twisty-clsd.png"); michael@0: } michael@0: michael@0: treechildren::-moz-tree-twisty(open) { michael@0: -moz-appearance: treetwistyopen; michael@0: width: 9px; /* The image's width is 9 pixels */ michael@0: list-style-image: url("chrome://global/skin/tree/twisty-open.png"); michael@0: } michael@0: michael@0: treechildren::-moz-tree-indentation { michael@0: width: 18px; michael@0: } michael@0: michael@0: /* ::::: gridline style ::::: */ michael@0: michael@0: treechildren.gridlines::-moz-tree-cell { michael@0: border-right: 1px solid transparent !important; michael@0: border-bottom: 1px solid transparent !important; michael@0: } michael@0: michael@0: treechildren.gridlines::-moz-tree-row { michael@0: border: none; michael@0: } michael@0: michael@0: /* ::::: editable tree ::::: */ michael@0: michael@0: treechildren::-moz-tree-row(selected, editing) { michael@0: background-color: transparent; michael@0: border: none; michael@0: } michael@0: michael@0: treechildren::-moz-tree-cell-text(selected, editing) { michael@0: color: inherit; michael@0: } michael@0: michael@0: .tree-input { michael@0: -moz-appearance: none; michael@0: border: 1px solid Highlight; michael@0: -moz-border-top-colors: Highlight; michael@0: -moz-border-bottom-colors: Highlight; michael@0: -moz-border-left-colors: Highlight; michael@0: -moz-border-right-colors: Highlight; michael@0: margin: 0; michael@0: -moz-margin-start: -4px; michael@0: padding: 1px; michael@0: }