materialize-rails 0.97.5.custom1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +1 -0
  3. data/Gemfile +3 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +63 -0
  6. data/Rakefile +1 -0
  7. data/lib/materialize-rails.rb +25 -0
  8. data/lib/materialize-rails/engine.rb +14 -0
  9. data/lib/materialize-rails/version.rb +3 -0
  10. data/materialize-rails.gemspec +25 -0
  11. data/vendor/assets/fonts/materialize/material-design-icons/LICENSE.txt +428 -0
  12. data/vendor/assets/fonts/materialize/material-design-icons/Material-Design-Icons.eot +0 -0
  13. data/vendor/assets/fonts/materialize/material-design-icons/Material-Design-Icons.svg +769 -0
  14. data/vendor/assets/fonts/materialize/material-design-icons/Material-Design-Icons.ttf +0 -0
  15. data/vendor/assets/fonts/materialize/material-design-icons/Material-Design-Icons.woff +0 -0
  16. data/vendor/assets/fonts/materialize/material-design-icons/Material-Design-Icons.woff2 +0 -0
  17. data/vendor/assets/fonts/materialize/roboto/Roboto-Bold.eot +0 -0
  18. data/vendor/assets/fonts/materialize/roboto/Roboto-Bold.ttf +0 -0
  19. data/vendor/assets/fonts/materialize/roboto/Roboto-Bold.woff +0 -0
  20. data/vendor/assets/fonts/materialize/roboto/Roboto-Bold.woff2 +0 -0
  21. data/vendor/assets/fonts/materialize/roboto/Roboto-Light.eot +0 -0
  22. data/vendor/assets/fonts/materialize/roboto/Roboto-Light.ttf +0 -0
  23. data/vendor/assets/fonts/materialize/roboto/Roboto-Light.woff +0 -0
  24. data/vendor/assets/fonts/materialize/roboto/Roboto-Light.woff2 +0 -0
  25. data/vendor/assets/fonts/materialize/roboto/Roboto-Medium.eot +0 -0
  26. data/vendor/assets/fonts/materialize/roboto/Roboto-Medium.ttf +0 -0
  27. data/vendor/assets/fonts/materialize/roboto/Roboto-Medium.woff +0 -0
  28. data/vendor/assets/fonts/materialize/roboto/Roboto-Medium.woff2 +0 -0
  29. data/vendor/assets/fonts/materialize/roboto/Roboto-Regular.eot +0 -0
  30. data/vendor/assets/fonts/materialize/roboto/Roboto-Regular.ttf +0 -0
  31. data/vendor/assets/fonts/materialize/roboto/Roboto-Regular.woff +0 -0
  32. data/vendor/assets/fonts/materialize/roboto/Roboto-Regular.woff2 +0 -0
  33. data/vendor/assets/fonts/materialize/roboto/Roboto-Thin.eot +0 -0
  34. data/vendor/assets/fonts/materialize/roboto/Roboto-Thin.ttf +0 -0
  35. data/vendor/assets/fonts/materialize/roboto/Roboto-Thin.woff +0 -0
  36. data/vendor/assets/fonts/materialize/roboto/Roboto-Thin.woff2 +0 -0
  37. data/vendor/assets/javascripts/materialize.js +30 -0
  38. data/vendor/assets/javascripts/materialize/animation.js +9 -0
  39. data/vendor/assets/javascripts/materialize/buttons.js +91 -0
  40. data/vendor/assets/javascripts/materialize/cards.js +29 -0
  41. data/vendor/assets/javascripts/materialize/carousel.js +350 -0
  42. data/vendor/assets/javascripts/materialize/character_counter.js +59 -0
  43. data/vendor/assets/javascripts/materialize/chips.js +9 -0
  44. data/vendor/assets/javascripts/materialize/collapsible.js +137 -0
  45. data/vendor/assets/javascripts/materialize/date_picker/picker.date.js +1430 -0
  46. data/vendor/assets/javascripts/materialize/date_picker/picker.js +1123 -0
  47. data/vendor/assets/javascripts/materialize/dropdown.js +228 -0
  48. data/vendor/assets/javascripts/materialize/forms.js +581 -0
  49. data/vendor/assets/javascripts/materialize/global.js +45 -0
  50. data/vendor/assets/javascripts/materialize/hammer.min.js +1 -0
  51. data/vendor/assets/javascripts/materialize/initial.js +11 -0
  52. data/vendor/assets/javascripts/materialize/jquery.easing.1.3.js +205 -0
  53. data/vendor/assets/javascripts/materialize/jquery.hammer.js +33 -0
  54. data/vendor/assets/javascripts/materialize/leanModal.js +178 -0
  55. data/vendor/assets/javascripts/materialize/materialbox.js +269 -0
  56. data/vendor/assets/javascripts/materialize/parallax.js +58 -0
  57. data/vendor/assets/javascripts/materialize/pushpin.js +62 -0
  58. data/vendor/assets/javascripts/materialize/scrollFire.js +44 -0
  59. data/vendor/assets/javascripts/materialize/scrollspy.js +285 -0
  60. data/vendor/assets/javascripts/materialize/sideNav.js +315 -0
  61. data/vendor/assets/javascripts/materialize/slider.js +321 -0
  62. data/vendor/assets/javascripts/materialize/tabs.js +129 -0
  63. data/vendor/assets/javascripts/materialize/toasts.js +136 -0
  64. data/vendor/assets/javascripts/materialize/tooltip.js +203 -0
  65. data/vendor/assets/javascripts/materialize/transitions.js +154 -0
  66. data/vendor/assets/javascripts/materialize/velocity.min.js +5 -0
  67. data/vendor/assets/javascripts/materialize/waves.js +338 -0
  68. data/vendor/assets/stylesheets/components/_buttons.scss +181 -0
  69. data/vendor/assets/stylesheets/components/_cards.scss +134 -0
  70. data/vendor/assets/stylesheets/components/_carousel.scss +34 -0
  71. data/vendor/assets/stylesheets/components/_chips.scss +27 -0
  72. data/vendor/assets/stylesheets/components/_collapsible.scss +85 -0
  73. data/vendor/assets/stylesheets/components/_color.scss +412 -0
  74. data/vendor/assets/stylesheets/components/_dropdown.scss +57 -0
  75. data/vendor/assets/stylesheets/components/_form.scss +918 -0
  76. data/vendor/assets/stylesheets/components/_global.scss +766 -0
  77. data/vendor/assets/stylesheets/components/_grid.scss +146 -0
  78. data/vendor/assets/stylesheets/components/_icons-material-design.scss +3263 -0
  79. data/vendor/assets/stylesheets/components/_materialbox.scss +42 -0
  80. data/vendor/assets/stylesheets/components/_mixins.scss +5 -0
  81. data/vendor/assets/stylesheets/components/_modal.scss +90 -0
  82. data/vendor/assets/stylesheets/components/_navbar.scss +171 -0
  83. data/vendor/assets/stylesheets/components/_normalize.scss +427 -0
  84. data/vendor/assets/stylesheets/components/_prefixer.scss +384 -0
  85. data/vendor/assets/stylesheets/components/_preloader.scss +334 -0
  86. data/vendor/assets/stylesheets/components/_roboto.scss +49 -0
  87. data/vendor/assets/stylesheets/components/_sideNav.scss +112 -0
  88. data/vendor/assets/stylesheets/components/_slider.scss +92 -0
  89. data/vendor/assets/stylesheets/components/_table_of_contents.scss +33 -0
  90. data/vendor/assets/stylesheets/components/_tabs.scss +56 -0
  91. data/vendor/assets/stylesheets/components/_toast.scss +65 -0
  92. data/vendor/assets/stylesheets/components/_tooltip.scss +33 -0
  93. data/vendor/assets/stylesheets/components/_typography.scss +61 -0
  94. data/vendor/assets/stylesheets/components/_variables.scss +161 -0
  95. data/vendor/assets/stylesheets/components/_waves.scss +173 -0
  96. data/vendor/assets/stylesheets/components/date_picker/_default.date.scss +435 -0
  97. data/vendor/assets/stylesheets/components/date_picker/_default.scss +201 -0
  98. data/vendor/assets/stylesheets/components/date_picker/_default.time.scss +125 -0
  99. data/vendor/assets/stylesheets/materialize.scss +40 -0
  100. metadata +199 -0
