pjs/themes/modern/global/splitter.css

151 строка
4.7 KiB
CSS

/*
* 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 Communicator client code, released
* March 31, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2001 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Joe Hewitt (hewitt@netscape.com)
*/
/* ===== splitter.css ===================================================
== Styles used by the XUL splitter element.
======================================================================= */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* ::::: splitter (vertical) ::::: */
splitter {
-moz-binding: url("chrome://global/skin/globalBindings.xml#splitter");
cursor: e-resize;
border-right: 1px solid #000000;
border-left: 1px solid #000000;
min-width: 1px;
background-color: #7B969C;
text-align: center;
vertical-align: middle;
}
splitter > .splitter-internal-box {
border-top: 1px solid #C6D3D6;
border-right: 1px solid #63717B;
border-bottom: 1px solid #63717B;
border-left: 1px solid #C6D3D6;
min-width: 5px;
}
/* ::::: splitter (horizontal) ::::: */
rows > splitter,
window[orient="vertical"] > splitter,
box[orient="vertical"] > splitter {
cursor: n-resize;
border-top: 1px solid #000000;
border-right: none;
border-bottom: 1px solid #000000;
border-left: none;
min-width: 1px;
}
rows > splitter > .splitter-internal-box,
window[orient="vertical"] > splitter > .splitter-internal-box,
box[orient="vertical"] > splitter > .splitter-internal-box {
min-height: 5px;
}
/* ::::: splitter grippy ::::: */
grippy {
cursor: pointer;
width: 5px;
height: 63px;
background: transparent no-repeat 50% 50%;
}
window[orient="vertical"] > splitter > grippy,
box[orient="vertical"] > splitter > grippy {
width: 63px;
height: 5px;
}
/* ..... normal state ..... */
/* vertical grippies */
splitter[collapse="before"] > grippy {
background-image: url("chrome://global/skin/splitter/grip-vrt-before.gif");
}
splitter[collapse="after"] > grippy {
background-image: url("chrome://global/skin/splitter/grip-vrt-after.gif");
}
/* horizontal grippies */
window[orient="vertical"] > splitter[collapse="before"] > grippy,
box[orient="vertical"] > splitter[collapse="before"] > grippy {
background-image: url("chrome://global/skin/splitter/grip-hrz-before.gif");
}
window[orient="vertical"] > splitter[collapse="after"] > grippy,
box[orient="vertical"] > splitter[collapse="after"] > grippy {
background-image: url("chrome://global/skin/splitter/grip-hrz-after.gif");
}
/* ..... active state ..... */
/* vertical grippies */
splitter[collapse="before"] > grippy:hover:active {
background-image: url("chrome://global/skin/splitter/grip-vrt-active.gif");
}
splitter[collapse="after"] > grippy:hover:active {
background-image: url("chrome://global/skin/splitter/grip-vrt-active.gif");
}
/* horizontal grippies */
window[orient="vertical"] > splitter[collapse="before"] > grippy:hover:active,
box[orient="vertical"] > splitter[collapse="before"] > grippy:hover:active {
background-image: url("chrome://global/skin/splitter/grip-hrz-active.gif");
}
window[orient="vertical"] > splitter[collapse="after"] > grippy:hover:active,
box[orient="vertical"] > splitter[collapse="after"] > grippy:hover:active {
background-image: url("chrome://global/skin/splitter/grip-hrz-active.gif");
}
/* ..... collapsed state ..... */
/* vertical grippies */
splitter[collapse="before"][state="collapsed"] > grippy {
background-image: url("chrome://global/skin/splitter/grip-vrt-after.gif");
}
splitter[collapse="after"][state="collapsed"] > grippy {
background-image: url("chrome://global/skin/splitter/grip-vrt-before.gif");
}
/* horizontal grippies */
window[orient="vertical"] > splitter[collapse="before"][state="collapsed"] > grippy,
box[orient="vertical"] > splitter[collapse="before"][state="collapsed"] > grippy {
background-image: url("chrome://global/skin/splitter/grip-hrz-after.gif");
}
window[orient="vertical"] > splitter[collapse="after"][state="collapsed"] > grippy,
box[orient="vertical"] > splitter[collapse="after"][state="collapsed"] > grippy {
background-image: url("chrome://global/skin/splitter/grip-hrz-before.gif");
}