summaryrefslogtreecommitdiff
path: root/src/chrome/global/spinbuttons.css
blob: b6419ec2c7895a049119adb9a6baa727626165ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

spinbuttons {
  -moz-appearance: none;
  cursor: default;
}

.spinbuttons-button {
  min-width: 13px;
  min-height: 11px;
  margin: 0 !important;
  border: 1px solid;
  -moz-border-top-colors: rgb(64,64,64);
  -moz-border-right-colors: rgb(64,64,64);
  -moz-border-bottom-colors: rgb(64,64,64);
  -moz-border-left-colors: rgb(64,64,64);
  background-color: #181411;
}

.spinbuttons-button > .button-box {
  border: 0;
}

.spinbuttons-button:hover {
  background-color: #181411;
}

.spinbuttons-button:hover:active {
  background-color: #181411;
}

.spinbuttons-button[disabled="true"] {
  background-color: #181411;
}

.spinbuttons-up {
  -moz-appearance: none;
  background-image: url("chrome://global/skin/arrow/arrow-v.svg#up");
  background-position: center center;
  background-repeat: no-repeat;
}

.spinbuttons-up[disabled="true"] {
  background-image: url("chrome://global/skin/arrow/arrow-v.svg#up-dis");
}

.spinbuttons-down {
  -moz-appearance: none;
  background-image: url("chrome://global/skin/arrow/arrow-v.svg#dn");
  background-position: center center;
  background-repeat: no-repeat;
}

.spinbuttons-down[disabled="true"] {
  background-image: url("chrome://global/skin/arrow/arrow-v.svg#dn-dis");
}