UNPKG

12.7 kBCSSView Raw
1/* FormGroup */
2/* Navlayout */
3.u-button {
4 background: rgb(236,239,241);
5 border: 1px solid rgb(236,239,241);
6 border-radius: 3px;
7 color: rgb(33,33,33);
8 position: relative;
9 min-width: 72px;
10 padding: 4px 13px;
11 display: inline-block;
12 font-family: "Open Sans", "Helvetica Neue", Arial, "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
13 font-size: 14px;
14 font-weight: 500;
15 line-height: 1;
16 letter-spacing: 0;
17 overflow: hidden;
18 will-change: box-shadow, transform;
19 outline: none;
20 cursor: pointer;
21 text-decoration: none;
22 text-align: center;
23 line-height: 1.57143;
24 vertical-align: middle; }
25 .u-button::-moz-focus-inner {
26 border: 0; }
27 .u-button:hover {
28 background-color: rgb(223,225,230);
29 border-color: rgb(238,238,238); }
30 .u-button:active {
31 background-color: rgb(223,225,230);
32 border-color: rgb(189,189,189); }
33 .u-button.colored {
34 color: rgb(245, 60, 50); }
35 .u-button.colored:focus:not(:active) {
36 background-color: rgb(223,225,230);
37 border-color: rgb(189,189,189); }
38 .u-button.disable, .u-button.u-button[disabled] {
39 cursor: not-allowed;
40 background-color: #DFE1E6;
41 border-color: #DFE1E6;
42 color: #fff; }
43 .u-button.disable:hover, .u-button.disable:active, .u-button.disable:focus, .u-button.u-button[disabled]:hover, .u-button.u-button[disabled]:active, .u-button.u-button[disabled]:focus {
44 background-color: #DFE1E6;
45 border-color: #DFE1E6;
46 color: #fff; }
47 .u-button:not(.u-button-icon) i.uf {
48 line-height: normal; }
49
50input.u-button[type="submit"] {
51 -webkit-appearance: none; }
52
53.u-button-floating {
54 border-radius: 50%;
55 font-size: 14px;
56 height: 38px;
57 margin: auto;
58 min-width: 38px;
59 width: 38px;
60 padding: 0;
61 line-height: normal;
62 border: 1px solid rgb(165, 173, 186); }
63 .u-button-floating.colored {
64 background: rgb(67,160,71);
65 color: rgb(255,255,255);
66 background: rgb(255,255,255); }
67 .u-button-floating.colored:hover {
68 background-color: rgb(102,187,106); }
69 .u-button-floating.colored:focus:not(:active) {
70 background-color: rgb(67,160,71); }
71 .u-button-floating.colored:active {
72 background-color: rgb(67,160,71); }
73
74.u-button.disabled, .u-button[disabled] {
75 cursor: not-allowed;
76 background-color: #DFE1E6;
77 border-color: #DFE1E6;
78 color: #fff; }
79
80.u-button-default {
81 color: #333;
82 background-color: #fff;
83 border-color: #ccc; }
84 .u-button-default:hover, .u-button-default:active {
85 background-color: #e6e6e6;
86 border-color: #adadad; }
87
88.u-button-border {
89 color: rgb(33,33,33);
90 border: 1px solid rgb(165, 173, 186);
91 background: rgb(255,255,255); }
92 .u-button-border:hover {
93 color: rgb(33,33,33);
94 background-color: #EBECF0;
95 border-color: rgb(165, 173, 186); }
96 .u-button-border:active {
97 color: rgb(33,33,33);
98 background-color: #EBECF0;
99 border-color: rgb(165, 173, 186); }
100
101.u-button.u-button-primary {
102 color: #fff;
103 background-color: rgb(245, 60, 50);
104 border: 1px rgb(245, 60, 50) solid; }
105 .u-button.u-button-primary:hover {
106 background-color: rgb(230, 0, 18);
107 border-color: rgb(230, 0, 18); }
108 .u-button.u-button-primary.focus, .u-button.u-button-primary:focus {
109 background-color: rgb(245, 60, 50);
110 border-color: rgb(245, 60, 50); }
111 .u-button.u-button-primary.active, .u-button.u-button-primary:active {
112 background-color: rgb(230, 0, 18);
113 border-color: rgb(230, 0, 18); }
114
115.u-button.u-button-secondary {
116 color: rgb(33,33,33);
117 background-color: rgb(236,239,241);
118 border: 1px rgb(236,239,241) solid; }
119 .u-button.u-button-secondary:hover {
120 background-color: rgb(223,225,230);
121 border-color: rgb(223,225,230); }
122 .u-button.u-button-secondary.focus, .u-button.u-button-secondary:focus {
123 background-color: rgb(236,239,241);
124 border-color: rgb(236,239,241); }
125 .u-button.u-button-secondary.active, .u-button.u-button-secondary:active {
126 background-color: rgb(223,225,230);
127 border-color: rgb(223,225,230); }
128
129.u-button.u-button-danger {
130 color: #fff;
131 background-color: rgb(244,67,54);
132 border: 1px rgb(244,67,54) solid; }
133 .u-button.u-button-danger:hover {
134 background-color: rgb(211,47,47);
135 border-color: rgb(211,47,47); }
136 .u-button.u-button-danger.focus, .u-button.u-button-danger:focus {
137 background-color: rgb(244,67,54);
138 border-color: rgb(244,67,54); }
139 .u-button.u-button-danger.active, .u-button.u-button-danger:active {
140 background-color: rgb(211,47,47);
141 border-color: rgb(211,47,47); }
142
143.u-button.u-button-info {
144 color: #fff;
145 background-color: rgb(0,188,212);
146 border: 1px rgb(0,188,212) solid; }
147 .u-button.u-button-info:hover {
148 background-color: rgb(0,151,167);
149 border-color: rgb(0,151,167); }
150 .u-button.u-button-info.focus, .u-button.u-button-info:focus {
151 background-color: rgb(0,188,212);
152 border-color: rgb(0,188,212); }
153 .u-button.u-button-info.active, .u-button.u-button-info:active {
154 background-color: rgb(0,151,167);
155 border-color: rgb(0,151,167); }
156
157.u-button.u-button-warning {
158 color: #fff;
159 background-color: rgb(255,152,0);
160 border: 1px rgb(255,152,0) solid; }
161 .u-button.u-button-warning:hover {
162 background-color: rgb(245,124,0);
163 border-color: rgb(245,124,0); }
164 .u-button.u-button-warning.focus, .u-button.u-button-warning:focus {
165 background-color: rgb(255,152,0);
166 border-color: rgb(255,152,0); }
167 .u-button.u-button-warning.active, .u-button.u-button-warning:active {
168 background-color: rgb(245,124,0);
169 border-color: rgb(245,124,0); }
170
171.u-button.u-button-success {
172 color: #fff;
173 background-color: rgb(76,175,80);
174 border: 1px rgb(76,175,80) solid; }
175 .u-button.u-button-success:hover {
176 background-color: rgb(56,142,60);
177 border-color: rgb(56,142,60); }
178 .u-button.u-button-success.focus, .u-button.u-button-success:focus {
179 background-color: rgb(76,175,80);
180 border-color: rgb(76,175,80); }
181 .u-button.u-button-success.active, .u-button.u-button-success:active {
182 background-color: rgb(56,142,60);
183 border-color: rgb(56,142,60); }
184
185.u-button.u-button-dark {
186 color: #fff;
187 background-color: rgb(97,97,97);
188 border: 1px rgb(97,97,97) solid; }
189 .u-button.u-button-dark:hover {
190 background-color: rgb(66,66,66);
191 border-color: rgb(66,66,66); }
192 .u-button.u-button-dark.focus, .u-button.u-button-dark:focus {
193 background-color: rgb(97,97,97);
194 border-color: rgb(97,97,97); }
195 .u-button.u-button-dark.active, .u-button.u-button-dark:active {
196 background-color: rgb(66,66,66);
197 border-color: rgb(66,66,66); }
198
199.u-button.u-button-light {
200 color: rgb(97,97,97);
201 background-color: rgb(255,255,255);
202 border: 1px rgb(255,255,255) solid; }
203 .u-button.u-button-light:hover {
204 background-color: rgb(189,189,189);
205 border-color: rgb(189,189,189); }
206 .u-button.u-button-light.focus, .u-button.u-button-light:focus {
207 background-color: rgb(255,255,255);
208 border-color: rgb(255,255,255); }
209 .u-button.u-button-light.active, .u-button.u-button-light:active {
210 background-color: rgb(189,189,189);
211 border-color: rgb(189,189,189); }
212
213.u-button-border.u-button-success {
214 color: rgb(76,175,80);
215 background-color: #fff;
216 border: 1px rgb(76,175,80) solid; }
217 .u-button-border.u-button-success:hover {
218 background-color: rgb(56,142,60);
219 border-color: rgb(56,142,60);
220 color: #fff; }
221 .u-button-border.u-button-success.focus, .u-button-border.u-button-success:focus {
222 color: rgb(76,175,80);
223 background-color: #fff;
224 border-color: rgb(76,175,80); }
225 .u-button-border.u-button-success.active, .u-button-border.u-button-success:active {
226 color: #fff;
227 background-color: rgb(56,142,60);
228 border-color: rgb(56,142,60); }
229
230.u-button-border.u-button-warning {
231 color: rgb(255,152,0);
232 background-color: #fff;
233 border: 1px rgb(255,152,0) solid; }
234 .u-button-border.u-button-warning:hover {
235 background-color: rgb(245,124,0);
236 border-color: rgb(245,124,0);
237 color: #fff; }
238 .u-button-border.u-button-warning.focus, .u-button-border.u-button-warning:focus {
239 color: rgb(255,152,0);
240 background-color: #fff;
241 border-color: rgb(255,152,0); }
242 .u-button-border.u-button-warning.active, .u-button-border.u-button-warning:active {
243 color: #fff;
244 background-color: rgb(245,124,0);
245 border-color: rgb(245,124,0); }
246
247.u-button-border.u-button-danger {
248 color: rgb(244,67,54);
249 background-color: #fff;
250 border: 1px rgb(244,67,54) solid; }
251 .u-button-border.u-button-danger:hover {
252 background-color: rgb(211,47,47);
253 border-color: rgb(211,47,47);
254 color: #fff; }
255 .u-button-border.u-button-danger.focus, .u-button-border.u-button-danger:focus {
256 color: rgb(244,67,54);
257 background-color: #fff;
258 border-color: rgb(244,67,54); }
259 .u-button-border.u-button-danger.active, .u-button-border.u-button-danger:active {
260 color: #fff;
261 background-color: rgb(211,47,47);
262 border-color: rgb(211,47,47); }
263
264.u-button-border.u-button-info {
265 color: rgb(0,188,212);
266 background-color: #fff;
267 border: 1px rgb(0,188,212) solid; }
268 .u-button-border.u-button-info:hover {
269 background-color: rgb(0,151,167);
270 border-color: rgb(0,151,167);
271 color: #fff; }
272 .u-button-border.u-button-info.focus, .u-button-border.u-button-info:focus {
273 color: rgb(0,188,212);
274 background-color: #fff;
275 border-color: rgb(0,188,212); }
276 .u-button-border.u-button-info.active, .u-button-border.u-button-info:active {
277 color: #fff;
278 background-color: rgb(0,151,167);
279 border-color: rgb(0,151,167); }
280
281.u-button-border.u-button-primary {
282 color: rgb(245, 60, 50);
283 background-color: #fff;
284 border: 1px rgb(245, 60, 50) solid; }
285 .u-button-border.u-button-primary:hover {
286 background-color: rgb(230, 0, 18);
287 border-color: rgb(230, 0, 18);
288 color: #fff; }
289 .u-button-border.u-button-primary.focus, .u-button-border.u-button-primary:focus {
290 color: rgb(245, 60, 50);
291 background-color: #fff;
292 border-color: rgb(245, 60, 50); }
293 .u-button-border.u-button-primary.active, .u-button-border.u-button-primary:active {
294 color: #fff;
295 background-color: rgb(230, 0, 18);
296 border-color: rgb(230, 0, 18); }
297
298.u-button-border.u-button-secondary {
299 color: rgb(236,239,241);
300 background-color: #fff;
301 border: 1px rgb(236,239,241) solid; }
302 .u-button-border.u-button-secondary:hover {
303 background-color: rgb(223,225,230);
304 border-color: rgb(223,225,230);
305 color: #fff; }
306 .u-button-border.u-button-secondary.focus, .u-button-border.u-button-secondary:focus {
307 color: rgb(236,239,241);
308 background-color: #fff;
309 border-color: rgb(236,239,241); }
310 .u-button-border.u-button-secondary.active, .u-button-border.u-button-secondary:active {
311 color: #fff;
312 background-color: rgb(223,225,230);
313 border-color: rgb(223,225,230); }
314
315.u-button-border.u-button-dark {
316 color: rgb(97,97,97);
317 background-color: #fff;
318 border: 1px rgb(97,97,97) solid; }
319 .u-button-border.u-button-dark:hover {
320 background-color: rgb(66,66,66);
321 border-color: rgb(66,66,66);
322 color: #fff; }
323 .u-button-border.u-button-dark.focus, .u-button-border.u-button-dark:focus {
324 color: rgb(97,97,97);
325 background-color: #fff;
326 border-color: rgb(97,97,97); }
327 .u-button-border.u-button-dark.active, .u-button-border.u-button-dark:active {
328 color: #fff;
329 background-color: rgb(66,66,66);
330 border-color: rgb(66,66,66); }
331
332.u-button-border.u-button-light {
333 color: rgb(97,97,97);
334 background-color: #fff;
335 border: 1px rgb(255,255,255) solid; }
336 .u-button-border.u-button-light:hover {
337 background-color: rgb(189,189,189);
338 border-color: rgb(189,189,189);
339 color: #fff; }
340 .u-button-border.u-button-light.focus, .u-button-border.u-button-light:focus {
341 color: rgb(97,97,97);
342 background-color: #fff;
343 border-color: rgb(255,255,255); }
344 .u-button-border.u-button-light.active, .u-button-border.u-button-light:active {
345 color: #fff;
346 background-color: rgb(189,189,189);
347 border-color: rgb(189,189,189); }
348
349.u-button-icon {
350 border-radius: 50%;
351 font-size: 14px;
352 height: 32px;
353 margin: auto;
354 min-width: 32px;
355 width: 32px;
356 padding: 0;
357 line-height: normal;
358 border: 1px solid rgb(165, 173, 186); }
359
360.u-button-lg {
361 padding: 8px 15px;
362 font-size: 14px; }
363
364.u-button-xg {
365 padding: 10.5px 18px;
366 font-size: 16px; }
367
368.u-button-md {
369 padding: 4px 13px;
370 font-size: 14px; }
371
372.u-button-sm {
373 padding: 3px 5px;
374 font-size: 12px; }
375
376.u-button-squared {
377 border-radius: 0; }
378
379.u-button-round {
380 border-radius: 1000px; }
381
382.u-button-block {
383 white-space: normal;
384 display: block;
385 width: 100%; }
386
387.u-button-pill-left {
388 border-radius: 500px 0 0 500px; }
389
390.u-button-pill-right {
391 border-radius: 0 500px 500px 0; }