зеркало из https://github.com/mozilla/pjs.git
162 строки
4.2 KiB
CSS
162 строки
4.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)
|
|
*/
|
|
|
|
/* ===== toolbarbutton.css ==============================================
|
|
== Styles used by XUL toolbarbutton elements.
|
|
======================================================================= */
|
|
|
|
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
|
|
|
/* ::::: toolbarbutton ::::: */
|
|
|
|
toolbarbutton {
|
|
font: message-box;
|
|
}
|
|
|
|
toolbarbutton,
|
|
toolbarbutton[disabled="true"]:hover,
|
|
toolbarbutton[disabled="true"]:hover:active {
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.toolbarbutton-box {
|
|
-moz-box-align: center;
|
|
-moz-box-pack: center;
|
|
}
|
|
|
|
.toolbarbutton-box,
|
|
toolbarbutton[disabled="true"]:hover > .toolbarbutton-box,
|
|
toolbarbutton[disabled="true"]:hover:active > .toolbarbutton-box {
|
|
padding: 1px 2px;
|
|
}
|
|
|
|
.toolbarbutton-icon {
|
|
padding-right: 2px;
|
|
}
|
|
|
|
.toolbarbutton-text {
|
|
margin: 0px !important;
|
|
}
|
|
|
|
toolbarbutton[disabled="true"],
|
|
toolbarbutton[disabled="true"]:hover,
|
|
toolbarbutton[disabled="true"]:hover:active {
|
|
color: #9399AB;
|
|
}
|
|
|
|
toolbarbutton:hover {
|
|
border-top: 1px solid #D5DAE5;
|
|
border-right: 1px solid #7681A2;
|
|
border-bottom: 1px solid #7681A2;
|
|
border-left: 1px solid #D5DAE5;
|
|
}
|
|
|
|
toolbarbutton:hover:active,
|
|
toolbarbutton[open="true"] {
|
|
border-top: 1px solid #7681A2;
|
|
border-right: 1px solid #D5DAE5;
|
|
border-bottom: 1px solid #D5DAE5;
|
|
border-left: 1px solid #7681A2;
|
|
}
|
|
|
|
toolbarbutton:hover:active > .toolbarbutton-box,
|
|
toolbarbutton[open="true"] > .toolbarbutton-box {
|
|
padding: 2px 1px 0px 3px;
|
|
}
|
|
|
|
/* ..... checked state ..... */
|
|
|
|
toolbarbutton[checked="true"],
|
|
toolbarbutton[checked="true"]:hover,
|
|
toolbarbutton[checked="true"]:hover:active {
|
|
border-top: 1px solid #454C55;
|
|
border-right: 1px solid #7D848D;
|
|
border-bottom: 1px solid #7D848D;
|
|
border-left: 1px solid #454C55;
|
|
background-color: #8C9AA8;
|
|
color: #EFF1F4;
|
|
}
|
|
|
|
toolbarbutton[checked="true"]:hover:active > .toolbarbutton-box {
|
|
padding: 1px 2px 1px 2px;
|
|
}
|
|
|
|
/* ::::: toolbarbutton menu ::::: */
|
|
|
|
.toolbarbutton-dropmarker {
|
|
list-style-image: url("chrome://global/skin/button/tbmenu-arrow.gif");
|
|
}
|
|
|
|
.toolbarbutton-dropmarker[disabled="true"] {
|
|
list-style-image: url("chrome://global/skin/button/tbmenu-arrow-dis.gif");
|
|
}
|
|
|
|
.toolbarbutton-dropmarker[open="true"] {
|
|
list-style-image: url("chrome://global/skin/button/tbmenu-arrow-act.gif");
|
|
}
|
|
|
|
/* ::::: toolbarbutton menu-button ::::: */
|
|
|
|
toolbarbutton[type="menu-button"],
|
|
toolbarbutton[type="menu-button"]:hover,
|
|
toolbarbutton[type="menu-button"]:hover:active {
|
|
border: none;
|
|
}
|
|
|
|
.toolbarbutton-menubutton-button {
|
|
font: inherit;
|
|
}
|
|
|
|
.toolbarbutton-menubutton-dropmarker-box {
|
|
-moz-box-align: center;
|
|
-moz-box-pack: center;
|
|
margin: 20px 5px 15px 40px;
|
|
}
|
|
|
|
/* ..... dropmarker ..... */
|
|
|
|
.toolbarbutton-menubutton-dropmarker {
|
|
list-style-image: url("chrome://global/skin/button/tbmbtn-arrow.gif");
|
|
width: 13px;
|
|
height: 11px;
|
|
}
|
|
|
|
toolbarbutton:hover > stack
|
|
> .toolbarbutton-menubutton-dropmarker-box > .toolbarbutton-menubutton-dropmarker
|
|
{
|
|
list-style-image: url("chrome://global/skin/button/tbmbtn-arrow-hov.gif");
|
|
}
|
|
|
|
toolbarbutton[open="true"] > stack
|
|
> .toolbarbutton-menubutton-dropmarker-box > .toolbarbutton-menubutton-dropmarker
|
|
{
|
|
list-style-image: url("chrome://global/skin/button/tbmbtn-arrow-act.gif");
|
|
}
|
|
|
|
.toolbarbutton-menubutton-dropmarker[disabled="true"],
|
|
toolbarbutton[disabled="true"]:hover > stack
|
|
> .toolbarbutton-menubutton-dropmarker-box > .toolbarbutton-menubutton-dropmarker
|
|
{
|
|
list-style-image: none;
|
|
}
|