toolkit/themes/linux/global/numberbox.css

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/themes/linux/global/numberbox.css	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,38 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +/* ===== numberbox.css ==================================================
     1.9 +  == Styles used by the XUL textbox type="number" element.
    1.10 +  ======================================================================= */
    1.11 +
    1.12 +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
    1.13 +@namespace html url("http://www.w3.org/1999/xhtml");
    1.14 +
    1.15 +textbox[type="number"] {
    1.16 +  -moz-appearance: none;
    1.17 +  padding: 0 !important;
    1.18 +  border: none;
    1.19 +  cursor: default;
    1.20 +  background-color: transparent;
    1.21 +}
    1.22 +
    1.23 +html|*.numberbox-input {
    1.24 +  text-align: right;
    1.25 +}
    1.26 +
    1.27 +.numberbox-input-box {
    1.28 +  -moz-box-align: center;
    1.29 +  -moz-appearance: spinner-textfield;
    1.30 +  margin-right: -1px;
    1.31 +  border: 2px solid;
    1.32 +  -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
    1.33 +  -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
    1.34 +  -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
    1.35 +  -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
    1.36 +  padding: 3px 4px;
    1.37 +}
    1.38 +
    1.39 +textbox[hidespinbuttons="true"] > .numberbox-input-box {
    1.40 +  -moz-appearance: textfield;
    1.41 +}

mercurial