-
Notifications
You must be signed in to change notification settings - Fork 52
/
jquery.minimalect.css
222 lines (217 loc) · 6.28 KB
/
jquery.minimalect.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
/************************************
MINIMALECT 0.9
A minimalistic select replacement
jQuery 1.7+ required.
Developed by @groenroos
http://www.groenroos.fi
Github: http://git.io/Xedg9w
Licensed under the MIT license.
************************************/
.minict_wrapper {
font-family: "Segoe UI", Segoe, "Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif;
color: #333;
background: #fff;
position: relative;
width: 300px;
height: 35px;
height: 2.2rem;
border: 1px solid #e5e5e5;
border-radius: 3px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box; }
.minict_wrapper * {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box; }
.minict_wrapper.disabled {
background: #f5f5f5;
text-shadow: 0 1px 0 #fff; }
.minict_wrapper.disabled span {
color: #bbb !important; }
.minict_wrapper:after {
content: "\25BC";
display: block;
position: absolute;
height: 33px;
width: 33px;
height: 2.1rem;
width: 2.1rem;
top: 0;
right: 0;
font-size: 10px;
font-size: 0.6rem;
line-height: 32px;
line-height: 1.9rem;
text-align: center;
color: #555; }
.minict_wrapper.active:after {
content: "\25B2"; }
.minict_wrapper.disabled:after {
color: #bbb; }
.minict_wrapper span {
display: block;
border: 0;
outline: none;
background: none;
font-family: "Segoe UI", Segoe, "Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif;
color: #333;
font-size: 16px;
font-size: 1rem;
height: 32px;
height: 2.0rem;
line-height: 23px;
line-height: 1.5rem;
padding: 4px 53px 0 6px;
padding: 4px 3.4rem 0 0.4rem;
cursor: default;
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis; }
.minict_wrapper span:empty:before {
content: attr(data-placeholder);
color: #ccc;
line-height: 23px;
line-height: 1.5rem; }
.minict_wrapper ul {
display: none;
list-style: none;
padding: 0;
margin: 0 -1px;
position: absolute;
width: 100%;
width: -webkit-calc(100% + 2px);
width: -moz-calc(100% + 2px);
width: calc(100% + 2px);
border: 1px solid #e5e5e5;
border-top: 1px solid #f9f9f9;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
top: 33px;
top: 2.0rem;
left: 0;
max-height: 350px;
max-height: 22rem;
overflow-y: auto;
z-index: 999999; }
.minict_wrapper ul li {
list-style: none;
font-size: 1rem;
padding: 0 10px;
padding: 0 0.7rem;
cursor: pointer;
background: #fff;
height: 35px;
height: 2.2rem;
line-height: 32px;
line-height: 2rem; }
.minict_wrapper ul li:hover {
background: #fcfcfc;
color: #111; }
.minict_wrapper ul li.minict_group {
color: #444;
background: #f6f6f6;
font-weight: bold;
cursor: default; }
.minict_wrapper ul li.minict_empty {
display: none;
background: #fff !important;
color: #bbb;
text-align: center;
font-size: 14px;
font-size: 0.9rem;
height: 55px;
height: 3.5rem;
line-height: 50px;
line-height: 3.3rem; }
.minict_wrapper ul li.disabled {
cursor: default;
background: #fff !important;
color: #bbb; }
.minict_wrapper ul li.selected {
color: #819a9a;
background: #f8f9f9; }
.minict_wrapper ul li.highlighted {
color: #fff;
background: #819a9a; }
.minict_wrapper ul li.hidden {
display: none; }
.minict_wrapper .minict_reset {
color: #A9A9A9;
bottom: 0;
display: none;
font-size: 18px;
font-size: 1.1rem;
line-height: 30px;
line-height: 1.9rem;
position: absolute;
right: 35px;
right: 2.2rem;
text-align: center;
top: 0;
text-decoration: none;
width: 20px;
width: 1.2rem;
-webkit-transition: all 0.35s ease-in-out;
transition: all 0.35s ease-in-out; }
.minict_wrapper .minict_reset:hover {
color: #e0e0e0;
-webkit-transition: all 0.15s ease-in-out;
transition: all 0.15s ease-in-out; }
.minict_wrapper .minict_reset:active {
color: #636363; }
.minict_wrapper.disabled .minict_reset {
display: none; }
.minict_wrapper.bubble {
-webkit-box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.05);
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.05);
background: -moz-linear-gradient(top, white 0%, #f9f9f9 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, white), color-stop(100%, #f9f9f9));
background: -webkit-linear-gradient(top, white 0%, #f9f9f9 100%);
background: -o-linear-gradient(top, white 0%, #f9f9f9 100%);
background: -ms-linear-gradient(top, white 0%, #f9f9f9 100%);
background: linear-gradient(to bottom, white 0%, #f9f9f9 100%); }
.minict_wrapper.bubble:hover {
border-color: #dcdcdc; }
.minict_wrapper.bubble:after {
border-left: 1px solid #e5e5e5;
-webkit-box-shadow: inset 1px 0px 0px 0px #fff;
box-shadow: inset 1px 0px 0px 0px #fff;
height: 2.05rem; }
.minict_wrapper.bubble ul {
top: 2.7rem;
-webkit-box-shadow: 0px 5px 25px 0px rgba(0, 0, 0, 0.25);
box-shadow: 0px 5px 25px 0px rgba(0, 0, 0, 0.25);
border-radius: 6px;
overflow: visible; }
.minict_wrapper.bubble ul:before {
position: absolute;
top: -11px;
left: 19px;
content: ".";
color: transparent;
width: 0px;
height: 0px;
border-style: solid;
border-width: 0 11px 11px 11px;
border-color: transparent transparent #e5e5e5 transparent; }
.minict_wrapper.bubble ul:after {
position: absolute;
top: -10px;
left: 20px;
content: ".";
color: transparent;
width: 0px;
height: 0px;
border-style: solid;
border-width: 0 10px 10px 10px;
border-color: transparent transparent #ffffff transparent; }
.minict_wrapper.bubble ul li.minict_first {
border-top-left-radius: 6px;
border-top-right-radius: 6px; }
.minict_wrapper.bubble ul li.minict_last {
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px; }
.minict_wrapper.bubble .minict_reset {
width: 30px; }