css3-microsoft-metro-buttons-rails 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +59 -0
- data/lib/css3-microsoft-metro-buttons-rails.rb +14 -0
- data/lib/css3-microsoft-metro-buttons-rails/version.rb +11 -0
- data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/glyphicons-halflings.png +0 -0
- data/vendor/assets/images/syncfusion-icons-white.png +0 -0
- data/vendor/assets/images/syncfusion-icons.png +0 -0
- data/vendor/assets/javascripts/m-dropdown.js +95 -0
- data/vendor/assets/javascripts/m-radio.js +14 -0
- data/vendor/assets/stylesheets/m-buttons.css +640 -0
- data/vendor/assets/stylesheets/m-forms.css +453 -0
- data/vendor/assets/stylesheets/m-icons.css +442 -0
- metadata +59 -0
@@ -0,0 +1,453 @@
|
|
1
|
+
label.m-wrap,
|
2
|
+
input.m-wrap,
|
3
|
+
button.m-wrap,
|
4
|
+
select.m-wrap,
|
5
|
+
textarea.m-wrap {
|
6
|
+
font-size: 14px;
|
7
|
+
font-weight: normal;
|
8
|
+
line-height: 20px;
|
9
|
+
}
|
10
|
+
|
11
|
+
input.m-wrap,
|
12
|
+
button.m-wrap,
|
13
|
+
select.m-wrap,
|
14
|
+
textarea.m-wrap {
|
15
|
+
font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
16
|
+
}
|
17
|
+
|
18
|
+
label.m-wrap {
|
19
|
+
display: block;
|
20
|
+
margin-bottom: 5px;
|
21
|
+
}
|
22
|
+
|
23
|
+
select.m-wrap,
|
24
|
+
textarea.m-wrap,
|
25
|
+
input[type="text"].m-wrap,
|
26
|
+
input[type="password"].m-wrap,
|
27
|
+
input[type="datetime"].m-wrap,
|
28
|
+
input[type="datetime-local"].m-wrap,
|
29
|
+
input[type="date"].m-wrap,
|
30
|
+
input[type="month"].m-wrap,
|
31
|
+
input[type="time"].m-wrap,
|
32
|
+
input[type="week"].m-wrap,
|
33
|
+
input[type="number"].m-wrap,
|
34
|
+
input[type="email"].m-wrap,
|
35
|
+
input[type="url"].m-wrap,
|
36
|
+
input[type="search"].m-wrap,
|
37
|
+
input[type="tel"].m-wrap,
|
38
|
+
input[type="color"].m-wrap,
|
39
|
+
.m-uneditable-input
|
40
|
+
{
|
41
|
+
vertical-align: top;
|
42
|
+
display: inline-block;
|
43
|
+
height: 20px;
|
44
|
+
padding: 6px 6px;
|
45
|
+
margin-bottom: 9px;
|
46
|
+
margin-top: 0px;
|
47
|
+
font-size: 14px;
|
48
|
+
line-height: 20px;
|
49
|
+
color: #333333;
|
50
|
+
|
51
|
+
background-color: #ffffff;
|
52
|
+
border: 1px solid #eeeeee;
|
53
|
+
|
54
|
+
-webkit-border-radius: 0;
|
55
|
+
-moz-border-radius: 0;
|
56
|
+
border-radius: 0;
|
57
|
+
}
|
58
|
+
|
59
|
+
input.m-wrap,
|
60
|
+
textarea.m-wrap,
|
61
|
+
.m-uneditable-input {
|
62
|
+
width: 206px;
|
63
|
+
}
|
64
|
+
|
65
|
+
textarea.m-wrap {
|
66
|
+
height: auto;
|
67
|
+
}
|
68
|
+
|
69
|
+
textarea.m-wrap,
|
70
|
+
input[type="text"].m-wrap,
|
71
|
+
input[type="password"].m-wrap,
|
72
|
+
input[type="datetime"].m-wrap,
|
73
|
+
input[type="datetime-local"].m-wrap,
|
74
|
+
input[type="date"].m-wrap,
|
75
|
+
input[type="month"].m-wrap,
|
76
|
+
input[type="time"].m-wrap,
|
77
|
+
input[type="week"].m-wrap,
|
78
|
+
input[type="number"].m-wrap,
|
79
|
+
input[type="email"].m-wrap,
|
80
|
+
input[type="url"].m-wrap,
|
81
|
+
input[type="search"].m-wrap,
|
82
|
+
input[type="tel"].m-wrap,
|
83
|
+
input[type="color"].m-wrap,
|
84
|
+
.m-uneditable-input {
|
85
|
+
background-color: #ffffff;
|
86
|
+
border: 1px solid #eeeeee;
|
87
|
+
-webkit-box-shadow: none;
|
88
|
+
-moz-box-shadow: none;
|
89
|
+
box-shadow: none;
|
90
|
+
-webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
|
91
|
+
-moz-transition: border linear 0.2s, box-shadow linear 0.2s;
|
92
|
+
-o-transition: border linear 0.2s, box-shadow linear 0.2s;
|
93
|
+
transition: border linear 0.2s, box-shadow linear 0.2s;
|
94
|
+
-webkit-border-radius: 0px;
|
95
|
+
-moz-border-radius: 0px;
|
96
|
+
border-radius: 0px;
|
97
|
+
}
|
98
|
+
|
99
|
+
textarea.m-wrap:focus,
|
100
|
+
input[type="text"].m-wrap:focus,
|
101
|
+
input[type="password"].m-wrap:focus,
|
102
|
+
input[type="datetime"].m-wrap:focus,
|
103
|
+
input[type="datetime-local"].m-wrap:focus,
|
104
|
+
input[type="date"].m-wrap:focus,
|
105
|
+
input[type="month"].m-wrap:focus,
|
106
|
+
input[type="time"].m-wrap:focus,
|
107
|
+
input[type="week"].m-wrap:focus,
|
108
|
+
input[type="number"].m-wrap:focus,
|
109
|
+
input[type="email"].m-wrap:focus,
|
110
|
+
input[type="url"].m-wrap:focus,
|
111
|
+
input[type="search"].m-wrap:focus,
|
112
|
+
input[type="tel"].m-wrap:focus,
|
113
|
+
input[type="color"].m-wrap:focus,
|
114
|
+
.m-uneditable-input:focus {
|
115
|
+
border-color: #111111;
|
116
|
+
outline: 0;
|
117
|
+
outline: thin dotted \9;
|
118
|
+
/* IE6-9 */
|
119
|
+
|
120
|
+
-webkit-box-shadow: none;
|
121
|
+
-moz-box-shadow: none;
|
122
|
+
box-shadow: none;
|
123
|
+
}
|
124
|
+
|
125
|
+
input[type="radio"].m-wrap,
|
126
|
+
input[type="checkbox"].m-wrap {
|
127
|
+
margin: 4px 0 0;
|
128
|
+
margin-top: 1px \9;
|
129
|
+
*margin-top: 0;
|
130
|
+
line-height: normal;
|
131
|
+
cursor: pointer;
|
132
|
+
|
133
|
+
-webkit-box-sizing: border-box;
|
134
|
+
-moz-box-sizing: border-box;
|
135
|
+
box-sizing: border-box;
|
136
|
+
|
137
|
+
}
|
138
|
+
|
139
|
+
input[type="file"].m-wrap,
|
140
|
+
input[type="image"].m-wrap,
|
141
|
+
input[type="radio"].m-wrap,
|
142
|
+
input[type="checkbox"].m-wrap {
|
143
|
+
width: auto;
|
144
|
+
}
|
145
|
+
|
146
|
+
select.m-wrap,
|
147
|
+
input[type="file"].m-wrap {
|
148
|
+
height: 34px;
|
149
|
+
/* In IE7, the height of the select element cannot be changed by height, only font-size */
|
150
|
+
|
151
|
+
*margin-top: 4px;
|
152
|
+
/* For IE7, add top margin to align select with labels */
|
153
|
+
|
154
|
+
line-height: 30px;
|
155
|
+
}
|
156
|
+
|
157
|
+
select.m-wrap {
|
158
|
+
width: 220px;
|
159
|
+
background-color: #ffffff;
|
160
|
+
border: 1px solid #aaaaaa;
|
161
|
+
}
|
162
|
+
|
163
|
+
select[multiple].m-wrap,
|
164
|
+
select[size].m-wrap {
|
165
|
+
height: auto;
|
166
|
+
}
|
167
|
+
|
168
|
+
select.m-wrap:focus,
|
169
|
+
input[type="file"].m-wrap:focus,
|
170
|
+
input[type="radio"].m-wrap:focus,
|
171
|
+
input[type="checkbox"].m-wrap:focus {
|
172
|
+
outline: thin dotted #333333;
|
173
|
+
outline: 5px auto -webkit-focus-ring-color;
|
174
|
+
outline-offset: -2px;
|
175
|
+
}
|
176
|
+
|
177
|
+
.m-uneditable-input,
|
178
|
+
.m-uneditable-textarea {
|
179
|
+
color: #999999;
|
180
|
+
cursor: default;
|
181
|
+
background-color: #fafafa;
|
182
|
+
border-color: #aaaaaa;
|
183
|
+
-webkit-box-shadow: none;
|
184
|
+
-moz-box-shadow: none;
|
185
|
+
box-shadow: none;
|
186
|
+
}
|
187
|
+
|
188
|
+
.m-uneditable-input {
|
189
|
+
overflow: hidden;
|
190
|
+
white-space: nowrap;
|
191
|
+
}
|
192
|
+
|
193
|
+
.m-uneditable-textarea {
|
194
|
+
width: auto;
|
195
|
+
height: auto;
|
196
|
+
}
|
197
|
+
|
198
|
+
input.m-wrap:-moz-placeholder,
|
199
|
+
textarea.m-wrap:-moz-placeholder {
|
200
|
+
color: #999999;
|
201
|
+
}
|
202
|
+
|
203
|
+
input.m-wrap:-ms-input-placeholder,
|
204
|
+
textarea.m-wrap:-ms-input-placeholder {
|
205
|
+
color: #999999;
|
206
|
+
}
|
207
|
+
|
208
|
+
input.m-wrap::-webkit-input-placeholder,
|
209
|
+
textarea.m-wrap::-webkit-input-placeholder {
|
210
|
+
color: #999999;
|
211
|
+
}
|
212
|
+
|
213
|
+
.m-radio,
|
214
|
+
.m-checkbox {
|
215
|
+
min-height: 18px;
|
216
|
+
padding-left: 18px;
|
217
|
+
}
|
218
|
+
|
219
|
+
.m-radio input[type="radio"].m-wrap,
|
220
|
+
.m-checkbox input[type="checkbox"].m-wrap {
|
221
|
+
float: left;
|
222
|
+
margin-left: -18px;
|
223
|
+
}
|
224
|
+
|
225
|
+
.m-controls > .m-radio:first-child,
|
226
|
+
.m-controls > .m-checkbox:first-child {
|
227
|
+
padding-top: 5px;
|
228
|
+
}
|
229
|
+
|
230
|
+
.m-radio.inline,
|
231
|
+
.m-checkbox.inline {
|
232
|
+
display: inline-block;
|
233
|
+
padding-top: 5px;
|
234
|
+
margin-bottom: 0;
|
235
|
+
vertical-align: middle;
|
236
|
+
}
|
237
|
+
|
238
|
+
.m-radio.inline + .m-radio.inline,
|
239
|
+
.m-checkbox.inline + .m-checkbox.inline {
|
240
|
+
margin-left: 10px;
|
241
|
+
}
|
242
|
+
|
243
|
+
.m-ctrl-small {
|
244
|
+
width: 120px !important;
|
245
|
+
}
|
246
|
+
|
247
|
+
.m-ctrl-medium {
|
248
|
+
width: 206px !important;
|
249
|
+
}
|
250
|
+
|
251
|
+
.m-ctrl-large {
|
252
|
+
width: 320px !important;
|
253
|
+
}
|
254
|
+
|
255
|
+
.m-ctrl-huge
|
256
|
+
{
|
257
|
+
width: 480px !important;
|
258
|
+
font-size: 24px !important;
|
259
|
+
line-height: 36px !important;
|
260
|
+
padding: 22px 8px !important;
|
261
|
+
}
|
262
|
+
|
263
|
+
input[class*="span"].m-wrap,
|
264
|
+
select[class*="span"].m-wrap,
|
265
|
+
textarea[class*="span"].m-wrap,
|
266
|
+
.m-uneditable-input[class*="span"]
|
267
|
+
{
|
268
|
+
float: none;
|
269
|
+
margin-left: 0;
|
270
|
+
}
|
271
|
+
|
272
|
+
.m-input-append input[class*="span"],
|
273
|
+
.m-input-append .m-uneditable-input[class*="span"],
|
274
|
+
.m-input-prepend input[class*="span"],
|
275
|
+
.m-input-prepend .m-uneditable-input[class*="span"]
|
276
|
+
{
|
277
|
+
display: inline-block;
|
278
|
+
}
|
279
|
+
|
280
|
+
input.m-wrap,
|
281
|
+
textarea.m-wrap,
|
282
|
+
.m-uneditable-input {
|
283
|
+
margin-left: 0;
|
284
|
+
}
|
285
|
+
|
286
|
+
.m-input-prepend .add-on > [class^="icon-"]
|
287
|
+
{
|
288
|
+
margin-top: 5px;
|
289
|
+
margin-left: 3px;
|
290
|
+
}
|
291
|
+
|
292
|
+
.m-input-append .add-on > [class^="icon-"]
|
293
|
+
{
|
294
|
+
margin-top: 5px;
|
295
|
+
margin-left: 0px;
|
296
|
+
}
|
297
|
+
|
298
|
+
|
299
|
+
input[disabled].m-wrap,
|
300
|
+
select[disabled].m-wrap,
|
301
|
+
textarea[disabled].m-wrap
|
302
|
+
{
|
303
|
+
cursor: not-allowed;
|
304
|
+
background-color: #fafafa;
|
305
|
+
}
|
306
|
+
input[readonly].m-wrap,
|
307
|
+
select[readonly].m-wrap,
|
308
|
+
textarea[readonly].m-wrap {
|
309
|
+
cursor: default;
|
310
|
+
background-color: #fafafa;
|
311
|
+
}
|
312
|
+
|
313
|
+
input[type="radio"][disabled].m-wrap,
|
314
|
+
input[type="checkbox"][disabled].m-wrap,
|
315
|
+
input[type="radio"][readonly].m-wrap,
|
316
|
+
input[type="checkbox"][readonly].m-wrap {
|
317
|
+
background-color: transparent;
|
318
|
+
}
|
319
|
+
|
320
|
+
input.m-wrap:focus:required:invalid,
|
321
|
+
textarea.m-wrap:focus:required:invalid,
|
322
|
+
select.m-wrap:focus:required:invalid {
|
323
|
+
color: #b94a48;
|
324
|
+
border-color: #444444;
|
325
|
+
}
|
326
|
+
|
327
|
+
input.m-wrap:focus:required:invalid:focus,
|
328
|
+
textarea.m-wrap:focus:required:invalid:focus,
|
329
|
+
select.m-wrap:focus:required:invalid:focus {
|
330
|
+
border-color: #444444;
|
331
|
+
}
|
332
|
+
|
333
|
+
.m-input-append,
|
334
|
+
.m-input-prepend {
|
335
|
+
margin-bottom: 5px;
|
336
|
+
font-size: 0;
|
337
|
+
white-space: nowrap;
|
338
|
+
}
|
339
|
+
|
340
|
+
.m-input-append input,
|
341
|
+
.m-input-prepend input,
|
342
|
+
.m-input-append select,
|
343
|
+
.m-input-prepend select,
|
344
|
+
.m-input-append .uneditable-input,
|
345
|
+
.m-input-prepend .uneditable-input {
|
346
|
+
position: relative;
|
347
|
+
margin-bottom: 0;
|
348
|
+
*margin-left: 0;
|
349
|
+
font-size: 14px;
|
350
|
+
vertical-align: top;
|
351
|
+
-webkit-border-radius: 0px;
|
352
|
+
-moz-border-radius: 0px;
|
353
|
+
border-radius: 0px;
|
354
|
+
}
|
355
|
+
|
356
|
+
.m-input-append input:focus,
|
357
|
+
.m-input-prepend input:focus,
|
358
|
+
.m-input-append select:focus,
|
359
|
+
.m-input-prepend select:focus,
|
360
|
+
.m-input-append .m-uneditable-input:focus,
|
361
|
+
.m-input-prepend .m-uneditable-input:focus {
|
362
|
+
z-index: 2;
|
363
|
+
}
|
364
|
+
|
365
|
+
.m-input-append .add-on,
|
366
|
+
.m-input-prepend .add-on {
|
367
|
+
display: inline-block;
|
368
|
+
width: auto;
|
369
|
+
height: 24px;
|
370
|
+
min-width: 16px;
|
371
|
+
padding: 4px 5px;
|
372
|
+
font-size: 14px;
|
373
|
+
font-weight: normal;
|
374
|
+
line-height: 24px;
|
375
|
+
text-align: center;
|
376
|
+
text-shadow: 0 1px 0 #ffffff;
|
377
|
+
background-color: #dddddd;
|
378
|
+
border: 1px solid #eeeeee;
|
379
|
+
}
|
380
|
+
|
381
|
+
.m-input-append .add-on,
|
382
|
+
.m-input-prepend .add-on,
|
383
|
+
.m-input-append .m-btn,
|
384
|
+
.m-input-prepend .m-btn {
|
385
|
+
vertical-align: top;
|
386
|
+
-webkit-border-radius: 0;
|
387
|
+
-moz-border-radius: 0;
|
388
|
+
border-radius: 0;
|
389
|
+
}
|
390
|
+
|
391
|
+
.m-input-append .active,
|
392
|
+
.m-input-prepend .active {
|
393
|
+
background-color: #a9dba9;
|
394
|
+
border-color: #46a546;
|
395
|
+
}
|
396
|
+
|
397
|
+
.m-input-prepend .add-on,
|
398
|
+
.m-input-prepend .m-btn {
|
399
|
+
margin-top: 0px;
|
400
|
+
margin-right: -1px;
|
401
|
+
}
|
402
|
+
|
403
|
+
.m-input-prepend .add-on:first-child,
|
404
|
+
.m-input-prepend .m-btn:first-child {
|
405
|
+
-webkit-border-radius: 0px;
|
406
|
+
-moz-border-radius: 0px;
|
407
|
+
border-radius: 0px;
|
408
|
+
}
|
409
|
+
|
410
|
+
.m-input-append input,
|
411
|
+
.m-input-append select,
|
412
|
+
.m-input-append .m-uneditable-input {
|
413
|
+
-webkit-border-radius: 0px;
|
414
|
+
-moz-border-radius: 0px;
|
415
|
+
border-radius: 0px;
|
416
|
+
}
|
417
|
+
|
418
|
+
.m-input-append .add-on,
|
419
|
+
.m-input-append .m-btn {
|
420
|
+
margin-left: -1px;
|
421
|
+
margin-top: 0px;
|
422
|
+
}
|
423
|
+
|
424
|
+
.m-input-append .add-on:last-child,
|
425
|
+
.m-input-append .m-btn:last-child {
|
426
|
+
-webkit-border-radius: 0px;
|
427
|
+
-moz-border-radius: 0px;
|
428
|
+
border-radius: 0px;
|
429
|
+
}
|
430
|
+
|
431
|
+
.m-input-prepend.input-append input,
|
432
|
+
.m-input-prepend.input-append select,
|
433
|
+
.m-input-prepend.input-append .m-uneditable-input {
|
434
|
+
-webkit-border-radius: 0;
|
435
|
+
-moz-border-radius: 0;
|
436
|
+
border-radius: 0;
|
437
|
+
}
|
438
|
+
|
439
|
+
.m-input-prepend.m-input-append .add-on:first-child,
|
440
|
+
.m-input-prepend.m-input-append .m-btn:first-child {
|
441
|
+
margin-right: -1px;
|
442
|
+
-webkit-border-radius: 0px;
|
443
|
+
-moz-border-radius: 0px;
|
444
|
+
border-radius: 0px;
|
445
|
+
}
|
446
|
+
|
447
|
+
.m-input-prepend.m-input-append .add-on:last-child,
|
448
|
+
.m-input-prepend.m-input-append .m-btn:last-child {
|
449
|
+
margin-left: -1px;
|
450
|
+
-webkit-border-radius: 0px;
|
451
|
+
-moz-border-radius: 0px;
|
452
|
+
border-radius: 0px;
|
453
|
+
}
|