michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* ===== menu.css ======================================================= michael@0: == Styles used by XUL menu-related elements. michael@0: ======================================================================= */ michael@0: michael@0: @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); michael@0: michael@0: /* ::::: menu/menuitem ::::: */ michael@0: michael@0: menu, michael@0: menuitem, michael@0: .splitmenu-menuitem { michael@0: -moz-appearance: menuitem; michael@0: -moz-box-align: center; michael@0: max-width: 42em; michael@0: color: MenuText; michael@0: font: menu; michael@0: list-style-image: none; michael@0: -moz-image-region: auto; michael@0: } michael@0: michael@0: menuitem[default="true"] { michael@0: font-weight: bold; michael@0: } michael@0: michael@0: menu[_moz-menuactive="true"], michael@0: menuitem[_moz-menuactive="true"], michael@0: .splitmenu-menuitem[_moz-menuactive="true"] { michael@0: color: -moz-menuhovertext; michael@0: background-color: -moz-menuhover; michael@0: } michael@0: michael@0: menu[disabled="true"], michael@0: menuitem[disabled="true"], michael@0: .splitmenu-menuitem[disabled="true"] { michael@0: color: GrayText; michael@0: } michael@0: michael@0: menubar > menu { michael@0: padding: 0px 4px; michael@0: color: -moz-menubartext; michael@0: } michael@0: michael@0: menubar:-moz-lwtheme > menu { michael@0: text-shadow: none; michael@0: } michael@0: michael@0: menubar:-moz-lwtheme > menu:not([open="true"]) { michael@0: color: inherit; michael@0: text-shadow: inherit; michael@0: } michael@0: michael@0: menubar > menu[_moz-menuactive="true"]:not([open]):not([disabled="true"]):not(:-moz-lwtheme) { michael@0: color: -moz-menubartext; michael@0: } michael@0: michael@0: menubar > menu[open] { michael@0: color: -moz-menubarhovertext; michael@0: background-color: -moz-menuhover; michael@0: } michael@0: menuitem.spell-suggestion { michael@0: font-weight:bold; michael@0: } michael@0: michael@0: /* ::::: menu/menuitems in menulist popups ::::: */ michael@0: michael@0: .menulist-menupopup > menuitem, michael@0: menulist > menupopup > menuitem, michael@0: .menulist-menupopup > menu, michael@0: menulist > menupopup > menu { michael@0: padding: 1px 5px; michael@0: max-width: none; michael@0: font: message-box; michael@0: } michael@0: michael@0: /* ..... internal content .... */ michael@0: michael@0: .menu-text, michael@0: .menu-iconic-left, michael@0: .menu-iconic-text { michael@0: margin-top: 0px !important; michael@0: margin-bottom: 0px !important; michael@0: -moz-margin-start: 0px !important; michael@0: -moz-margin-end: 2px !important; michael@0: color: inherit; michael@0: } michael@0: michael@0: .menu-text { michael@0: /* This is (18 + the size of end-padding on .menu-iconic-left)px */ michael@0: -moz-margin-start: 21px !important; michael@0: font-weight: inherit; michael@0: } michael@0: michael@0: .menu-description { michael@0: font-style: italic; michael@0: color: GrayText; michael@0: -moz-margin-start: 1ex !important; michael@0: } michael@0: michael@0: .menu-accel, michael@0: .menu-iconic-accel { michael@0: margin-top: 0px !important; michael@0: margin-bottom: 0px !important; michael@0: -moz-margin-start: 7px !important; michael@0: color: inherit; michael@0: } michael@0: michael@0: .menu-accel-container { michael@0: -moz-box-pack: end; michael@0: } michael@0: michael@0: .menu-iconic-left { michael@0: width: 16px; michael@0: /* We can only hardcode this, to make the default GTK icon<->label spacing */ michael@0: -moz-padding-end: 3px !important; michael@0: } michael@0: michael@0: .menu-iconic-icon { michael@0: width: 16px; michael@0: height: 16px; michael@0: } michael@0: michael@0: .menu-right { michael@0: margin-top: 0px; michael@0: margin-bottom: 0px; michael@0: -moz-margin-start: 6px; michael@0: -moz-margin-end: 0px; michael@0: width: 1ex; michael@0: height: 1ex; michael@0: /* These next two rules are needed to prevent inheritance and thus ugliness */ michael@0: list-style-image: none; michael@0: -moz-image-region: auto; michael@0: -moz-appearance: menuarrow; michael@0: } michael@0: michael@0: .menubar-left { michael@0: margin-top: 0px; michael@0: margin-bottom: 0px; michael@0: -moz-margin-start: 0px; michael@0: -moz-margin-end: 2px; michael@0: color: inherit; michael@0: } michael@0: michael@0: .menubar-text { michael@0: margin: 0 1px !important; michael@0: color: inherit; michael@0: } michael@0: michael@0: michael@0: .menulist-menupopup > menuitem > .menu-iconic-left, michael@0: menulist > menupopup > menuitem > .menu-iconic-left, michael@0: .menulist-menupopup > menu > .menu-iconic-left, michael@0: menulist > menupopup > menu > .menu-iconic-left { michael@0: display: none; michael@0: } michael@0: michael@0: /* ::::: checkbox menuitem ::::: */ michael@0: michael@0: menuitem[checked="true"] { michael@0: -moz-appearance: checkmenuitem !important; michael@0: } michael@0: michael@0: menuitem[type="checkbox"] { michael@0: -moz-appearance: checkmenuitem !important; michael@0: } michael@0: michael@0: /* ::::: radio menuitem ::::: */ michael@0: michael@0: menuitem[type="radio"] { michael@0: -moz-appearance: radiomenuitem !important; michael@0: } michael@0: michael@0: /* ::::: menuseparator ::::: */ michael@0: michael@0: menuseparator { michael@0: -moz-appearance: menuseparator !important; michael@0: margin: 2px 0; michael@0: border-top: 1px solid ThreeDShadow; michael@0: border-bottom: 1px solid ThreeDHighlight; michael@0: } michael@0: michael@0: menulist > menupopup > menuseparator, michael@0: .menulist-menupopup > menuseparator { michael@0: border-top: 1px solid #000000; michael@0: border-bottom: none; michael@0: } michael@0: michael@0: /* ::::: autocomplete ::::: */ michael@0: michael@0: .autocomplete-history-popup > menuitem { michael@0: max-width: none !important; michael@0: font: message-box; michael@0: } michael@0: michael@0: /* ::::: tree column picker ::::: */ michael@0: michael@0: .treecell-popupcell-menu { michael@0: -moz-margin-start: -2px; michael@0: list-style-image: url("chrome://global/skin/columnselect.gif"); michael@0: -moz-image-region: auto; michael@0: }