74249687
Luigi Serra
Cross browser con...
|
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
|
/* Remove Focus Boxes */
select:focus {
outline: 1px solid lighten($secondary-color, 47%);
}
button:focus {
outline: none;
background-color: lighten($button-color, 4%);
}
label {
font-size: $label-font-size;
color: $input-border-color;
}
/***************************
Text Inputs + Textarea
****************************/
// Style Placeholders
::-webkit-input-placeholder {
color: lighten($input-border-color, 20%);
}
:-moz-placeholder { /* Firefox 18- */
color: lighten($input-border-color, 20%);
}
::-moz-placeholder { /* Firefox 19+ */
color: lighten($input-border-color, 20%);
}
:-ms-input-placeholder {
color: lighten($input-border-color, 20%);
}
// Text inputs
|
74249687
Luigi Serra
Cross browser con...
|
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
|
input[type=text],
input[type=password],
input[type=email],
input[type=url],
input[type=time],
input[type=date],
input[type=datetime-local],
input[type=tel],
input[type=number],
input[type=search],
textarea.materialize-textarea {
// General Styles
background-color: transparent;
border: none;
border-bottom: 1px solid $input-border-color;
border-radius: 0;
outline: none;
height: 3rem;
width: 100%;
font-size: 1rem;
margin: 0 0 15px 0;
padding: 0;
box-shadow: none;
|
c5169e0e
Renato De Donato
a new hope
|
62
|
@include box-sizing(content-box);
|
74249687
Luigi Serra
Cross browser con...
|
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
|
transition: all .3s;
// Disabled input style
&:disabled, &[readonly="readonly"] {
color: $input-disabled-color;
border-bottom: 1px dotted $input-disabled-color;
}
// Disabled label style
&:disabled+label, &[readonly="readonly"]+label {
color: $input-disabled-color;
}
// Focused input style
&:focus:not([readonly]) {
border-bottom: 1px solid $input-focus-color;
box-shadow: 0 1px 0 0 $input-focus-color;
}
// Focused label style
&:focus:not([readonly])+label {
color: $input-focus-color;
}
// Valid Input Style
&.valid,
&:focus.valid {
border-bottom: 1px solid $input-success-color;
box-shadow: 0 1px 0 0 $input-success-color;
}
// Custom Success Message
&.valid + label:after,
&:focus.valid + label:after {
content: attr(data-success);
color: $input-success-color;
opacity: 1;
}
// Invalid Input Style
&.invalid,
&:focus.invalid {
border-bottom: 1px solid $input-error-color;
box-shadow: 0 1px 0 0 $input-error-color;
}
// Custom Error message
&.invalid + label:after,
&:focus.invalid + label:after {
content: attr(data-error);
color: $input-error-color;
opacity: 1;
}
// Form Message Shared Styles
& + label:after {
display: block;
content: "";
position: absolute;
top: 65px;
opacity: 0;
transition: .2s opacity ease-out, .2s color ease-out;
}
}
// Styling for input field wrapper
.input-field {
position: relative;
margin-top: 1rem;
label {
color: $input-border-color;
position: absolute;
top: 0.8rem;
left: $gutter-width / 2;
font-size: 1rem;
cursor: text;
|
c5169e0e
Renato De Donato
a new hope
|
134
|
@include transition(.2s ease-out);
|
74249687
Luigi Serra
Cross browser con...
|
135
136
137
|
}
label.active {
font-size: $label-font-size;
|
c5169e0e
Renato De Donato
a new hope
|
138
|
@include transform(translateY(-140%));
|
74249687
Luigi Serra
Cross browser con...
|
139
140
141
142
143
144
145
|
}
// Prefix Icons
.prefix {
position: absolute;
width: 3rem;
font-size: 2rem;
|
c5169e0e
Renato De Donato
a new hope
|
146
|
@include transition(color .2s);
|
74249687
Luigi Serra
Cross browser con...
|
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
|
&.active { color: $input-focus-color; }
}
.prefix ~ input,
.prefix ~ textarea {
margin-left: 3rem;
width: 92%;
width: calc(100% - 3rem);
}
.prefix ~ textarea { padding-top: .8rem; }
.prefix ~ label { margin-left: 3rem; }
@media #{$medium-and-down} {
.prefix ~ input {
width: 86%;
width: calc(100% - 3rem);
}
}
@media #{$small-and-down} {
.prefix ~ input {
width: 80%;
width: calc(100% - 3rem);
}
}
}
|
c5169e0e
Renato De Donato
a new hope
|
173
|
|
74249687
Luigi Serra
Cross browser con...
|
174
|
// Search Field
|
c5169e0e
Renato De Donato
a new hope
|
175
176
|
|
74249687
Luigi Serra
Cross browser con...
|
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
223
224
225
226
|
.input-field input[type=search] {
display: block;
line-height: inherit;
padding-left: 4rem;
width: calc(100% - 4rem);
&:focus {
background-color: $input-bg-color;
border: 0;
box-shadow: none;
color: #444;
& + label i,
& ~ .mdi-navigation-close,
& ~ .material-icons {
color: #444;
}
}
& + label {
left: 1rem;
}
& ~ .mdi-navigation-close,
& ~ .material-icons {
position: absolute;
top: 0;
right: 1rem;
color: transparent;
cursor: pointer;
font-size: 2rem;
transition: .3s color;
}
}
// Default textarea
textarea {
width: 100%;
height: 3rem;
background-color: transparent;
&.materialize-textarea {
overflow-y: hidden; /* prevents scroll bar flash */
padding: 1.6rem 0; /* prevents text jump on Enter keypress */
resize: none;
min-height: 3rem;
}
}
|
c5169e0e
Renato De Donato
a new hope
|
227
|
|
74249687
Luigi Serra
Cross browser con...
|
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
|
// For textarea autoresize
.hiddendiv {
display: none;
white-space: pre-wrap;
word-wrap: break-word;
overflow-wrap: break-word; /* future version of deprecated 'word-wrap' */
padding-top: 1.2rem; /* prevents text jump on Enter keypress */
}
/***************
Radio Buttons
***************/
/* Remove default Radio Buttons */
[type="radio"]:not(:checked),
[type="radio"]:checked {
position: absolute;
left: -9999px;
visibility: hidden;
}
[type="radio"]:not(:checked) + label,
[type="radio"]:checked + label {
position: relative;
padding-left: 35px;
cursor: pointer;
display: inline-block;
height: 25px;
line-height: 25px;
font-size: 1rem;
|
c5169e0e
Renato De Donato
a new hope
|
259
|
@include transition(.28s ease);
|
74249687
Luigi Serra
Cross browser con...
|
260
|
|
c5169e0e
Renato De Donato
a new hope
|
261
262
|
-webkit-user-select: none; /* webkit (safari, chrome) browsers */
-moz-user-select: none; /* mozilla browsers */
|
74249687
Luigi Serra
Cross browser con...
|
263
|
-khtml-user-select: none; /* webkit (konqueror) browsers */
|
c5169e0e
Renato De Donato
a new hope
|
264
|
-ms-user-select: none; /* IE10+ */
|
74249687
Luigi Serra
Cross browser con...
|
265
266
267
268
269
270
271
272
273
274
275
276
|
}
[type="radio"] + label:before,
[type="radio"] + label:after {
content: '';
position: absolute;
left: 0;
top: 0;
margin: 4px;
width: 16px;
height: 16px;
z-index: 0;
|
c5169e0e
Renato De Donato
a new hope
|
277
|
@include transition(.28s ease);
|
74249687
Luigi Serra
Cross browser con...
|
278
279
|
}
|
c5169e0e
Renato De Donato
a new hope
|
280
|
|
74249687
Luigi Serra
Cross browser con...
|
281
282
283
284
285
286
287
288
289
290
|
/* Unchecked styles */
[type="radio"]:not(:checked) + label:before {
border-radius: 50%;
border: 2px solid $radio-empty-color;
}
[type="radio"]:not(:checked) + label:after {
border-radius: 50%;
border: 2px solid $radio-empty-color;
z-index: -1;
|
c5169e0e
Renato De Donato
a new hope
|
291
|
@include transform(scale(0));
|
74249687
Luigi Serra
Cross browser con...
|
292
293
294
295
296
297
298
299
300
301
302
303
|
}
/* Checked styles */
[type="radio"]:checked + label:before {
border-radius: 50%;
border: 2px solid transparent;
}
[type="radio"]:checked + label:after {
border-radius: 50%;
border: 2px solid $radio-fill-color;
background-color: $radio-fill-color;
z-index: 0;
|
c5169e0e
Renato De Donato
a new hope
|
304
|
@include transform(scale(1.02));
|
74249687
Luigi Serra
Cross browser con...
|
305
306
307
308
309
310
311
312
313
314
315
316
|
}
/* Radio With gap */
[type="radio"].with-gap:checked + label:before {
border-radius: 50%;
border: 2px solid $radio-fill-color;
}
[type="radio"].with-gap:checked + label:after {
border-radius: 50%;
border: 2px solid $radio-fill-color;
background-color: $radio-fill-color;
z-index: 0;
|
c5169e0e
Renato De Donato
a new hope
|
317
|
@include transform(scale(.5));
|
74249687
Luigi Serra
Cross browser con...
|
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
|
}
/* Disabled Radio With gap */
[type="radio"].with-gap:disabled:checked + label:before {
border: 2px solid $input-disabled-color;
}
[type="radio"].with-gap:disabled:checked + label:after {
border: none;
background-color: $input-disabled-color;
}
/* Disabled style */
[type="radio"]:disabled:not(:checked) + label:before,
[type="radio"]:disabled:checked + label:before {
background-color: transparent;
border-color: $input-disabled-color;
}
[type="radio"]:disabled + label {
color: $input-disabled-color;
}
[type="radio"]:disabled:not(:checked) + label:before {
border-color: $input-disabled-color;
}
[type="radio"]:disabled:checked + label:after {
background-color: $input-disabled-color;
border-color: $input-disabled-solid-color;
}
|
c5169e0e
Renato De Donato
a new hope
|
346
|
|
74249687
Luigi Serra
Cross browser con...
|
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
|
/***************
Checkboxes
***************/
/* CUSTOM CSS CHECKBOXES */
form p {
margin-bottom: 10px;
text-align: left;
}
form p:last-child {
margin-bottom: 0;
}
/* Remove default checkbox */
[type="checkbox"]:not(:checked),
[type="checkbox"]:checked {
position: absolute;
left: -9999px;
visibility: hidden;
}
|
c5169e0e
Renato De Donato
a new hope
|
368
|
|
74249687
Luigi Serra
Cross browser con...
|
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
|
// Checkbox Styles
[type="checkbox"] {
// Text Label Style
+ label {
position: relative;
padding-left: 35px;
cursor: pointer;
display: inline-block;
height: 25px;
line-height: 25px;
font-size: 1rem;
-webkit-user-select: none; /* webkit (safari, chrome) browsers */
-moz-user-select: none; /* mozilla browsers */
-khtml-user-select: none; /* webkit (konqueror) browsers */
-ms-user-select: none; /* IE10+ */
}
/* checkbox aspect */
+ label:before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 18px;
height: 18px;
z-index: 0;
border: 2px solid $radio-empty-color;
border-radius: 1px;
margin-top: 2px;
|
c5169e0e
Renato De Donato
a new hope
|
400
|
@include transition(.2s);
|
74249687
Luigi Serra
Cross browser con...
|
401
402
403
404
405
406
|
}
&:not(:checked):disabled + label:before {
border: none;
background-color: $input-disabled-color;
}
|
c5169e0e
Renato De Donato
a new hope
|
407
|
|
74249687
Luigi Serra
Cross browser con...
|
408
409
410
411
412
413
414
415
416
417
418
|
}
[type="checkbox"]:checked {
+ label:before {
top: -4px;
left: -3px;
width: 12px; height: 22px;
border-top: 2px solid transparent;
border-left: 2px solid transparent;
border-right: 2px solid $radio-fill-color;
border-bottom: 2px solid $radio-fill-color;
|
c5169e0e
Renato De Donato
a new hope
|
419
420
421
|
@include transform(rotate(40deg));
-webkit-backface-visibility: hidden;
@include transform-origin(100% 100%);
|
74249687
Luigi Serra
Cross browser con...
|
422
423
424
425
426
427
|
}
&:disabled + label:before {
border-right: 2px solid $input-disabled-color;
border-bottom: 2px solid $input-disabled-color;
}
|
c5169e0e
Renato De Donato
a new hope
|
428
|
|
74249687
Luigi Serra
Cross browser con...
|
429
430
431
432
433
434
435
436
437
438
439
440
|
}
/* Indeterminate checkbox */
[type="checkbox"]:indeterminate {
+label:before {
left: -10px;
top: -11px;
width: 10px; height: 22px;
border-top: none;
border-left: none;
border-right: 2px solid $radio-fill-color;
border-bottom: none;
|
c5169e0e
Renato De Donato
a new hope
|
441
442
443
|
@include transform(rotate(90deg));
-webkit-backface-visibility: hidden;
@include transform-origin(100% 100%);
|
74249687
Luigi Serra
Cross browser con...
|
444
445
446
447
448
449
450
451
452
|
}
// Disabled indeterminate
&:disabled + label:before {
border-right: 2px solid $input-disabled-color;
background-color: transparent;
}
}
|
c5169e0e
Renato De Donato
a new hope
|
453
|
|
74249687
Luigi Serra
Cross browser con...
|
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
|
// Filled in Style
[type="checkbox"].filled-in {
// General
+ label:after {
border-radius: 2px;
}
+ label:before,
+ label:after {
content: '';
left: 0;
position: absolute;
/* .1s delay is for check animation */
transition: border .25s, background-color .25s, width .20s .1s, height .20s .1s, top .20s .1s, left .20s .1s;
z-index: 1;
}
|
74249687
Luigi Serra
Cross browser con...
|
469
470
471
472
473
474
475
476
477
478
479
480
481
|
// Unchecked style
&:not(:checked) + label:before {
width: 0;
height: 0;
border: 3px solid transparent;
left: 6px;
top: 10px;
-webkit-transform: rotateZ(37deg);
transform: rotateZ(37deg);
-webkit-transform-origin: 20% 40%;
transform-origin: 100% 100%;
}
|
74249687
Luigi Serra
Cross browser con...
|
482
483
484
485
486
487
488
489
|
&:not(:checked) + label:after {
height: 20px;
width: 20px;
background-color: transparent;
border: 2px solid $radio-empty-color;
top: 0px;
z-index: 0;
}
|
74249687
Luigi Serra
Cross browser con...
|
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
|
// Checked style
&:checked {
+ label:before {
top: 0;
left: 1px;
width: 8px;
height: 13px;
border-top: 2px solid transparent;
border-left: 2px solid transparent;
border-right: 2px solid $input-bg-color;
border-bottom: 2px solid $input-bg-color;
-webkit-transform: rotateZ(37deg);
transform: rotateZ(37deg);
-webkit-transform-origin: 100% 100%;
transform-origin: 100% 100%;
}
|
74249687
Luigi Serra
Cross browser con...
|
507
508
509
510
511
512
513
514
515
516
517
|
+ label:after {
top: 0px;
width: 20px;
height: 20px;
border: 2px solid $secondary-color;
background-color: $secondary-color;
z-index: 0;
}
}
// Disabled style
&:disabled:not(:checked) + label:before {
|
c5169e0e
Renato De Donato
a new hope
|
518
|
|
74249687
Luigi Serra
Cross browser con...
|
519
520
521
|
background-color: transparent;
border: 2px solid transparent;
}
|
74249687
Luigi Serra
Cross browser con...
|
522
523
524
525
|
&:disabled:not(:checked) + label:after {
border-color: transparent;
background-color: $input-disabled-solid-color;
}
|
74249687
Luigi Serra
Cross browser con...
|
526
527
|
&:disabled:checked + label:before {
background-color: transparent;
|
a1a3bc73
Luigi Serra
graphs updates
|
528
|
|
c5169e0e
Renato De Donato
a new hope
|
529
|
}
|
74249687
Luigi Serra
Cross browser con...
|
530
531
532
533
|
&:disabled:checked + label:after {
background-color: $input-disabled-solid-color;
border-color: $input-disabled-solid-color;
}
|
c5169e0e
Renato De Donato
a new hope
|
534
|
|
74249687
Luigi Serra
Cross browser con...
|
535
536
537
538
539
540
541
542
543
544
545
546
|
}
/***************
Switch
***************/
.switch,
.switch * {
-webkit-user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
-ms-user-select: none;
}
|
74249687
Luigi Serra
Cross browser con...
|
547
548
549
|
.switch label {
cursor: pointer;
}
|
74249687
Luigi Serra
Cross browser con...
|
550
551
552
553
554
|
.switch label input[type=checkbox]{
opacity: 0;
width: 0;
height: 0;
}
|
74249687
Luigi Serra
Cross browser con...
|
555
556
557
|
.switch label input[type=checkbox]:checked + .lever {
background-color: $switch-checked-lever-bg;
}
|
74249687
Luigi Serra
Cross browser con...
|
558
559
560
|
.switch label input[type=checkbox]:checked + .lever:after {
background-color: $switch-bg-color;
}
|
74249687
Luigi Serra
Cross browser con...
|
561
562
563
564
565
566
567
568
569
570
571
572
573
|
.switch label .lever {
content: "";
display: inline-block;
position: relative;
width: 40px;
height: 15px;
background-color: $switch-unchecked-lever-bg;
border-radius: 15px;
margin-right: 10px;
transition: background 0.3s ease;
vertical-align: middle;
margin: 0 16px;
}
|
74249687
Luigi Serra
Cross browser con...
|
574
575
576
577
578
579
580
581
582
583
584
585
586
|
.switch label .lever:after {
content: "";
position: absolute;
display: inline-block;
width: 21px;
height: 21px;
background-color: $switch-unchecked-bg;
border-radius: 21px;
box-shadow: 0 1px 3px 1px rgba(0,0,0,.4);
left: -5px;
top: -3px;
transition: left 0.3s ease, background .3s ease, box-shadow 0.1s ease;
}
|
74249687
Luigi Serra
Cross browser con...
|
587
588
589
590
|
// Switch active style
input[type=checkbox]:checked:not(:disabled) ~ .lever:active:after {
box-shadow: 0 1px 3px 1px rgba(0,0,0,.4), 0 0 0 15px transparentize($switch-bg-color, .9);
}
|
74249687
Luigi Serra
Cross browser con...
|
591
592
593
|
input[type=checkbox]:not(:disabled) ~ .lever:active:after {
box-shadow: 0 1px 3px 1px rgba(0,0,0,.4), 0 0 0 15px rgba(0, 0, 0, .08);
}
|
74249687
Luigi Serra
Cross browser con...
|
594
595
596
597
598
|
.switch label input[type=checkbox]:checked + .lever:after {
left: 24px;
}
// Disabled Styles
|
c5169e0e
Renato De Donato
a new hope
|
599
|
|
74249687
Luigi Serra
Cross browser con...
|
600
601
602
603
604
605
606
607
|
.switch input[type=checkbox][disabled] + .lever{
cursor: default;
}
.switch label input[type=checkbox][disabled] + .lever:after,
.switch label input[type=checkbox][disabled]:checked + .lever:after {
background-color: $input-disabled-solid-color;
}
|
c5169e0e
Renato De Donato
a new hope
|
608
609
610
|
|
74249687
Luigi Serra
Cross browser con...
|
611
612
613
|
/***************
Select Field
***************/
|
c5169e0e
Renato De Donato
a new hope
|
614
|
|
74249687
Luigi Serra
Cross browser con...
|
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
|
.select-label {
position: absolute;
}
.select-wrapper {
position: relative;
input.select-dropdown {
position: relative;
cursor: pointer;
// color: #444;
background-color: transparent;
border: none;
border-bottom: 1px solid $input-border-color;
outline: none;
height: 3rem;
line-height: 3rem;
width: 100%;
font-size: 1rem;
margin: 0 0 15px 0;
padding: 0;
display: block;
}
|
74249687
Luigi Serra
Cross browser con...
|
638
639
640
641
642
643
644
645
646
647
|
span.caret {
color: initial;
position: absolute;
right: 0;
top: 16px;
font-size: 10px;
&.disabled {
color: $input-disabled-color;
}
}
|
74249687
Luigi Serra
Cross browser con...
|
648
649
650
651
652
653
654
655
656
657
|
& + label {
position: absolute;
top: -14px;
font-size: $label-font-size;
}
}
select { display: none; }
select.browser-default { display: block; }
|
c5169e0e
Renato De Donato
a new hope
|
658
|
|
74249687
Luigi Serra
Cross browser con...
|
659
660
661
662
|
// Disabled styles
select:disabled {
color: rgba(0,0,0,.3);
}
|
74249687
Luigi Serra
Cross browser con...
|
663
664
665
666
667
668
669
670
|
.select-wrapper input.select-dropdown:disabled {
color: rgba(0,0,0,.3);
cursor: default;
-webkit-user-select: none; /* webkit (safari, chrome) browsers */
-moz-user-select: none; /* mozilla browsers */
-ms-user-select: none; /* IE10+ */
border-bottom: 1px solid rgba(0,0,0,.3);
}
|
74249687
Luigi Serra
Cross browser con...
|
671
672
673
|
.select-wrapper i {
color: rgba(0,0,0,.3);
}
|
c5169e0e
Renato De Donato
a new hope
|
674
|
.select-dropdown li.disabled {
|
74249687
Luigi Serra
Cross browser con...
|
675
676
677
678
|
color: rgba(0,0,0,.3);
background-color: transparent;
}
|
74249687
Luigi Serra
Cross browser con...
|
679
680
681
682
683
684
685
686
687
688
689
|
/*********************
File Input
**********************/
.file-field {
position: relative;
.file-path-wrapper {
overflow: hidden;
padding-left: 10px;
}
|
74249687
Luigi Serra
Cross browser con...
|
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
|
input.file-path { width: 100%; }
.btn {
float: left;
height: 3rem;
line-height: 3rem;
}
span {
cursor: pointer;
}
input[type=file] {
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
width: 100%;
margin: 0;
padding: 0;
font-size: 20px;
cursor: pointer;
opacity: 0;
filter: alpha(opacity=0);
}
}
|
c5169e0e
Renato De Donato
a new hope
|
718
719
|
|
74249687
Luigi Serra
Cross browser con...
|
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
|
/***************
Range
***************/
.range-field {
position: relative;
}
input[type=range], input[type=range] + .thumb {
@extend .no-select;
cursor: pointer;
}
input[type=range] {
position: relative;
background-color: transparent;
border: none;
outline: none;
width: 100%;
margin: 15px 0px;
padding: 0;
}
input[type=range] + .thumb {
position: absolute;
border: none;
height: 0;
width: 0;
border-radius: 50%;
background-color: $radio-fill-color;
top: 10px;
margin-left: -6px;
|
c5169e0e
Renato De Donato
a new hope
|
752
753
|
@include transform-origin(50% 50%);
@include transform(rotate(-45deg));
|
74249687
Luigi Serra
Cross browser con...
|
754
755
756
757
758
759
760
|
.value {
display: block;
width: 30px;
text-align: center;
color: $radio-fill-color;
font-size: 0;
|
c5169e0e
Renato De Donato
a new hope
|
761
|
@include transform(rotate(45deg));
|
74249687
Luigi Serra
Cross browser con...
|
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
|
}
&.active {
border-radius: 50% 50% 50% 0;
.value {
color: $input-bg-color;
margin-left: -1px;
margin-top: 8px;
font-size: 10px;
}
}
}
input[type=range]:focus {
outline: none;
}
|
c5169e0e
Renato De Donato
a new hope
|
781
782
|
|
74249687
Luigi Serra
Cross browser con...
|
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
|
// WebKit
input[type=range]{
-webkit-appearance: none;
}
input[type=range]::-webkit-slider-runnable-track {
height: 3px;
background: #c2c0c2;
border: none;
}
input[type=range]::-webkit-slider-thumb {
-webkit-appearance: none;
border: none;
height: 14px;
width: 14px;
border-radius: 50%;
background-color: $radio-fill-color;
transform-origin: 50% 50%;
margin: -5px 0 0 0;
|
c5169e0e
Renato De Donato
a new hope
|
803
|
@include transition(.3s);
|
74249687
Luigi Serra
Cross browser con...
|
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
|
}
input[type=range]:focus::-webkit-slider-runnable-track {
background: #ccc;
}
// FireFox
input[type=range]{
/* fix for FF unable to apply focus style bug */
border: 1px solid white;
/*required for proper track sizing in FF*/
}
input[type=range]::-moz-range-track {
height: 3px;
background: #ddd;
border: none;
}
input[type=range]::-moz-range-thumb {
border: none;
height: 14px;
width: 14px;
border-radius: 50%;
background: $radio-fill-color;
margin-top: -5px;
}
/*hide the outline behind the border*/
input[type=range]:-moz-focusring{
outline: 1px solid white;
outline-offset: -1px;
}
input[type=range]:focus::-moz-range-track {
background: #ccc;
}
// IE 10+
input[type=range]::-ms-track {
height: 3px;
/*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
background: transparent;
/*leave room for the larger thumb to overflow with a transparent border */
border-color: transparent;
border-width: 6px 0;
/*remove default tick marks*/
color: transparent;
}
|
74249687
Luigi Serra
Cross browser con...
|
857
858
859
|
input[type=range]::-ms-fill-lower {
background: #777;
}
|
74249687
Luigi Serra
Cross browser con...
|
860
861
862
|
input[type=range]::-ms-fill-upper {
background: #ddd;
}
|
74249687
Luigi Serra
Cross browser con...
|
863
864
865
866
867
868
869
|
input[type=range]::-ms-thumb {
border: none;
height: 14px;
width: 14px;
border-radius: 50%;
background: $radio-fill-color;
}
|
74249687
Luigi Serra
Cross browser con...
|
870
871
872
|
input[type=range]:focus::-ms-fill-lower {
background: #888;
}
|
74249687
Luigi Serra
Cross browser con...
|
873
874
875
876
877
878
879
|
input[type=range]:focus::-ms-fill-upper {
background: #ccc;
}
/***************************
Text Inputs + Textarea
****************************/
|
c5169e0e
Renato De Donato
a new hope
|
880
|
|
74249687
Luigi Serra
Cross browser con...
|
881
882
883
884
885
886
887
|
select {
background-color: rgba(255, 255, 255, 0.90);
width: 100%;
padding: 5px;
border: 1px solid #f2f2f2;
border-radius: 2px;
height: 3rem;
|
c5169e0e
Renato De Donato
a new hope
|
888
|
}
|