-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjquery.fancyspinbox.css
136 lines (136 loc) · 2.88 KB
/
jquery.fancyspinbox.css
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/*
* jquery.fancyspinbox.js
* version 0.1.0
* (c) 2015 Maya Kokits
* License: MIT
*/
.fancy-spinbox {
box-sizing: content-box;
height: 2rem;
padding: 0 1.8rem 0 0;
border: 2px solid #16425B;
border-radius: 4px;
display: inline-block;
position: relative;
color: #16425B;
background-color: #F7EACF;
outline: 0;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.fancy-spinbox:focus {
background-color: #D8CDB6;
}
.fancy-spinbox .crop {
margin: 0;
padding: 0;
border: 0 none;
height: 2rem;
display: inline-block;
overflow: hidden;
}
.fancy-spinbox ul {
cursor: default;
margin: 0;
padding: 0;
border: 0 none;
list-style: none;
text-align: left;
}
.fancy-spinbox li {
width: auto;
height: 2rem;
line-height: 2rem;
margin: 0;
padding: 0 0.6rem 0 0.6rem;
white-space: nowrap;
}
.fancy-spinbox ul.dropdown {
position: absolute;
top: 2rem;
left: -9999px;
z-index: 999;
border: 2px solid #16425B;
border-radius: 4px;
color: #16425B;
background-color: #F7EACF;
}
.fancy-spinbox ul.dropdown:empty {
display: none;
}
.fancy-spinbox ul.dropdown li {
overflow: hidden;
}
.fancy-spinbox ul.dropdown li.selected, .fancy-spinbox ul.dropdown li.selected * {
color: #F7EACF;
background-color: #16425B;
}
.fancy-spinbox ul.dropdown li:hover, .fancy-spinbox ul.dropdown li:hover * {
color: #16425B;
background-color: #81C3D7;
}
.fancy-spinbox .buttons {
position: absolute;
top: 0;
right: 0;
width: 1.8rem;
}
.fancy-spinbox button {
position: relative;
width: 1.8rem;
height: 1rem;
padding: 0;
margin: 0;
border: none;
border-radius: 0;
background-color: transparent;
display: block;
outline: 0;
cursor: default;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
.fancy-spinbox button::-moz-focus-inner {
border: 0;
outline: 0;
}
.fancy-spinbox button:active > span.triangle-up, .fancy-spinbox button.toggle-dropdown:active > span.triangle-up {
border-bottom-color: #81C3D7;
}
.fancy-spinbox button:active > span.triangle-down, .fancy-spinbox button.toggle-dropdown:active > span.triangle-down {
border-top-color: #81C3D7;
}
.fancy-spinbox button.toggle-dropdown {
height: 2rem;
}
.fancy-spinbox button.toggle-dropdown > span.triangle-down {
position: static;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-top: 8px solid #16425B;
display: inline-block;
vertical-align: middle;
margin: 0;
}
.fancy-spinbox button span {
position: absolute;
width: 0;
height: 0;
border-left: 7px solid transparent;
border-right: 7px solid transparent;
display: block;
}
.fancy-spinbox button span.triangle-up {
border-bottom: 7px solid #16425B;
bottom: 2px;
right: 0.6rem;
}
.fancy-spinbox button span.triangle-down {
border-top: 7px solid #16425B;
top: 2px;
right: 0.6rem;
}