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