1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 /* ===== numberbox.css ==================================================
6 == Styles used by the XUL textbox type="number" element.
7 ======================================================================= */
9 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
10 @namespace html url("http://www.w3.org/1999/xhtml");
12 textbox[type="number"] {
13 padding: 0 !important;
18 html|*.numberbox-input {
22 .numberbox-input-box {
23 border-radius: 3px 0px 0px 3px;
24 -moz-box-align: center;
26 border: 1px solid #9C9CFF;
27 border-right-width: 0px;
29 background-color: #000000;
33 .numberbox-input-box[hidespinbuttons="true"] {
35 border-right-width: 1px;
38 textbox[type="number"] > spinbuttons {
39 border-radius: 0px 3px 3px 0px;
40 border: 1px solid #9C9CFF;
41 border-left-width: 0px;
45 textbox[type="number"][focused="true"] > .numberbox-input-box,
46 textbox[type="number"][focused="true"] > spinbuttons {
47 border-color: #008484;
50 textbox[type="number"][readonly="true"] > .numberbox-input-box,
51 textbox[type="number"][readonly="true"] > spinbuttons,
52 textbox[type="number"][readonly="true"][focused="true"] > .numberbox-input-box,
53 textbox[type="number"][readonly="true"][focused="true"] > spinbuttons,
54 textbox[type="number"][disabled="true"] > .numberbox-input-box,
55 textbox[type="number"][disabled="true"] > spinbuttons {
56 border-color: #8050B0;