@@ -0,0 +1,918 @@
1
+ /* Remove Focus Boxes */
2
+ select:focus {
3
+ outline: 1px solid lighten($secondary-color, 47%);
4
+ }
5
+ button:focus {
6
+ outline: none;
7
+ background-color: lighten($button-color, 4%);
8
+ }
9
+
10
+ label {
11
+ font-size: $label-font-size;
12
+ color: $input-border-color;
13
+ }
14
+
15
+ /***************************
16
+ Text Inputs + Textarea
17
+ ****************************/
18
+
19
+ // Style Placeholders
20
+ ::-webkit-input-placeholder {
21
+ color: lighten($input-border-color, 20%);
22
+ }
23
+
24
+ :-moz-placeholder { /* Firefox 18- */
25
+ color: lighten($input-border-color, 20%);
26
+ }
27
+
28
+ ::-moz-placeholder { /* Firefox 19+ */
29
+ color: lighten($input-border-color, 20%);
30
+ }
31
+
32
+ :-ms-input-placeholder {
33
+ color: lighten($input-border-color, 20%);
34
+ }
35
+
36
+ // Text inputs
37
+ input:not([type]),
38
+ input[type=text],
39
+ input[type=password],
40
+ input[type=email],
41
+ input[type=url],
42
+ input[type=time],
43
+ input[type=date],
44
+ input[type=datetime-local],
45
+ input[type=tel],
46
+ input[type=number],
47
+ input[type=search],
48
+ textarea.materialize-textarea {
49
+
50
+ // General Styles
51
+ background-color: transparent;
52
+ border: none;
53
+ border-bottom: 1px solid $input-border-color;
54
+ border-radius: 0;
55
+ outline: none;
56
+ height: 3rem;
57
+ width: 100%;
58
+
59
+ font-size: 1rem;
60
+ margin: 0 0 15px 0;
61
+ padding: 0;
62
+ box-shadow: none;
63
+ box-sizing: content-box;
64
+ transition: all .3s;
65
+
66
+
67
+ // Disabled input style
68
+ &:disabled, &[readonly="readonly"] {
69
+ color: $input-disabled-color;
70
+ border-bottom: 1px dotted $input-disabled-color;
71
+ }
72
+ // Disabled label style
73
+ &:disabled+label, &[readonly="readonly"]+label {
74
+ color: $input-disabled-color;
75
+ }
76
+ // Focused input style
77
+ &:focus:not([readonly]) {
78
+ border-bottom: 1px solid $input-focus-color;
79
+ box-shadow: 0 1px 0 0 $input-focus-color;
80
+ }
81
+ // Focused label style
82
+ &:focus:not([readonly])+label {
83
+ color: $input-focus-color;
84
+ }
85
+ // Valid Input Style
86
+ &.valid,
87
+ &:focus.valid {
88
+ border-bottom: 1px solid $input-success-color;
89
+ box-shadow: 0 1px 0 0 $input-success-color;
90
+ }
91
+ // Custom Success Message
92
+ &.valid + label:after,
93
+ &:focus.valid + label:after {
94
+ content: attr(data-success);
95
+ color: $input-success-color;
96
+ opacity: 1;
97
+ }
98
+ // Invalid Input Style
99
+ &.invalid,
100
+ &:focus.invalid {
101
+ border-bottom: 1px solid $input-error-color;
102
+ box-shadow: 0 1px 0 0 $input-error-color;
103
+ }
104
+ // Custom Error message
105
+ &.invalid + label:after,
106
+ &:focus.invalid + label:after {
107
+ content: attr(data-error);
108
+ color: $input-error-color;
109
+ opacity: 1;
110
+ }
111
+
112
+ // Form Message Shared Styles
113
+ & + label:after {
114
+ display: block;
115
+ content: "";
116
+ position: absolute;
117
+ top: 65px;
118
+ opacity: 0;
119
+ transition: .2s opacity ease-out, .2s color ease-out;
120
+ }
121
+ }
122
+
123
+ // Styling for input field wrapper
124
+ .input-field {
125
+ position: relative;
126
+ margin-top: 1rem;
127
+
128
+ label {
129
+ color: $input-border-color;
130
+ position: absolute;
131
+ top: 0.8rem;
132
+ left: $gutter-width / 2;
133
+ font-size: 1rem;
134
+ cursor: text;
135
+ transition: .2s ease-out;
136
+ }
137
+ label.active {
138
+ font-size: $label-font-size;
139
+ transform: translateY(-140%);
140
+ }
141
+
142
+ // Prefix Icons
143
+ .prefix {
144
+ position: absolute;
145
+ width: 3rem;
146
+ font-size: 2rem;
147
+ transition: color .2s;
148
+
149
+ &.active { color: $input-focus-color; }
150
+ }
151
+ .prefix ~ input,
152
+ .prefix ~ textarea {
153
+ margin-left: 3rem;
154
+ width: 92%;
155
+ width: calc(100% - 3rem);
156
+ }
157
+ .prefix ~ textarea { padding-top: .8rem; }
158
+ .prefix ~ label { margin-left: 3rem; }
159
+
160
+ @media #{$medium-and-down} {
161
+ .prefix ~ input {
162
+ width: 86%;
163
+ width: calc(100% - 3rem);
164
+ }
165
+ }
166
+ @media #{$small-and-down} {
167
+ .prefix ~ input {
168
+ width: 80%;
169
+ width: calc(100% - 3rem);
170
+ }
171
+ }
172
+ }
173
+
174
+ // Search Field
175
+ .input-field input[type=search] {
176
+ display: block;
177
+ line-height: inherit;
178
+ padding-left: 4rem;
179
+ width: calc(100% - 4rem);
180
+
181
+ &:focus {
182
+ background-color: $input-bg-color;
183
+ border: 0;
184
+ box-shadow: none;
185
+ color: #444;
186
+
187
+ & + label i,
188
+ & ~ .mdi-navigation-close,
189
+ & ~ .material-icons {
190
+ color: #444;
191
+ }
192
+ }
193
+
194
+ & + label {
195
+ left: 1rem;
196
+ }
197
+
198
+ & ~ .mdi-navigation-close,
199
+ & ~ .material-icons {
200
+ position: absolute;
201
+ top: 0;
202
+ right: 1rem;
203
+ color: transparent;
204
+ cursor: pointer;
205
+ font-size: 2rem;
206
+ transition: .3s color;
207
+ }
208
+ }
209
+
210
+
211
+ // Default textarea
212
+ textarea {
213
+ width: 100%;
214
+ height: 3rem;
215
+ background-color: transparent;
216
+
217
+ &.materialize-textarea {
218
+ overflow-y: hidden; /* prevents scroll bar flash */
219
+ padding: 1.6rem 0; /* prevents text jump on Enter keypress */
220
+ resize: none;
221
+ min-height: 3rem;
222
+ }
223
+ }
224
+
225
+ // For textarea autoresize
226
+ .hiddendiv {
227
+ display: none;
228
+ white-space: pre-wrap;
229
+ word-wrap: break-word;
230
+ overflow-wrap: break-word; /* future version of deprecated 'word-wrap' */
231
+ padding-top: 1.2rem; /* prevents text jump on Enter keypress */
232
+ }
233
+
234
+
235
+ /***************
236
+ Radio Buttons
237
+ ***************/
238
+
239
+ /* Remove default Radio Buttons */
240
+ [type="radio"]:not(:checked),
241
+ [type="radio"]:checked {
242
+ position: absolute;
243
+ left: -9999px;
244
+ visibility: hidden;
245
+ }
246
+
247
+ [type="radio"]:not(:checked) + label,
248
+ [type="radio"]:checked + label {
249
+ position: relative;
250
+ padding-left: 35px;
251
+ cursor: pointer;
252
+ display: inline-block;
253
+ height: 25px;
254
+ line-height: 25px;
255
+ font-size: 1rem;
256
+ transition: .28s ease;
257
+
258
+ -khtml-user-select: none; /* webkit (konqueror) browsers */
259
+ user-select: none;
260
+ }
261
+
262
+ [type="radio"] + label:before,
263
+ [type="radio"] + label:after {
264
+ content: '';
265
+ position: absolute;
266
+ left: 0;
267
+ top: 0;
268
+ margin: 4px;
269
+ width: 16px;
270
+ height: 16px;
271
+ z-index: 0;
272
+ transition: .28s ease;
273
+ }
274
+
275
+ /* Unchecked styles */
276
+ [type="radio"]:not(:checked) + label:before {
277
+ border-radius: 50%;
278
+ border: 2px solid $radio-empty-color;
279
+ }
280
+ [type="radio"]:not(:checked) + label:after {
281
+ border-radius: 50%;
282
+ border: 2px solid $radio-empty-color;
283
+ z-index: -1;
284
+
285
+ transform: scale(0);
286
+ }
287
+
288
+ /* Checked styles */
289
+ [type="radio"]:checked + label:before {
290
+ border-radius: 50%;
291
+ border: 2px solid transparent;
292
+ }
293
+ [type="radio"]:checked + label:after {
294
+ border-radius: 50%;
295
+ border: 2px solid $radio-fill-color;
296
+ background-color: $radio-fill-color;
297
+ z-index: 0;
298
+ transform: scale(1.02);
299
+ }
300
+
301
+ /* Radio With gap */
302
+ [type="radio"].with-gap:checked + label:before {
303
+ border-radius: 50%;
304
+ border: 2px solid $radio-fill-color;
305
+ }
306
+ [type="radio"].with-gap:checked + label:after {
307
+ border-radius: 50%;
308
+ border: 2px solid $radio-fill-color;
309
+ background-color: $radio-fill-color;
310
+ z-index: 0;
311
+ transform: scale(.5);
312
+ }
313
+
314
+ /* Disabled Radio With gap */
315
+ [type="radio"].with-gap:disabled:checked + label:before {
316
+ border: 2px solid $input-disabled-color;
317
+ }
318
+ [type="radio"].with-gap:disabled:checked + label:after {
319
+ border: none;
320
+ background-color: $input-disabled-color;
321
+ }
322
+
323
+ /* Disabled style */
324
+ [type="radio"]:disabled:not(:checked) + label:before,
325
+ [type="radio"]:disabled:checked + label:before {
326
+ background-color: transparent;
327
+ border-color: $input-disabled-color;
328
+ }
329
+ [type="radio"]:disabled + label {
330
+ color: $input-disabled-color;
331
+ }
332
+ [type="radio"]:disabled:not(:checked) + label:before {
333
+ border-color: $input-disabled-color;
334
+ }
335
+ [type="radio"]:disabled:checked + label:after {
336
+ background-color: $input-disabled-color;
337
+ border-color: $input-disabled-solid-color;
338
+ }
339
+
340
+ /***************
341
+ Checkboxes
342
+ ***************/
343
+
344
+ /* CUSTOM CSS CHECKBOXES */
345
+ form p {
346
+ margin-bottom: 10px;
347
+ text-align: left;
348
+ }
349
+ form p:last-child {
350
+ margin-bottom: 0;
351
+ }
352
+
353
+ /* Remove default checkbox */
354
+ [type="checkbox"]:not(:checked),
355
+ [type="checkbox"]:checked {
356
+ position: absolute;
357
+ left: -9999px;
358
+ visibility: hidden;
359
+ }
360
+
361
+ // Checkbox Styles
362
+ [type="checkbox"] {
363
+
364
+ // Text Label Style
365
+ + label {
366
+ position: relative;
367
+ padding-left: 35px;
368
+ cursor: pointer;
369
+ display: inline-block;
370
+ height: 25px;
371
+ line-height: 25px;
372
+ font-size: 1rem;
373
+
374
+ -webkit-user-select: none; /* webkit (safari, chrome) browsers */
375
+ -moz-user-select: none; /* mozilla browsers */
376
+ -khtml-user-select: none; /* webkit (konqueror) browsers */
377
+ -ms-user-select: none; /* IE10+ */
378
+ }
379
+
380
+ /* checkbox aspect */
381
+ + label:before {
382
+ content: '';
383
+ position: absolute;
384
+ top: 0;
385
+ left: 0;
386
+ width: 18px;
387
+ height: 18px;
388
+ z-index: 0;
389
+ border: 2px solid $radio-empty-color;
390
+ border-radius: 1px;
391
+ margin-top: 2px;
392
+ transition: .2s;
393
+ }
394
+
395
+ &:not(:checked):disabled + label:before {
396
+ border: none;
397
+ background-color: $input-disabled-color;
398
+ }
399
+ }
400
+
401
+ [type="checkbox"]:checked {
402
+ + label:before {
403
+ top: -4px;
404
+ left: -3px;
405
+ width: 12px; height: 22px;
406
+ border-top: 2px solid transparent;
407
+ border-left: 2px solid transparent;
408
+ border-right: 2px solid $radio-fill-color;
409
+ border-bottom: 2px solid $radio-fill-color;
410
+ transform: rotate(40deg);
411
+ backface-visibility: hidden;
412
+ transform-origin: 100% 100%;
413
+ }
414
+
415
+ &:disabled + label:before {
416
+ border-right: 2px solid $input-disabled-color;
417
+ border-bottom: 2px solid $input-disabled-color;
418
+ }
419
+ }
420
+
421
+ /* Indeterminate checkbox */
422
+ [type="checkbox"]:indeterminate {
423
+ +label:before {
424
+ left: -10px;
425
+ top: -11px;
426
+ width: 10px; height: 22px;
427
+ border-top: none;
428
+ border-left: none;
429
+ border-right: 2px solid $radio-fill-color;
430
+ border-bottom: none;
431
+ transform: rotate(90deg);
432
+ backface-visibility: hidden;
433
+ transform-origin: 100% 100%;
434
+ }
435
+
436
+ // Disabled indeterminate
437
+ &:disabled + label:before {
438
+ border-right: 2px solid $input-disabled-color;
439
+ background-color: transparent;
440
+ }
441
+ }
442
+
443
+ // Filled in Style
444
+ [type="checkbox"].filled-in {
445
+ // General
446
+ + label:after {
447
+ border-radius: 2px;
448
+ }
449
+ + label:before,
450
+ + label:after {
451
+ content: '';
452
+ left: 0;
453
+ position: absolute;
454
+ /* .1s delay is for check animation */
455
+ transition: border .25s, background-color .25s, width .20s .1s, height .20s .1s, top .20s .1s, left .20s .1s;
456
+ z-index: 1;
457
+ }
458
+
459
+ // Unchecked style
460
+ &:not(:checked) + label:before {
461
+ width: 0;
462
+ height: 0;
463
+ border: 3px solid transparent;
464
+ left: 6px;
465
+ top: 10px;
466
+
467
+ -webkit-transform: rotateZ(37deg);
468
+ transform: rotateZ(37deg);
469
+ -webkit-transform-origin: 20% 40%;
470
+ transform-origin: 100% 100%;
471
+ }
472
+
473
+ &:not(:checked) + label:after {
474
+ height: 20px;
475
+ width: 20px;
476
+ background-color: transparent;
477
+ border: 2px solid $radio-empty-color;
478
+ top: 0px;
479
+ z-index: 0;
480
+ }
481
+
482
+ // Checked style
483
+ &:checked {
484
+ + label:before {
485
+ top: 0;
486
+ left: 1px;
487
+ width: 8px;
488
+ height: 13px;
489
+ border-top: 2px solid transparent;
490
+ border-left: 2px solid transparent;
491
+ border-right: 2px solid $input-bg-color;
492
+ border-bottom: 2px solid $input-bg-color;
493
+ -webkit-transform: rotateZ(37deg);
494
+ transform: rotateZ(37deg);
495
+
496
+ -webkit-transform-origin: 100% 100%;
497
+ transform-origin: 100% 100%;
498
+ }
499
+
500
+ + label:after {
501
+ top: 0px;
502
+ width: 20px;
503
+ height: 20px;
504
+ border: 2px solid $secondary-color;
505
+ background-color: $secondary-color;
506
+ z-index: 0;
507
+ }
508
+ }
509
+ // Disabled style
510
+ &:disabled:not(:checked) + label:before {
511
+ background-color: transparent;
512
+ border: 2px solid transparent;
513
+ }
514
+
515
+ &:disabled:not(:checked) + label:after {
516
+ border-color: transparent;
517
+ background-color: $input-disabled-solid-color;
518
+ }
519
+
520
+ &:disabled:checked + label:before {
521
+ background-color: transparent;
522
+ }
523
+
524
+ &:disabled:checked + label:after {
525
+ background-color: $input-disabled-solid-color;
526
+ border-color: $input-disabled-solid-color;
527
+ }
528
+ }
529
+
530
+ /***************
531
+ Switch
532
+ ***************/
533
+ .switch,
534
+ .switch * {
535
+ -webkit-user-select: none;
536
+ -moz-user-select: none;
537
+ -khtml-user-select: none;
538
+ -ms-user-select: none;
539
+ }
540
+
541
+ .switch label {
542
+ cursor: pointer;
543
+ }
544
+
545
+ .switch label input[type=checkbox]{
546
+ opacity: 0;
547
+ width: 0;
548
+ height: 0;
549
+ }
550
+
551
+ .switch label input[type=checkbox]:checked + .lever {
552
+ background-color: $switch-checked-lever-bg;
553
+ }
554
+
555
+ .switch label input[type=checkbox]:checked + .lever:after {
556
+ background-color: $switch-bg-color;
557
+ }
558
+
559
+ .switch label .lever {
560
+ content: "";
561
+ display: inline-block;
562
+ position: relative;
563
+ width: 40px;
564
+ height: 15px;
565
+ background-color: $switch-unchecked-lever-bg;
566
+ border-radius: 15px;
567
+ margin-right: 10px;
568
+ transition: background 0.3s ease;
569
+ vertical-align: middle;
570
+ margin: 0 16px;
571
+ }
572
+
573
+ .switch label .lever:after {
574
+ content: "";
575
+ position: absolute;
576
+ display: inline-block;
577
+ width: 21px;
578
+ height: 21px;
579
+ background-color: $switch-unchecked-bg;
580
+ border-radius: 21px;
581
+ box-shadow: 0 1px 3px 1px rgba(0,0,0,.4);
582
+ left: -5px;
583
+ top: -3px;
584
+ transition: left 0.3s ease, background .3s ease, box-shadow 0.1s ease;
585
+ }
586
+
587
+ // Switch active style
588
+ input[type=checkbox]:checked:not(:disabled) ~ .lever:active:after {
589
+ box-shadow: 0 1px 3px 1px rgba(0,0,0,.4), 0 0 0 15px transparentize($switch-bg-color, .9);
590
+ }
591
+
592
+ input[type=checkbox]:not(:disabled) ~ .lever:active:after {
593
+ box-shadow: 0 1px 3px 1px rgba(0,0,0,.4), 0 0 0 15px rgba(0, 0, 0, .08);
594
+ }
595
+
596
+ .switch label input[type=checkbox]:checked + .lever:after {
597
+ left: 24px;
598
+ }
599
+
600
+ // Disabled Styles
601
+ .switch input[type=checkbox][disabled] + .lever{
602
+ cursor: default;
603
+ }
604
+ .switch label input[type=checkbox][disabled] + .lever:after,
605
+ .switch label input[type=checkbox][disabled]:checked + .lever:after {
606
+ background-color: $input-disabled-solid-color;
607
+ }
608
+
609
+ /***************
610
+ Select Field
611
+ ***************/
612
+ .select-label {
613
+ position: absolute;
614
+ }
615
+
616
+ .select-wrapper {
617
+ position: relative;
618
+
619
+ input.select-dropdown {
620
+ position: relative;
621
+ cursor: pointer;
622
+ // color: #444;
623
+ background-color: transparent;
624
+ border: none;
625
+ border-bottom: 1px solid $input-border-color;
626
+ outline: none;
627
+ height: 3rem;
628
+ line-height: 3rem;
629
+ width: 100%;
630
+ font-size: 1rem;
631
+ margin: 0 0 15px 0;
632
+ padding: 0;
633
+ display: block;
634
+ }
635
+
636
+ span.caret {
637
+ color: initial;
638
+ position: absolute;
639
+ right: 0;
640
+ top: 16px;
641
+ font-size: 10px;
642
+ &.disabled {
643
+ color: $input-disabled-color;
644
+ }
645
+ }
646
+
647
+ & + label {
648
+ position: absolute;
649
+ top: -14px;
650
+ font-size: $label-font-size;
651
+ }
652
+ }
653
+
654
+ select { display: none; }
655
+ select.browser-default { display: block; }
656
+
657
+ // Disabled styles
658
+ select:disabled {
659
+ color: rgba(0,0,0,.3);
660
+ }
661
+
662
+ .select-wrapper input.select-dropdown:disabled {
663
+ color: rgba(0,0,0,.3);
664
+ cursor: default;
665
+ -webkit-user-select: none; /* webkit (safari, chrome) browsers */
666
+ -moz-user-select: none; /* mozilla browsers */
667
+ -ms-user-select: none; /* IE10+ */
668
+ border-bottom: 1px solid rgba(0,0,0,.3);
669
+ }
670
+
671
+ .select-wrapper i {
672
+ color: rgba(0,0,0,.3);
673
+ }
674
+
675
+ .select-dropdown li.disabled,
676
+ .select-dropdown li.disabled > span,
677
+ .select-dropdown li.optgroup {
678
+ color: rgba(0,0,0,.3);
679
+ background-color: transparent;
680
+ }
681
+
682
+ // Icons
683
+ .select-dropdown li {
684
+ img {
685
+ height: $dropdown-item-height - 10;
686
+ width: $dropdown-item-height - 10;
687
+ margin: 5px 15px;
688
+ float: right;
689
+ }
690
+ }
691
+
692
+ // Optgroup styles
693
+ .select-dropdown li.optgroup {
694
+ border-top: 1px solid $dropdown-hover-bg-color;
695
+
696
+ &.selected > span {
697
+ color: rgba(0, 0, 0, .7);
698
+ }
699
+
700
+ & > span {
701
+ color: rgba(0, 0, 0, .4);
702
+ }
703
+
704
+ & ~ li:not(.optgroup) {
705
+ padding-left: 1rem;
706
+ }
707
+ }
708
+
709
+ /*********************
710
+ File Input
711
+ **********************/
712
+ .file-field {
713
+ position: relative;
714
+
715
+ .file-path-wrapper {
716
+ overflow: hidden;
717
+ padding-left: 10px;
718
+ }
719
+
720
+ input.file-path { width: 100%; }
721
+
722
+ .btn {
723
+ float: left;
724
+ height: 3rem;
725
+ line-height: 3rem;
726
+ }
727
+
728
+ span {
729
+ cursor: pointer;
730
+ }
731
+
732
+ input[type=file] {
733
+ position: absolute;
734
+ top: 0;
735
+ right: 0;
736
+ left: 0;
737
+ bottom: 0;
738
+ width: 100%;
739
+ margin: 0;
740
+ padding: 0;
741
+ font-size: 20px;
742
+ cursor: pointer;
743
+ opacity: 0;
744
+ filter: alpha(opacity=0);
745
+ }
746
+ }
747
+
748
+ /***************
749
+ Range
750
+ ***************/
751
+
752
+ .range-field {
753
+ position: relative;
754
+ }
755
+
756
+ input[type=range], input[type=range] + .thumb {
757
+ @extend .no-select;
758
+ cursor: pointer;
759
+ }
760
+
761
+ input[type=range] {
762
+ position: relative;
763
+ background-color: transparent;
764
+ border: none;
765
+ outline: none;
766
+ width: 100%;
767
+ margin: 15px 0px;
768
+ padding: 0;
769
+ }
770
+ input[type=range] + .thumb {
771
+ position: absolute;
772
+ border: none;
773
+ height: 0;
774
+ width: 0;
775
+ border-radius: 50%;
776
+ background-color: $radio-fill-color;
777
+ top: 10px;
778
+ margin-left: -6px;
779
+
780
+ transform-origin: 50% 50%;
781
+ transform: rotate(-45deg);
782
+
783
+ .value {
784
+ display: block;
785
+ width: 30px;
786
+ text-align: center;
787
+ color: $radio-fill-color;
788
+ font-size: 0;
789
+ transform: rotate(45deg);
790
+ }
791
+
792
+ &.active {
793
+ border-radius: 50% 50% 50% 0;
794
+
795
+ .value {
796
+ color: $input-bg-color;
797
+ margin-left: -1px;
798
+ margin-top: 8px;
799
+ font-size: 10px;
800
+ }
801
+ }
802
+ }
803
+
804
+
805
+ input[type=range]:focus {
806
+ outline: none;
807
+ }
808
+
809
+ // WebKit
810
+ input[type=range]{
811
+ -webkit-appearance: none;
812
+ }
813
+
814
+ input[type=range]::-webkit-slider-runnable-track {
815
+ height: 3px;
816
+ background: #c2c0c2;
817
+ border: none;
818
+ }
819
+
820
+ input[type=range]::-webkit-slider-thumb {
821
+ -webkit-appearance: none;
822
+ border: none;
823
+ height: 14px;
824
+ width: 14px;
825
+ border-radius: 50%;
826
+ background-color: $radio-fill-color;
827
+ transform-origin: 50% 50%;
828
+ margin: -5px 0 0 0;
829
+ transition: .3s;
830
+ }
831
+
832
+ input[type=range]:focus::-webkit-slider-runnable-track {
833
+ background: #ccc;
834
+ }
835
+
836
+ // FireFox
837
+ input[type=range]{
838
+ /* fix for FF unable to apply focus style bug */
839
+ border: 1px solid white;
840
+
841
+ /*required for proper track sizing in FF*/
842
+ }
843
+
844
+ input[type=range]::-moz-range-track {
845
+ height: 3px;
846
+ background: #ddd;
847
+ border: none;
848
+ }
849
+
850
+ input[type=range]::-moz-range-thumb {
851
+ border: none;
852
+ height: 14px;
853
+ width: 14px;
854
+ border-radius: 50%;
855
+ background: $radio-fill-color;
856
+ margin-top: -5px;
857
+ }
858
+
859
+ /*hide the outline behind the border*/
860
+ input[type=range]:-moz-focusring{
861
+ outline: 1px solid white;
862
+ outline-offset: -1px;
863
+ }
864
+
865
+ input[type=range]:focus::-moz-range-track {
866
+ background: #ccc;
867
+ }
868
+
869
+ // IE 10+
870
+ input[type=range]::-ms-track {
871
+ height: 3px;
872
+
873
+ /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
874
+ background: transparent;
875
+
876
+ /*leave room for the larger thumb to overflow with a transparent border */
877
+ border-color: transparent;
878
+ border-width: 6px 0;
879
+
880
+ /*remove default tick marks*/
881
+ color: transparent;
882
+ }
883
+
884
+ input[type=range]::-ms-fill-lower {
885
+ background: #777;
886
+ }
887
+
888
+ input[type=range]::-ms-fill-upper {
889
+ background: #ddd;
890
+ }
891
+
892
+ input[type=range]::-ms-thumb {
893
+ border: none;
894
+ height: 14px;
895
+ width: 14px;
896
+ border-radius: 50%;
897
+ background: $radio-fill-color;
898
+ }
899
+
900
+ input[type=range]:focus::-ms-fill-lower {
901
+ background: #888;
902
+ }
903
+
904
+ input[type=range]:focus::-ms-fill-upper {
905
+ background: #ccc;
906
+ }
907
+
908
+ /***************************
909
+ Text Inputs + Textarea
910
+ ****************************/
911
+ select {
912
+ background-color: rgba(255, 255, 255, 0.90);
913
+ width: 100%;
914
+ padding: 5px;
915
+ border: 1px solid #f2f2f2;
916
+ border-radius: 2px;
917
+ height: 3rem;
918
+ }