зеркало из https://github.com/mozilla/pjs.git
332 строки
9.2 KiB
CSS
332 строки
9.2 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)
|
|
*/
|
|
|
|
/* ===== tabcontrol.css =================================================
|
|
== Styles used by XUL tab-related elements.
|
|
======================================================================= */
|
|
|
|
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
|
|
|
/* ::::: tabbox ::::: */
|
|
|
|
tabbox {
|
|
-moz-binding: url("chrome://global/skin/globalBindings.xml#tabbox");
|
|
}
|
|
|
|
.tab-border-top-left,
|
|
.tabbox-top-right {
|
|
height: 2px;
|
|
background: url("chrome://global/skin/tabcontrol/tabbox-mid.gif") repeat-x bottom;
|
|
}
|
|
|
|
.tabbox-top-left-cap {
|
|
width: 2px;
|
|
height: 2px;
|
|
background: url("chrome://global/skin/tabcontrol/tabbox-lft.gif") no-repeat bottom;
|
|
}
|
|
|
|
.tabbox-top-right-cap {
|
|
width: 2px;
|
|
height: 2px;
|
|
background: url("chrome://global/skin/tabcontrol/tabbox-rit.gif") no-repeat bottom;
|
|
}
|
|
|
|
/* ::::: tabpanel ::::: */
|
|
|
|
tabpanel {
|
|
border-top: none;
|
|
border-right: 1px solid #313948;
|
|
border-bottom: 1px solid #313948;
|
|
border-left: 1px solid #313948;
|
|
padding: 5px;
|
|
background-color: #C2D0D0;
|
|
}
|
|
|
|
/* ::::: tab ::::: */
|
|
|
|
tab {
|
|
-moz-binding: url("chrome://global/skin/globalBindings.xml#tab");
|
|
color: #1C1D1F;
|
|
font: menu;
|
|
}
|
|
|
|
.tab-text {
|
|
padding: 3px 0px 3px 0px;
|
|
}
|
|
|
|
.tab-image-left-top {
|
|
width: 11px;
|
|
height: 19px;
|
|
background: url("chrome://global/skin/tabcontrol/tab-usel-lft.gif") no-repeat;
|
|
}
|
|
|
|
.tab-image-left-mid {
|
|
border-left: 1px solid #333D4B;
|
|
background-color: #9BA8AA;
|
|
}
|
|
|
|
.tab-image-left-btm {
|
|
border-top: 1px solid #333D4B;
|
|
border-bottom: 1px solid #D7E2E3;
|
|
}
|
|
|
|
.tab-image-mid {
|
|
background: url("chrome://global/skin/tabcontrol/tab-usel-mid.gif") #9BA8AA repeat-x top;
|
|
}
|
|
|
|
.tab-image-mid-btm {
|
|
border-top: 1px solid #333D4B;
|
|
border-bottom: 1px solid #D7E2E3;
|
|
}
|
|
|
|
.tab-image-right-top {
|
|
width: 11px;
|
|
height: 19px;
|
|
background: url("chrome://global/skin/tabcontrol/tab-usel-rit.gif") no-repeat;
|
|
}
|
|
|
|
.tab-image-right-mid {
|
|
background: url("chrome://global/skin/tabcontrol/tab-usel-rit-mid.gif") repeat-y;
|
|
}
|
|
|
|
.tab-image-right-btm {
|
|
border-top: 1px solid #333D4B;
|
|
border-bottom: 1px solid #D7E2E3;
|
|
min-height: 2px;
|
|
}
|
|
|
|
/* ..... active state ..... */
|
|
|
|
tab:hover:active {
|
|
color: #FEFEFE;
|
|
}
|
|
|
|
tab:hover:active > box > box > .tab-image-left-top {
|
|
background-image: url("chrome://global/skin/tabcontrol/tab-act-lft.gif");
|
|
}
|
|
|
|
tab:hover:active > box > box > .tab-image-left-mid {
|
|
background-image: url("chrome://global/skin/tabcontrol/tab-act-lft-mid.gif");
|
|
}
|
|
|
|
tab:hover:active > box > .tab-image-mid {
|
|
background-image: url("chrome://global/skin/tabcontrol/tab-act-mid.gif");
|
|
background-color: #7A878C;
|
|
}
|
|
|
|
tab:hover:active > box > box > .tab-image-right-top {
|
|
background-image: url("chrome://global/skin/tabcontrol/tab-act-rit.gif");
|
|
}
|
|
|
|
tab:hover:active > box > box > .tab-image-right-mid {
|
|
background-image: url("chrome://global/skin/tabcontrol/tab-act-rit-mid.gif");
|
|
}
|
|
|
|
/* ..... selected state ..... */
|
|
|
|
tab[selected="true"],
|
|
tab:hover:active[selected="true"] {
|
|
color: #1C1D1F;
|
|
}
|
|
|
|
.tab-image-left-top[selected="true"],
|
|
tab:hover:active[selected="true"] > box > box > .tab-image-left-top {
|
|
background-image: url("chrome://global/skin/tabcontrol/tab-sel-lft.gif");
|
|
}
|
|
|
|
.tab-image-left-mid[selected="true"],
|
|
tab:hover:active[selected="true"] > box > box > .tab-image-left-mid {
|
|
background-image: none;
|
|
background-color: #C3D1D1;
|
|
}
|
|
|
|
.tab-image-left-btm[selected="true"],
|
|
tab:hover:active[selected="true"] > box > box > .tab-image-left-btm {
|
|
background: url("chrome://global/skin/tabcontrol/tab-sel-left-btm.gif");
|
|
border: none;
|
|
height: 2px;
|
|
}
|
|
|
|
.tab-image-mid[selected="true"],
|
|
tab:hover:active[selected="true"] > box > .tab-image-mid {
|
|
background-image: url("chrome://global/skin/tabcontrol/tab-sel-mid.gif");
|
|
background-color: #C3D1D1;
|
|
}
|
|
|
|
.tab-image-mid-btm[selected="true"],
|
|
tab:hover:active[selected="true"] > box > box > .tab-image-mid-btm {
|
|
border-top: 1px solid #919FA3;
|
|
border-bottom: 1px solid #F4F7F9;
|
|
}
|
|
|
|
.tab-image-right-top[selected="true"],
|
|
tab:hover:active[selected="true"] > box > box > .tab-image-right-top {
|
|
background-image: url("chrome://global/skin/tabcontrol/tab-sel-rit.gif");
|
|
}
|
|
|
|
.tab-image-right-mid[selected="true"],
|
|
tab:hover:active[selected="true"] > box > box > .tab-image-right-mid {
|
|
background-image: url("chrome://global/skin/tabcontrol/tab-sel-rit-mid.gif");
|
|
}
|
|
|
|
.tab-image-right-btm[selected="true"],
|
|
tab:hover:active[selected="true"] > box > box > .tab-image-right-btm {
|
|
border: none;
|
|
height: 2px;
|
|
background: url("chrome://global/skin/tabcontrol/tab-sel-rit-btm.gif");
|
|
}
|
|
|
|
/* ::::: tab-bottom ::::::::::
|
|
:: Tabs that are attached to the bottom of a panel, but not necessarily
|
|
:: a tabpanel.
|
|
::::: */
|
|
|
|
.tab-bottom {
|
|
min-height: 21px;
|
|
}
|
|
|
|
.tab-bottom > .tab-top > .tab-image-left > .tab-image-left-top {
|
|
border-top: 1px solid #919FA3;
|
|
border-bottom: 1px solid #333D4B;
|
|
height: 0px;
|
|
background: none;
|
|
}
|
|
|
|
.tab-bottom > .tab-top > .tab-image-left > .tab-image-left-middle {
|
|
border-left: 1px solid #333D4B;
|
|
background-color: #9BA8AA;
|
|
}
|
|
|
|
.tab-bottom > .tab-top > .tab-image-left > .tab-image-left-btm {
|
|
border: none;
|
|
width: 11px;
|
|
height: 19px;
|
|
background: url("chrome://global/skin/tabcontrol/tab-bot-usel-lft.gif") no-repeat;
|
|
}
|
|
|
|
.tab-bottom > .tab-top > .tab-image-mid > .tab-image-mid-top {
|
|
border-top: 1px solid #919FA3;
|
|
border-bottom: 1px solid #333D4B;
|
|
}
|
|
|
|
.tab-bottom > .tab-top > .tab-image-mid > .tab-image-mid-mid {
|
|
background: url("chrome://global/skin/tabcontrol/tab-bot-usel-mid.gif") #9BA8AA repeat-x bottom;
|
|
}
|
|
|
|
.tab-bottom > .tab-top > .tab-image-mid > .tab-image-mid-btm {
|
|
border: none;
|
|
}
|
|
|
|
.tab-bottom > .tab-top > .tab-image-right > .tab-image-right-top {
|
|
border-top: 1px solid #919FA3;
|
|
border-bottom: 1px solid #333D4B;
|
|
height: 0px;
|
|
background: none;
|
|
}
|
|
|
|
.tab-bottom > .tab-top > .tab-image-right > .tab-image-right-mid {
|
|
background: url("chrome://global/skin/tabcontrol/tab-usel-right-mid.gif") repeat-y;
|
|
}
|
|
|
|
.tab-bottom > .tab-top > .tab-image-right > .tab-image-right-btm {
|
|
border: none;
|
|
width: 11px;
|
|
height: 19px;
|
|
background: url("chrome://global/skin/tabcontrol/tab-bot-usel-rit.gif") no-repeat;
|
|
}
|
|
|
|
/* ..... active state ..... */
|
|
|
|
.tab-bottom:hover:active > .tab-top > .tab-image-left > .tab-image-left-btm {
|
|
background-image: url("chrome://global/skin/tabcontrol/tab-bot-act-lft.gif");
|
|
}
|
|
|
|
.tab-bottom:hover:active > .tab-top > .tab-image-mid > .tab-image-mid-mid {
|
|
background-image: url("chrome://global/skin/tabcontrol/tab-bot-act-mid.gif");
|
|
}
|
|
|
|
.tab-bottom:hover:active > .tab-top > .tab-image-right > .tab-image-right-btm {
|
|
background-image: url("chrome://global/skin/tabcontrol/tab-bot-act-rit.gif");
|
|
}
|
|
|
|
/* ..... selected state ..... */
|
|
|
|
.tab-bottom[selected="true"] > .tab-top > .tab-image-left > .tab-image-left-btm,
|
|
.tab-bottom[selected="true"]:hover:active > .tab-top > .tab-image-left > .tab-image-left-btm {
|
|
height: 19px;
|
|
background-image: url("chrome://global/skin/tabcontrol/tab-bot-sel-lft.gif");
|
|
}
|
|
|
|
.tab-bottom[selected="true"] > .tab-top > .tab-image-mid > .tab-image-mid-mid,
|
|
.tab-bottom[selected="true"]:hover:active > .tab-top > .tab-image-mid > .tab-image-mid-mid {
|
|
background-image: url("chrome://global/skin/tabcontrol/tab-bot-sel-mid.gif");
|
|
}
|
|
|
|
.tab-bottom[selected="true"] > .tab-top > .tab-image-mid > .tab-image-mid-btm,
|
|
.tab-bottom[selected="true"]:hover:active > .tab-top > .tab-image-mid > .tab-image-mid-btm {
|
|
border: none;
|
|
}
|
|
|
|
.tab-bottom[selected="true"] > .tab-top > .tab-image-right > .tab-image-right-btm,
|
|
.tab-bottom[selected="true"]:hover:active > .tab-top > .tab-image-right > .tab-image-right-btm {
|
|
height: 19px;
|
|
background-image: url("chrome://global/skin/tabcontrol/tab-bot-sel-rit.gif");
|
|
}
|
|
|
|
/* ::::: tabbox-bottom ::::: */
|
|
|
|
.tabbox-bottom > .tabbox-top-left,
|
|
.tabbox-bottom > .tabbox-top-right {
|
|
background: url("chrome://global/skin/tabcontrol/tabbox-bot-mid.gif") repeat-x top;
|
|
width: 2px;
|
|
}
|
|
|
|
.tabbox-bottom > .tabbox-top-left-cap {
|
|
background: url("chrome://global/skin/tabcontrol/tabbox-bot-lft.gif") no-repeat top;
|
|
width: 2px;
|
|
}
|
|
|
|
.tabbox-bottom > .tabbox-top-right-cap {
|
|
background: url("chrome://global/skin/tabcontrol/tabbox-bot-rit.gif") no-repeat top;
|
|
width: 2px;
|
|
}
|
|
|
|
/* ::::: special looks for widgets in tabpanels ::::: */
|
|
|
|
tree.tabpanel,
|
|
textbox.tabpanel {
|
|
border-top: 1px solid #ACB9B9;
|
|
border-right: 1px solid #ECF0F0;
|
|
border-bottom: 1px solid #ECF0F0;
|
|
border-left: 1px solid #ACB9B9;
|
|
}
|
|
|
|
tree.tabpanel > .tree-container-treerows,
|
|
textbox.tabpanel > .textbox-internal-box {
|
|
border: 1px solid #6E7676;
|
|
}
|
|
|
|
textbox.tabpanel[focused="true"] {
|
|
border: 1px solid #909090;
|
|
}
|