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: /* ===== numberbox.css ================================================== michael@0: == Styles used by the XUL textbox type="number" element. michael@0: ======================================================================= */ michael@0: michael@0: @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); michael@0: @namespace html url("http://www.w3.org/1999/xhtml"); michael@0: michael@0: textbox[type="number"] { michael@0: -moz-appearance: none; michael@0: padding: 0 !important; michael@0: border: none; michael@0: cursor: default; michael@0: background-color: transparent; michael@0: } michael@0: michael@0: html|*.numberbox-input { michael@0: text-align: right; michael@0: } michael@0: michael@0: .numberbox-input-box { michael@0: -moz-box-align: center; michael@0: -moz-appearance: spinner-textfield; michael@0: margin-right: -1px; michael@0: border: 2px solid; michael@0: -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow; michael@0: -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow; michael@0: -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow; michael@0: -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow; michael@0: padding: 3px 4px; michael@0: } michael@0: michael@0: textbox[hidespinbuttons="true"] > .numberbox-input-box { michael@0: -moz-appearance: textfield; michael@0: }