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: /* ===== toolbarbutton.css ===================================================== michael@0: == Styles used by the XUL button element. michael@0: ======================================================================= */ michael@0: michael@0: @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); michael@0: michael@0: /* ::::: toolbarbutton ::::: */ michael@0: michael@0: toolbarbutton { michael@0: -moz-appearance: toolbarbutton; michael@0: -moz-box-align: center; michael@0: -moz-box-pack: center; michael@0: margin: 0; michael@0: padding: 3px; michael@0: color: -moz-DialogText; michael@0: } michael@0: michael@0: toolbarbutton:-moz-lwtheme { michael@0: text-shadow: none; michael@0: } michael@0: michael@0: .toolbarbutton-icon[label]:not([label=""]), michael@0: .toolbarbutton-icon[type="menu"] { michael@0: -moz-margin-end: 2px; michael@0: } michael@0: michael@0: .toolbarbutton-text { michael@0: margin: 0 !important; michael@0: text-align: center; michael@0: } michael@0: michael@0: toolbarbutton.tabbable { michael@0: -moz-user-focus: normal !important; michael@0: } michael@0: michael@0: toolbarbutton:hover { michael@0: color: -moz-buttonhovertext; michael@0: } michael@0: michael@0: toolbarbutton:hover:active, michael@0: toolbarbutton[open="true"] { michael@0: padding-top: 4px; michael@0: padding-bottom: 2px; michael@0: -moz-padding-start: 4px; michael@0: -moz-padding-end: 2px; michael@0: color: ButtonText; michael@0: } michael@0: michael@0: toolbarbutton[disabled="true"], michael@0: toolbarbutton[disabled="true"]:hover, michael@0: toolbarbutton[disabled="true"]:hover:active, michael@0: toolbarbutton[disabled="true"][open="true"] { michael@0: padding: 3px; michael@0: color: GrayText; michael@0: } michael@0: michael@0: toolbarbutton[checked="true"]:not(:hover) { michael@0: color: ButtonText; michael@0: } michael@0: michael@0: toolbarbutton:-moz-lwtheme:not(:hover):not([checked="true"]):not([open="true"]):not([disabled="true"]) { michael@0: color: inherit; michael@0: text-shadow: inherit; michael@0: } michael@0: michael@0: /* ::::: toolbarbutton menu ::::: */ michael@0: michael@0: .toolbarbutton-menu-dropmarker { michael@0: -moz-appearance: toolbarbutton-dropdown !important; michael@0: list-style-image: none; michael@0: -moz-image-region: auto; michael@0: padding: 0; michael@0: margin: 0; michael@0: } michael@0: michael@0: .toolbarbutton-menu-dropmarker[disabled="true"] { michael@0: padding: 0 !important; michael@0: } michael@0: michael@0: /* ::::: toolbarbutton menu-button ::::: */ michael@0: michael@0: toolbarbutton[type="menu-button"] { michael@0: -moz-box-align: stretch; michael@0: -moz-appearance: dualbutton; michael@0: -moz-box-orient: horizontal !important; michael@0: } michael@0: michael@0: toolbarbutton[type="menu-button"], michael@0: toolbarbutton[type="menu-button"]:hover, michael@0: toolbarbutton[type="menu-button"]:hover:active, michael@0: toolbarbutton[type="menu-button"][open="true"], michael@0: toolbarbutton[type="menu-button"][disabled="true"], michael@0: toolbarbutton[type="menu-button"][disabled="true"]:hover, michael@0: toolbarbutton[type="menu-button"][disabled="true"]:hover:active { michael@0: padding: 0 !important; michael@0: } michael@0: michael@0: .toolbarbutton-menubutton-button { michael@0: -moz-box-align: center; michael@0: -moz-box-pack: center; michael@0: -moz-box-orient: vertical; michael@0: } michael@0: michael@0: /* .......... dropmarker .......... */ michael@0: michael@0: .toolbarbutton-menubutton-dropmarker { michael@0: margin: 0 3px; michael@0: -moz-appearance: toolbarbutton-dropdown !important; michael@0: list-style-image: none; michael@0: -moz-image-region: auto; michael@0: }