Commit | Line | Data |
---|---|---|
9099c61d RK |
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/. */ | |
351107c9 | 4 | |
a12570b9 | 5 | /* ===== numberbox.css ================================================== |
6 | == Styles used by the XUL textbox type="number" element. | |
7 | ======================================================================= */ | |
351107c9 | 8 | |
a12570b9 | 9 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
10 | @namespace html url("http://www.w3.org/1999/xhtml"); | |
e20d243c | 11 | |
a12570b9 | 12 | textbox[type="number"] { |
13 | padding: 0 !important; | |
f98e9249 | 14 | border: none; |
a12570b9 | 15 | cursor: default; |
b1e5c9b1 | 16 | } |
17 | ||
a12570b9 | 18 | html|*.numberbox-input { |
19 | text-align: right; | |
57d23eae | 20 | } |
e20d243c | 21 | |
a12570b9 | 22 | .numberbox-input-box { |
569543b3 | 23 | border-radius: 3px 0px 0px 3px; |
a12570b9 | 24 | -moz-box-align: center; |
f98e9249 | 25 | cursor: text; |
f98e9249 | 26 | border: 1px solid #9C9CFF; |
26a52ec5 | 27 | border-right-width: 0px; |
f98e9249 RK |
28 | padding: 1px; |
29 | background-color: #000000; | |
30 | color: #E7ADE7; | |
d07092f5 | 31 | } |
26a52ec5 | 32 | |
beb53704 | 33 | .numberbox-input-box[hidespinbuttons="true"] { |
569543b3 | 34 | border-radius: 3px; |
beb53704 RK |
35 | border-right-width: 1px; |
36 | } | |
37 | ||
26a52ec5 | 38 | textbox[type="number"] > spinbuttons { |
569543b3 | 39 | border-radius: 0px 3px 3px 0px; |
26a52ec5 RK |
40 | border: 1px solid #9C9CFF; |
41 | border-left-width: 0px; | |
42 | } | |
43 | ||
44 | ||
45 | textbox[type="number"][focused="true"] > .numberbox-input-box, | |
46 | textbox[type="number"][focused="true"] > spinbuttons { | |
47 | border-color: #008484; | |
48 | } | |
49 | ||
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; | |
57 | } |