sspitzer%netscape.com 788e023aac fix for #57661. fix some icon / twisty alignment issues.
r=shliang, sr=sspitzer.  patch by andreas.premstaller@uibk.ac.at (Andreas Premstaller)


git-svn-id: svn://10.0.0.236/trunk@112638 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 03:02:05 +00:00

256 lines
6.5 KiB
CSS

/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Netscape Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Joe Hewitt <hewitt@netscape.com>
*
* 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
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/* ===== tree.css =======================================================
== Styles used by XUL tree-related elements.
======================================================================= */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* ::::: tree ::::: */
tree {
margin: 2px 4px;
border-top: 1px solid #BEC3D3 !important;
border-right: 1px solid #F8FAFE !important;
border-bottom: 1px solid #F8FAFE !important;
border-left: 1px solid #BEC3D3 !important;
border-spacing: 0px;
background-color: #FFFFFF;
}
tree > .tree-container-treerows {
border: 1px solid #5D616E;
}
/* ::::: treeitem ::::: */
treeitem {
list-style-image: none;
}
/* ::::: treerow ::::: */
treerow {
border-right: 1px solid transparent;
border-left: 1px solid transparent;
}
treeitem[selected="true"] > treerow {
background-color: #C7D0D9;
color: #000000;
}
tree:focus > treechildren treeitem[selected="true"] > treerow,
treeitem[dd-dropon="true"] > treerow {
background-color: #424F63;
color: #FFFFFF;
}
treehead > treeitem > treerow,
treehead > treerow {
border: none;
}
/* :::::: treecell ::::: */
treecell {
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
padding: 0px 0px 1px 2px;
white-space: nowrap;
}
tree:focus > treechildren treeitem[selected="true"][current="true"] > treerow > treecell {
border-top-color: #000000;
border-bottom-color: #000000;
}
.tree-cell-text {
margin: 0px !important;
}
/* ::::: iconic treecell ::::: */
.tree-cell-icon,
.tree-cell-primary-icon,
.tree-cell-primary-icon-inline-edit-folder {
padding-right: 2px;
list-style-image: inherit;
}
.treecell-indent > .tree-cell-primary-icon {
padding-left: 12px;
}
treeitem[container="true"] > treerow > .treecell-indent > .tree-cell-primary-icon {
padding-left: 0px;
}
/* :::::: header treecell ::::: */
.treecell-header,
.treecell-inset-header,
.treecell-header-image {
border-left: 1px solid #EEF0F3;
border-top: 1px solid #EEF0F3;
border-right: 1px solid #63676B;
border-bottom: 1px solid #63676B;
padding: 0px;
background-color: #C7D0D9;
color: #000000;
}
.treecell-header-box,
.treecell-header-image-box {
border-left: 1px solid #C7D0D9;
border-top: 1px solid #C7D0D9;
border-right: 1px solid #A5ABB0;
border-bottom: 1px solid #A5ABB0;
}
.treecell-header-box {
padding: 0px 4px 0px 4px;
}
.treecell-header-image-box {
padding: 0px 1px 0px 1px;
}
.tree-header-text {
margin: 0px !important;
}
.treecell-header:hover:active,
.treecell-header-image:hover:active,
.treecell-inset-header:hover:active {
border: 1px solid #A5ABB0 !important;
}
.treecell-header:hover:active > .treecell-header-box,
.treecell-inset-header:hover:active > .treecell-header-box,
.treecell-header-image:hover:active > .treecell-header-image-box {
border-top: 1px solid transparent;
border-right: none;
border-bottom: none;
border-left: 1px solid transparent;
}
.treecell-header:hover:active > .treecell-header-box,
.treecell-inset-header:hover:active > .treecell-header-box {
padding: 1px 4px 0px 5px;
}
.treecell-header:hover:active > .treecell-header-box,
.treecell-inset-header:hover:active > .treecell-header-box {
padding: 1px 4px 0px 5px;
}
.treecell-header-image:hover:active > .treecell-header-image-box {
padding: 1px 1px 0px 2px;
}
.treecell-image {
padding: 0px;
}
/* ::::: property list treecell ::::: */
treecell.propertylist {
border-right: 1px solid #CCCCCC;
border-bottom: 1px solid #CCCCCC;
padding-left: 5px;
}
/* ::::: treecell-editable ::::: */
treerow[mode="inline-edit"] {
background-color: transparent !important;
}
treerow[mode="inline-edit"] > .treecell-editable {
border: none;
}
.inline-edit-cell-box {
margin-left: 2px;
}
.inline-edit-cell-box[mode="edit"] {
margin-left: 0px;
}
/* ::::: twisty ::::: */
.tree-cell-twisty {
-moz-user-focus: ignore;
padding-right: 2px;
list-style-image: url("chrome://global/skin/tree/twisty-clsd.gif");
}
treeitem[container="true"][open="true"] > treerow > treecell > .tree-cell-twisty {
list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
}
.tree-cell-twisty[disabled="true"] {
list-style-image: none;
}
treeitem[empty="true"] > treerow > treecell > .tree-cell-twisty {
visibility: hidden;
}
/* ::::: sort direction indicator ::::: */
.tree-header-sortdirection {
list-style-image: none;
}
.sortDirectionIndicator[sortDirection="ascending"] > .treecell-header-box > .tree-header-sortdirection {
list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
}
.sortDirectionIndicator[sortDirection="descending"] > .treecell-header-box > .tree-header-sortdirection {
list-style-image: url("chrome://global/skin/tree/sort-dsc.gif");
}
/* ::::: column picker ::::: */
.treecell-popup-icon {
list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
}