pjs/themes/modern/global/menu.css

293 строки
6.3 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)
*/
/* ===== menu.css =======================================================
== Styles used by XUL menu-related elements.
======================================================================= */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* ::::: menubar ::::: */
menubar {
min-width: 1px; /* DON'T DELETE!
Removes disappearance of scrollbars in content pane when window
is made smaller. Talk to evaughan@netscape.com for details. */
background-color: #B4C3D4;
border-top: 1px solid #82929C;
border-bottom: 1px solid #000000;
}
menubar > .toolbar-holder {
border-left: 1px solid #D6E7FF;
}
/* ::::: menubar grippy ::::: */
menubar > toolbargrippy {
background-image: url("chrome://global/skin/menu/grip-mbar-mid.gif");
}
menubar > toolbargrippy > .toolbargrippy-top {
background-image: url("chrome://global/skin/menu/grip-mbar-top.gif");
}
menubar > toolbargrippy > .toolbargrippy-btm {
background-image: url("chrome://global/skin/menu/grip-mbar-btm.gif");
}
menubar > toolbargrippy:hover:active {
background-image: url("chrome://global/skin/menu/grip-mbar-mid-act.gif");
}
menubar > toolbargrippy:hover:active > .toolbargrippy-top {
background-image: url("chrome://global/skin/menu/grip-mbar-top-act.gif");
}
menubar > toolbargrippy:hover:active > .toolbargrippy-btm {
background-image: url("chrome://global/skin/menu/grip-mbar-btm-act.gif");
}
/* ::::: popup/menupopup ::::: */
popup,
menupopup {
cursor: default;
background-color: #B4C3D4;
border: 1px solid #5B7693;
border-right: 1px solid #394B6E;
border-bottom: 1px solid #394B6E;
}
.popup-internal-box {
border: 1px outset #B4C3D4;
}
/* ::::: menu/menuitem ::::: */
menu,
menuitem {
color: #17222E;
font: menu;
list-style-image: none;
vertical-align: middle;
}
menuitem {
cursor: default !important;
}
menuitem[default="true"] {
font-weight: bold;
}
menu[disabled="true"],
menuitem[disabled="true"],
menu[disabled="true"][menuactive="true"],
menuitem[disabled="true"][menuactive="true"] {
color: #838E9B;
}
/* ..... internal content .... */
.menu-iconic-left {
margin: 0px 2px 0px 0px;
width: 16px;
color: inherit;
list-style-image: inherit;
text-align: center;
}
.menu-accel,
.menu-iconic-accel {
margin-left: 4px;
padding-right: 14px;
}
.menu-text {
padding-left: 18px;
font-weight: inherit;
}
.menu-iconic-text {
margin: 0px 2px 0px 0px;
}
.menu-iconic-text,
.menu-iconic-accel,
.menu-text,
.menu-accel {
color: inherit;
}
/* ..... menu arrow box ..... */
.menu-right {
margin: 0px 0px 0px 6px;
width: 8px;
list-style-image: url("chrome://global/skin/menu/menu-arrow.gif");
text-align: center;
}
.menu-right[menuactive="true"] {
list-style-image: url("chrome://global/skin/menu/menu-arrow-hov.gif");
}
.menu-right[disabled="true"],
.menu-right[menuactive="true"][disabled="true"] {
list-style-image: url("chrome://global/skin/menu/menu-arrow-dis.gif");
}
/* ::::: menu/menuitems in menubar ::::: */
menubar > menu {
border: 1px solid #B4C3D4;
padding: 1px 3px 2px 3px;
margin: 1px 0px 1px 0px;
}
menubar > menu[menuactive="true"] {
border: 1px outset #B4C3D4;
}
menubar > menu[menuactive="true"][open="true"] {
border: 1px inset #B4C3D4;
border-bottom: none;
}
/* ..... internal content .... */
.menubar-left {
margin: 0px 2px 0px 0px;
color: inherit;
}
.menubar-text {
margin-right: 2px;
color: inherit;
}
/* ::::: menu/menuitems in popup ::::: */
menupopup > menu,
popup > menu,
menupopup > menuitem,
popup > menuitem {
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
padding: 2px;
min-width: 0em;
max-width: 42em;
}
menupopup > menu[menuactive="true"],
menupopup > menuitem[menuactive="true"],
popup > menu[menuactive="true"],
popup > menuitem[menuactive="true"] {
background-color: #486380;
color: #FFFFFF;
}
/* ::::: menuseparator ::::: */
menuseparator {
cursor: default;
margin: 2px 3px;
border-top: 1px solid #7A8490;
border-bottom: 1px solid #FEFEFE;
}
/* ::::: checkbox menuitem ::::: */
menuitem[checked="true"] {
list-style-image: url("chrome://global/skin/menu/menu-check.gif");
}
menuitem[checked="true"][disabled="true"] {
list-style-image: url("chrome://global/skin/menu/menu-check-dis.gif");
}
menuitem[checked="true"][menuactive="true"] {
list-style-image: url("chrome://global/skin/menu/menu-check-hov.gif");
}
/* ::::: radio menuitem ::::: */
menuitem[checked="true"][type="radio"] {
list-style-image: url("chrome://global/skin/menu/menu-radio.gif");
}
menuitem[checked="true"][type="radio"][disabled="true"] {
list-style-image: url("chrome://global/skin/menu/menu-radio-dis.gif");
}
menuitem[checked="true"][type="radio"][menuactive="true"] {
list-style-image: url("chrome://global/skin/menu/menu-radio-hov.gif");
}
/* ::::: tooltip ::::: */
.tooltip {
border: 1px solid #000000;
padding: 2px 3px 2px 3px;
background-color: #FFFFE7;
color: #000000;
}
.tooltip > .popup-internal-box {
border: none;
}
.tooltip-label {
margin: 0px;
}
/* ::::: auto-repeat button ::::: */
autorepeatbutton {
margin: 1px 2px 2px 1px;
border: 1px solid transparent;
padding: 3px;
height: 1em;
text-align: center;
vertical-align: middle;
}
autorepeatbutton:hover {
margin: 1px;
border: 1px inset #A5B2C2;
padding: 4px 3px 3px 4px;
background-color: #A5B2C2;
}
.autorepeatbutton-up {
list-style-image: url("chrome://global/skin/arrow/arrow-up.gif")
}
.autorepeatbutton-down {
list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif")
}