home *** CD-ROM | disk | FTP | other *** search
- /*
- * 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-1999 Netscape Communications Corporation. All
- * Rights Reserved.
- *
- * Contributor(s):
- * Joe Hewitt (hewitt@netscape.com)
- * Alex W. (Charamel) <lucx@shaw.ca>
- *
- */
-
- /* ===== menu.css =======================================================
- == Styles used by XUL menu-related elements.
- ======================================================================= */
-
- @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
-
- /* ::::: menu/menuitem ::::: */
-
- menu,
- menuitem {
- -moz-box-align: center;
- color: MenuText;
- font: menu;
- list-style-image: none;
- }
-
- menuitem[default="true"] {
- font-weight: bold;
- }
-
- /*menubar disabled state*/
- menu[disabled="true"],
- menu[_moz-menuactive="true"][disabled="true"]{
- color: #BDA791;
- }
-
- /*menuitems disabled state*/
- menuitem[disabled="true"],
- menuitem[_moz-menuactive="true"][disabled="true"] {
- color: #BDA791; /*#D3C2B2*/
- }
-
- /*menuitems with submenus - disabled*/
- menupopup menu[disabled="true"]{
- color: #BDA791;
- }
-
-
- /* ..... internal content .... */
-
- .menu-text,
- .menu-iconic-left,
- .menu-iconic-text {
- margin: 0px 2px 0px 0px !important;
- color: inherit;
- }
-
-
- .menu-text {
- margin-left: 18px !important;
- font-weight: inherit;
- }
-
- .menu-accel,
- .menu-iconic-accel {
- margin: 0px 2px 0px 7px !important;
- padding-right: 14px;
- color: inherit;
- }
-
- /*make keyboard accelerators right aligned*/
- menuitem > hbox{
- -moz-box-pack:end;
- }
-
- .menu-iconic-left {
- width: 16px;
- -moz-image-region: auto; /* cut off image-region inheritance in toolbaricon menupopups*/
- }
-
-
- /* ..... menu arrow box ..... */
-
- .menu-right {
- margin: 0px 0px 0px 6px;
- width: 8px;
- list-style-image: url("chrome://global/skin/menu/Menu-arrow.png");
- -moz-image-region: auto; /* cut off image-region inheritance in toolbaricon menupopups*/
-
- }
-
- .menu-right[_moz-menuactive="true"] {
- list-style-image: url("chrome://global/skin/menu/menu-arrow-hover.png");
- }
-
- .menu-right[disabled="true"] {
- list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled.png") !important;
- }
-
- /* ::::: menu/menuitems in menubar ::::: */
-
- menubar > menu {
- padding: 2px 5px 2px 7px;
- }
- /*hover*/
- menubar > menu[_moz-menuactive="true"] {
- /*background:#F6F0E6;*/
- }
- /*open*/
- menubar > menu[_moz-menuactive="true"][open="true"]{
- background:#1D81CD;
- color:white;
- }
-
- /*when alt is pressed*/
- menubar > menu[_moz-menuactive="true"]{
- /* not used becuase it conflicts with :hover */
- }
-
- /* ..... internal content .... */
-
- .menubar-left {
- margin: 0px 2px 0px 0px;
- color: inherit;
- }
-
- .menubar-text {
- margin: 0px 2px 0px 0px !important;
- color: inherit;
- }
-
- /* ::::: menu/menuitems in popups ::::: */
-
- menupopup > menu,
- popup > menu,
- menupopup > menuitem,
- popup > menuitem {
- padding: 3px;
- max-width: 42em;
- }
-
- /*Menu item hilite color*/
- menupopup > menu[_moz-menuactive="true"],
- menupopup > menuitem[_moz-menuactive="true"],
- popup > menu[_moz-menuactive="true"],
- popup > menuitem[_moz-menuactive="true"] {
- background-color: #1D81CD;
- color: white;
- }
-
-
- /*mouseover over disabled item*/
- menuitem[disabled="true"][_moz-menuactive="true"],
- /*disabled menuitmes with submenus*/
- menupopup menu[disabled="true"][_moz-menuactive="true"],
- /*disabled menuitmes with submenus in context menus*/
- popup menu[disabled="true"][_moz-menuactive="true"]{
- background:#EFE6DD !important;
- }
-
-
- /* ::::: menu/menuitems in menulist popups ::::: */
-
- .menulist-menupopup > menuitem,
- menulist > menupopup > menuitem,
- .menulist-menupopup > menu,
- menulist > menupopup > menu {
- border: 1px solid transparent;
- padding: 1px 30px 1px 5px;
- max-width: none;
- font: message-box;
- color: -moz-FieldText;
- }
-
- .menulist-menupopup > menuitem > .menu-iconic-left,
- menulist > menupopup > menuitem > .menu-iconic-left,
- .menulist-menupopup > menu > .menu-iconic-left,
- menulist > menupopup > menu > .menu-iconic-left {
- display: none;
- }
-
- /*focus rectangle on hilited menulist items */
- menulist > menupopup > menuitem[_moz-menuactive="true"] {
- }
-
- /* ::::: 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-disabled.gif");
- }
-
- menuitem[checked="true"][_moz-menuactive="true"] {
- list-style-image: url("chrome://global/skin/menu/menu-check-hover.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-disabled.gif");
- }
-
- menuitem[checked="true"][type="radio"][_moz-menuactive="true"] {
- list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif");
- }
-
- /* ::::: menuseparator ::::: */
-
- menuseparator {
- margin: 3px 0px;
- border-top-color:#F4EFEA;
- border-bottom-color:#FEFEFE;
- border-width:1px 0px;
- border-style:solid;
- }
-
-
- /*menulist separators*/
- menulist > menupopup > menuseparator,
- .menulist-menupopup > menuseparator {
- border-top-color:#DFD2C0;
- }
-
-
- /*make personal toolbar menus look like toolbars*/
-
- /*personal toolbar separators*/
- #personal-bookmarks menuseparator{
- border-color:#DFD2C0 !important;
- border-bottom:none;
- }
-
-
-
- /* ::::: autocomplete ::::: */
-
- .autocomplete-history-popup > menuitem {
- max-width: none !important;
- font: message-box;
- }
-
- /* ::::: tree column picker ::::: */
-
- .treecell-popupcell-menu {
- margin-left: -2px;
- list-style-image: url("chrome://global/skin/columnselect.gif");
- }
-