mithril-materialized 1.4.2 → 2.0.0-beta.10

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.
Files changed (103) hide show
  1. package/README.md +286 -306
  2. package/dist/advanced.css +1888 -0
  3. package/dist/autocomplete.d.ts +12 -4
  4. package/dist/breadcrumb.d.ts +53 -0
  5. package/dist/button.d.ts +10 -10
  6. package/dist/carousel.d.ts +26 -7
  7. package/dist/chip.d.ts +2 -2
  8. package/dist/code-block.d.ts +2 -3
  9. package/dist/collapsible.d.ts +12 -7
  10. package/dist/collection.d.ts +8 -8
  11. package/dist/components.css +2310 -0
  12. package/dist/core.css +3402 -0
  13. package/dist/datepicker.d.ts +66 -0
  14. package/dist/dropdown.d.ts +5 -5
  15. package/dist/file-upload.d.ts +34 -0
  16. package/dist/floating-action-button.d.ts +9 -5
  17. package/dist/forms.css +2284 -0
  18. package/dist/icon.d.ts +2 -2
  19. package/dist/index.css +9284 -2
  20. package/dist/index.d.ts +13 -3
  21. package/dist/index.esm.js +6188 -2
  22. package/dist/index.js +6263 -2
  23. package/dist/index.min.css +8 -0
  24. package/dist/index.umd.js +6267 -2
  25. package/dist/input-options.d.ts +3 -1
  26. package/dist/input.d.ts +17 -12
  27. package/dist/label.d.ts +6 -5
  28. package/dist/material-box.d.ts +22 -4
  29. package/dist/material-icon.d.ts +14 -0
  30. package/dist/modal.d.ts +23 -7
  31. package/dist/option.d.ts +12 -11
  32. package/dist/pagination.d.ts +5 -9
  33. package/dist/parallax.d.ts +8 -6
  34. package/dist/pickers.css +487 -0
  35. package/dist/pushpin.d.ts +32 -0
  36. package/dist/radio.d.ts +10 -6
  37. package/dist/select.d.ts +5 -5
  38. package/dist/sidenav.d.ts +76 -0
  39. package/dist/switch.d.ts +4 -5
  40. package/dist/tabs.d.ts +18 -7
  41. package/dist/theme-switcher.d.ts +49 -0
  42. package/dist/timepicker.d.ts +42 -0
  43. package/dist/toast.d.ts +45 -0
  44. package/dist/tooltip.d.ts +59 -0
  45. package/dist/utilities.css +3197 -0
  46. package/dist/utils.d.ts +17 -0
  47. package/dist/wizard.d.ts +58 -0
  48. package/package.json +47 -14
  49. package/sass/components/_badges.scss +59 -0
  50. package/sass/components/_breadcrumb.scss +248 -0
  51. package/sass/components/_buttons.scss +327 -0
  52. package/sass/components/_cards.scss +197 -0
  53. package/sass/components/_carousel.scss +92 -0
  54. package/sass/components/_chips.scss +92 -0
  55. package/sass/components/_collapsible.scss +94 -0
  56. package/sass/components/_color-classes.scss +34 -0
  57. package/sass/components/_color-variables.scss +371 -0
  58. package/sass/components/_datepicker.scss +282 -0
  59. package/sass/components/_dropdown.scss +90 -0
  60. package/sass/components/_file-upload.scss +228 -0
  61. package/sass/components/_global.scss +777 -0
  62. package/sass/components/_grid.scss +160 -0
  63. package/sass/components/_icons-material-design.scss +5 -0
  64. package/sass/components/_materialbox.scss +43 -0
  65. package/sass/components/_modal.scss +100 -0
  66. package/sass/components/_navbar.scss +219 -0
  67. package/sass/components/_normalize.scss +447 -0
  68. package/sass/components/_preloader.scss +336 -0
  69. package/sass/components/_pulse.scss +34 -0
  70. package/sass/components/_sidenav.scss +370 -0
  71. package/sass/components/_slider.scss +94 -0
  72. package/sass/components/_table_of_contents.scss +36 -0
  73. package/sass/components/_tabs.scss +103 -0
  74. package/sass/components/_tapTarget.scss +105 -0
  75. package/sass/components/_theme-switcher.scss +120 -0
  76. package/sass/components/_theme-variables.scss +205 -0
  77. package/sass/components/_timepicker.scss +262 -0
  78. package/sass/components/_toast.scss +61 -0
  79. package/sass/components/_tooltip.scss +32 -0
  80. package/sass/components/_transitions.scss +13 -0
  81. package/sass/components/_typography.scss +61 -0
  82. package/sass/components/_variables.scss +352 -0
  83. package/sass/components/_waves.scss +114 -0
  84. package/sass/components/_wizard.scss +416 -0
  85. package/sass/components/forms/_checkboxes.scss +203 -0
  86. package/sass/components/forms/_file-input.scss +50 -0
  87. package/sass/components/forms/_form-groups.scss +28 -0
  88. package/sass/components/forms/_forms.scss +24 -0
  89. package/sass/components/forms/_input-fields.scss +383 -0
  90. package/sass/components/forms/_radio-buttons.scss +118 -0
  91. package/sass/components/forms/_range.scss +164 -0
  92. package/sass/components/forms/_select.scss +193 -0
  93. package/sass/components/forms/_switches.scss +92 -0
  94. package/sass/materialize.scss +48 -0
  95. package/dist/index.css.map +0 -1
  96. package/dist/index.esm.js.map +0 -1
  97. package/dist/index.js.map +0 -1
  98. package/dist/index.modern.js +0 -2
  99. package/dist/index.modern.js.map +0 -1
  100. package/dist/index.umd.js.map +0 -1
  101. package/dist/map-editor.d.ts +0 -63
  102. package/dist/pickers.d.ts +0 -6
  103. package/dist/timeline.d.ts +0 -24
@@ -0,0 +1,383 @@
1
+ @use 'sass:math';
2
+ @use "../variables";
3
+ @use "../global";
4
+
5
+ /* Text Inputs + Textarea
6
+ ========================================================================== */
7
+
8
+ /* Style Placeholders */
9
+
10
+ ::placeholder {
11
+ color: var(--mm-text-hint, variables.$placeholder-text-color);
12
+ }
13
+
14
+ /* Text inputs */
15
+
16
+ input:not([type]):not(.browser-default),
17
+ input[type=text]:not(.browser-default),
18
+ input[type=password]:not(.browser-default),
19
+ input[type=email]:not(.browser-default),
20
+ input[type=url]:not(.browser-default),
21
+ input[type=time]:not(.browser-default),
22
+ input[type=date]:not(.browser-default),
23
+ input[type=datetime]:not(.browser-default),
24
+ input[type=datetime-local]:not(.browser-default),
25
+ input[type=tel]:not(.browser-default),
26
+ input[type=number]:not(.browser-default),
27
+ input[type=search]:not(.browser-default),
28
+ textarea.materialize-textarea {
29
+
30
+ // General Styles
31
+ background-color: transparent;
32
+ border: none;
33
+ border-bottom: 1px solid var(--mm-input-border, variables.$input-border);
34
+ border-radius: 0;
35
+ outline: none;
36
+ height: variables.$input-height;
37
+ width: 100%;
38
+ font-size: variables.$input-font-size;
39
+ margin: variables.$input-margin;
40
+ padding: variables.$input-padding;
41
+ box-shadow: none;
42
+ box-sizing: content-box;
43
+ transition: box-shadow .3s, border .3s;
44
+ color: var(--mm-input-text, inherit);
45
+
46
+ // Disabled input style
47
+ &:disabled,
48
+ &[readonly="readonly"] {
49
+ color: var(--mm-text-disabled, variables.$input-disabled-color);
50
+ border-bottom: 1px dotted var(--mm-input-border, variables.$input-disabled-border);
51
+ }
52
+
53
+ // Disabled label style
54
+ &:disabled+label,
55
+ &[readonly="readonly"]+label {
56
+ color: var(--mm-text-disabled, variables.$input-disabled-color);
57
+ }
58
+
59
+ // Focused input style
60
+ &:focus:not([readonly]) {
61
+ border-bottom: 1px solid var(--mm-input-border-focus, variables.$input-focus-color);
62
+ box-shadow: 0 1px 0 0 var(--mm-input-border-focus, variables.$input-focus-color);
63
+ }
64
+
65
+ // Focused label style
66
+ &:focus:not([readonly])+label {
67
+ color: var(--mm-input-border-focus, variables.$input-focus-color);
68
+ }
69
+
70
+ // Hide helper text on data message
71
+ &.valid ~ .helper-text[data-success],
72
+ &:focus.valid ~ .helper-text[data-success],
73
+ &.invalid ~ .helper-text[data-error],
74
+ &:focus.invalid ~ .helper-text[data-error] {
75
+ @extend %hidden-text !optional;
76
+ }
77
+
78
+ // Valid Input Style
79
+ &.valid,
80
+ &:focus.valid {
81
+ @extend %valid-input-style !optional;
82
+ }
83
+
84
+ // Custom Success Message
85
+ &.valid ~ .helper-text:after,
86
+ &:focus.valid ~ .helper-text:after {
87
+ @extend %custom-success-message !optional;
88
+ }
89
+ &:focus.valid ~ label {
90
+ color: variables.$input-success-color;
91
+ }
92
+
93
+ // Invalid Input Style
94
+ &.invalid,
95
+ &:focus.invalid {
96
+ @extend %invalid-input-style !optional;
97
+ }
98
+
99
+ // Custom Error message
100
+ &.invalid ~ .helper-text:after,
101
+ &:focus.invalid ~ .helper-text:after {
102
+ @extend %custom-error-message !optional;
103
+ }
104
+ &:focus.invalid ~ label {
105
+ color: variables.$input-error-color;
106
+ }
107
+
108
+ // Full width label when using validate for error messages
109
+ &.validate + label {
110
+ width: 100%;
111
+ }
112
+
113
+ // Form Message Shared Styles
114
+ & + label:after {
115
+ @extend %input-after-style !optional;
116
+ }
117
+
118
+ // Enhanced autofill prevention for all browsers including Edge
119
+ &:-webkit-autofill,
120
+ &:-webkit-autofill:hover,
121
+ &:-webkit-autofill:focus,
122
+ &:-webkit-autofill:active {
123
+ -webkit-box-shadow: 0 0 0 30px var(--mm-input-background, transparent) inset !important;
124
+ -webkit-text-fill-color: var(--mm-input-text, inherit) !important;
125
+ background-color: transparent !important;
126
+ color: var(--mm-input-text, inherit) !important;
127
+ transition: background-color 5000s ease-in-out 0s;
128
+ }
129
+
130
+ // Edge specific autofill styles
131
+ &:-ms-input-placeholder {
132
+ color: var(--mm-text-hint, variables.$placeholder-text-color) !important;
133
+ }
134
+
135
+ &::-ms-input-placeholder {
136
+ color: var(--mm-text-hint, variables.$placeholder-text-color) !important;
137
+ }
138
+ }
139
+
140
+
141
+ /* Validation Sass Placeholders */
142
+ %valid-input-style {
143
+ border-bottom: 1px solid variables.$input-success-color;
144
+ box-shadow: 0 1px 0 0 variables.$input-success-color;
145
+ }
146
+ %invalid-input-style {
147
+ border-bottom: variables.$input-invalid-border;
148
+ box-shadow: 0 1px 0 0 variables.$input-error-color;
149
+ }
150
+ %hidden-text {
151
+ color: transparent;
152
+ user-select: none;
153
+ pointer-events: none;
154
+ }
155
+ %custom-success-message {
156
+ content: attr(data-success);
157
+ color: variables.$input-success-color;
158
+ }
159
+ %custom-error-message {
160
+ content: attr(data-error);
161
+ color: variables.$input-error-color;
162
+ }
163
+ %input-after-style {
164
+ display: block;
165
+ content: "";
166
+ position: absolute;
167
+ top: 100%;
168
+ left: 0;
169
+ opacity: 0;
170
+ transition: .2s opacity ease-out, .2s color ease-out;
171
+ }
172
+
173
+
174
+ // Styling for input field wrapper
175
+ .input-field {
176
+ // Inline styles
177
+ &.inline {
178
+ display: inline-block;
179
+ vertical-align: middle;
180
+ margin-left: 5px;
181
+
182
+ input,
183
+ .select-dropdown {
184
+ margin-bottom: 1rem;
185
+ }
186
+ }
187
+
188
+ // Gutter spacing
189
+ &.col {
190
+ label {
191
+ left: math.div(variables.$gutter-width, 2);
192
+ }
193
+
194
+ .prefix ~ label,
195
+ .prefix ~ .validate ~ label {
196
+ width: calc(100% - 3rem - #{variables.$gutter-width});
197
+ }
198
+ }
199
+
200
+ position: relative;
201
+ margin-top: 1rem;
202
+ margin-bottom: 1rem;
203
+
204
+ & > label {
205
+ color: variables.$input-border-color;
206
+ position: absolute;
207
+ top: 0;
208
+ left: 0;
209
+ font-size: 1rem;
210
+ cursor: text;
211
+ transition: transform .2s ease-out, color .2s ease-out;
212
+ transform-origin: 0% 100%;
213
+ text-align: initial;
214
+ transform: translateY(12px);
215
+
216
+ &:not(.label-icon).active {
217
+ transform: translateY(-14px) scale(.8);
218
+ transform-origin: 0 0;
219
+ }
220
+ }
221
+
222
+ // Autofill + date + time inputs
223
+ & > input[type]:-webkit-autofill:not(.browser-default):not([type="search"]) + label,
224
+ & > input[type=date]:not(.browser-default) + label,
225
+ & > input[type=time]:not(.browser-default) + label {
226
+ transform: translateY(-14px) scale(.8);
227
+ transform-origin: 0 0;
228
+ }
229
+
230
+ .helper-text {
231
+ &::after {
232
+ opacity: 1;
233
+ position: absolute;
234
+ top: 0;
235
+ left: 0;
236
+ }
237
+
238
+ position: relative;
239
+ min-height: 18px;
240
+ display: block;
241
+ font-size: 12px;
242
+ color: var(--mm-text-secondary, rgba(0,0,0,.54));
243
+ }
244
+
245
+ // Prefix Icons
246
+ .prefix {
247
+ position: absolute;
248
+ width: variables.$input-height;
249
+ font-size: variables.$input-icon-size;
250
+ transition: color .2s;
251
+ top: math.div((variables.$input-height - variables.$input-icon-size), 2);
252
+
253
+ &.active { color: variables.$input-focus-color; }
254
+ }
255
+
256
+ .prefix ~ input,
257
+ .prefix ~ textarea,
258
+ .prefix ~ label,
259
+ .prefix ~ .validate ~ label,
260
+ .prefix ~ .helper-text,
261
+ .prefix ~ .autocomplete-content {
262
+ margin-left: 3rem;
263
+ width: 92%;
264
+ width: calc(100% - 3rem);
265
+ }
266
+
267
+ .prefix ~ label { margin-left: 3rem; }
268
+
269
+ @media #{variables.$medium-and-down} {
270
+ .prefix ~ input {
271
+ width: 86%;
272
+ width: calc(100% - 3rem);
273
+ }
274
+ }
275
+
276
+ @media #{variables.$small-and-down} {
277
+ .prefix ~ input {
278
+ width: 80%;
279
+ width: calc(100% - 3rem);
280
+ }
281
+ }
282
+ }
283
+
284
+ .input-field input[type=color]:not(.browser-default) {
285
+ margin-top: 8px;
286
+ }
287
+
288
+ /* Search Field */
289
+
290
+ .input-field input[type=search] {
291
+ display: block;
292
+ line-height: inherit;
293
+ transition: .3s background-color;
294
+
295
+ .nav-wrapper & {
296
+ height: inherit;
297
+ padding-left: 4rem;
298
+ width: calc(100% - 4rem);
299
+ border: 0;
300
+ box-shadow: none;
301
+ }
302
+
303
+ &:focus:not(.browser-default) {
304
+ background-color: var(--mm-input-background, variables.$input-background);
305
+ border: 0;
306
+ box-shadow: none;
307
+ color: var(--mm-input-text, #444);
308
+
309
+ & + label i,
310
+ & ~ .mdi-navigation-close,
311
+ & ~ .material-icons {
312
+ color: var(--mm-input-text, #444);
313
+ }
314
+ }
315
+
316
+ & + .label-icon {
317
+ transform: none;
318
+ left: 1rem;
319
+ }
320
+
321
+ & ~ .mdi-navigation-close,
322
+ & ~ .material-icons {
323
+ position: absolute;
324
+ top: 0;
325
+ right: 1rem;
326
+ color: transparent;
327
+ cursor: pointer;
328
+ font-size: variables.$input-icon-size;
329
+ transition: .3s color;
330
+ }
331
+ }
332
+
333
+
334
+ /* Textarea */
335
+
336
+ // Default textarea
337
+ textarea {
338
+ width: 100%;
339
+ height: variables.$input-height;
340
+ background-color: transparent;
341
+
342
+ &.materialize-textarea {
343
+ line-height: normal;
344
+ overflow-y: hidden; /* prevents scroll bar flash */
345
+ padding: .8rem 0 .8rem 0; /* prevents text jump on Enter keypress */
346
+ resize: none;
347
+ min-height: variables.$input-height;
348
+ box-sizing: border-box;
349
+ }
350
+ }
351
+
352
+ // For textarea autoresize
353
+ .hiddendiv {
354
+ visibility: hidden;
355
+ white-space: pre-wrap;
356
+ word-wrap: break-word;
357
+ overflow-wrap: break-word; /* future version of deprecated 'word-wrap' */
358
+ padding-top: 1.2rem; /* prevents text jump on Enter keypress */
359
+
360
+ // Reduces repaints
361
+ position: absolute;
362
+ top: 0;
363
+ z-index: -1;
364
+ }
365
+
366
+
367
+ /* Autocomplete */
368
+ .autocomplete-content {
369
+ li {
370
+ .highlight { color: #444; }
371
+
372
+ img {
373
+ height: variables.$dropdown-item-height - 10;
374
+ width: variables.$dropdown-item-height - 10;
375
+ margin: 5px 15px;
376
+ }
377
+ }
378
+ }
379
+
380
+ /* Character Counter */
381
+ .character-counter {
382
+ min-height: 18px;
383
+ }
@@ -0,0 +1,118 @@
1
+ @use "../variables";
2
+
3
+ /* Radio Buttons
4
+ ========================================================================== */
5
+
6
+ // Remove default Radio Buttons
7
+ [type="radio"]:not(:checked),
8
+ [type="radio"]:checked {
9
+ position: absolute;
10
+ opacity: 0;
11
+ pointer-events: none;
12
+ }
13
+
14
+ [type="radio"]:not(:checked) + span,
15
+ [type="radio"]:checked + span {
16
+ position: relative;
17
+ padding-left: 35px;
18
+ cursor: pointer;
19
+ display: inline-block;
20
+ height: 25px;
21
+ line-height: 25px;
22
+ font-size: 1rem;
23
+ transition: .28s ease;
24
+ user-select: none;
25
+ }
26
+
27
+ [type="radio"] + span:before,
28
+ [type="radio"] + span:after {
29
+ content: '';
30
+ position: absolute;
31
+ left: 0;
32
+ top: 0;
33
+ margin: 4px;
34
+ width: 16px;
35
+ height: 16px;
36
+ z-index: 0;
37
+ transition: .28s ease;
38
+ }
39
+
40
+ /* Unchecked styles */
41
+ [type="radio"]:not(:checked) + span:before,
42
+ [type="radio"]:not(:checked) + span:after,
43
+ [type="radio"]:checked + span:before,
44
+ [type="radio"]:checked + span:after,
45
+ [type="radio"].with-gap:checked + span:before,
46
+ [type="radio"].with-gap:checked + span:after {
47
+ border-radius: 50%;
48
+ }
49
+
50
+ [type="radio"]:not(:checked) + span:before,
51
+ [type="radio"]:not(:checked) + span:after {
52
+ border: 2px solid var(--mm-text-secondary, variables.$radio-empty-color);
53
+ }
54
+
55
+ [type="radio"]:not(:checked) + span:after {
56
+ transform: scale(0);
57
+ }
58
+
59
+ /* Checked styles */
60
+ [type="radio"]:checked + span:before {
61
+ border: 2px solid transparent;
62
+ }
63
+
64
+ [type="radio"]:checked + span:after,
65
+ [type="radio"].with-gap:checked + span:before,
66
+ [type="radio"].with-gap:checked + span:after {
67
+ border: 2px solid var(--mm-primary-color, variables.$radio-fill-color);
68
+ }
69
+
70
+ [type="radio"]:checked + span:after,
71
+ [type="radio"].with-gap:checked + span:after {
72
+ background-color: var(--mm-primary-color, variables.$radio-fill-color);
73
+ }
74
+
75
+ [type="radio"]:checked + span:after {
76
+ transform: scale(1.02);
77
+ }
78
+
79
+ /* Radio With gap */
80
+ [type="radio"].with-gap:checked + span:after {
81
+ transform: scale(.5);
82
+ }
83
+
84
+ /* Focused styles */
85
+ [type="radio"].tabbed:focus + span:before {
86
+ box-shadow: 0 0 0 10px rgba(0,0,0,.1);
87
+ }
88
+
89
+ /* Disabled Radio With gap */
90
+ [type="radio"].with-gap:disabled:checked + span:before {
91
+ border: 2px solid var(--mm-text-disabled, variables.$input-disabled-color);
92
+ }
93
+
94
+ [type="radio"].with-gap:disabled:checked + span:after {
95
+ border: none;
96
+ background-color: var(--mm-text-disabled, variables.$input-disabled-color);
97
+ }
98
+
99
+ /* Disabled style */
100
+ [type="radio"]:disabled:not(:checked) + span:before,
101
+ [type="radio"]:disabled:checked + span:before {
102
+ background-color: transparent;
103
+ border-color: var(--mm-text-disabled, variables.$input-disabled-color);
104
+ }
105
+
106
+ [type="radio"]:disabled + span {
107
+ color: var(--mm-text-disabled, variables.$input-disabled-color);
108
+ }
109
+
110
+ [type="radio"]:disabled:not(:checked) + span:before {
111
+ border-color: var(--mm-text-disabled, variables.$input-disabled-color);
112
+ }
113
+
114
+ [type="radio"]:disabled:checked + span:after {
115
+ background-color: var(--mm-text-disabled, variables.$input-disabled-color);
116
+ border-color: var(--mm-text-disabled, variables.$input-disabled-solid-color);
117
+ }
118
+
@@ -0,0 +1,164 @@
1
+ @use "../variables";
2
+ @use "../global";
3
+
4
+ /* Range
5
+ ========================================================================== */
6
+
7
+ .range-field {
8
+ position: relative;
9
+ }
10
+
11
+ input[type=range],
12
+ input[type=range] + .thumb {
13
+ @extend .no-select !optional;
14
+ cursor: pointer;
15
+ }
16
+
17
+ input[type=range] {
18
+ position: relative;
19
+ background-color: transparent;
20
+ border: none;
21
+ outline: none;
22
+ width: 100%;
23
+ margin: 15px 0;
24
+ padding: 0;
25
+
26
+ &:focus {
27
+ outline: none;
28
+ }
29
+ }
30
+
31
+ input[type=range] + .thumb {
32
+ position: absolute;
33
+ top: 10px;
34
+ left: 0;
35
+ border: none;
36
+ height: 0;
37
+ width: 0;
38
+ border-radius: 50%;
39
+ background-color: variables.$radio-fill-color;
40
+ margin-left: 7px;
41
+
42
+ transform-origin: 50% 50%;
43
+ transform: rotate(-45deg);
44
+
45
+ .value {
46
+ display: block;
47
+ width: 30px;
48
+ text-align: center;
49
+ color: variables.$radio-fill-color;
50
+ font-size: 0;
51
+ transform: rotate(45deg);
52
+ }
53
+
54
+ &.active {
55
+ border-radius: 50% 50% 50% 0;
56
+
57
+ .value {
58
+ color: variables.$input-background;
59
+ margin-left: -1px;
60
+ margin-top: 8px;
61
+ font-size: 10px;
62
+ }
63
+ }
64
+ }
65
+
66
+ // Shared
67
+ @mixin range-track {
68
+ height: variables.$track-height;
69
+ background: #c2c0c2;
70
+ border: none;
71
+ }
72
+
73
+ @mixin range-thumb {
74
+ border: none;
75
+ height: variables.$range-height;
76
+ width: variables.$range-width;
77
+ border-radius: 50%;
78
+ background: variables.$radio-fill-color;
79
+ transition: box-shadow .3s;
80
+ }
81
+
82
+ // WebKit
83
+ input[type=range] {
84
+ -webkit-appearance: none;
85
+ }
86
+
87
+ input[type=range]::-webkit-slider-runnable-track {
88
+ @include range-track;
89
+ }
90
+
91
+ input[type=range]::-webkit-slider-thumb {
92
+ @include range-thumb;
93
+ -webkit-appearance: none;
94
+ background-color: variables.$radio-fill-color;
95
+ transform-origin: 50% 50%;
96
+ margin: -5px 0 0 0;
97
+
98
+ }
99
+
100
+ .keyboard-focused input[type=range]:focus:not(.active)::-webkit-slider-thumb {
101
+ box-shadow: 0 0 0 10px rgba(variables.$radio-fill-color, .26);
102
+ }
103
+
104
+ // FireFox
105
+ input[type=range] {
106
+ /* fix for FF unable to apply focus style bug */
107
+ border: 1px solid white;
108
+
109
+ /*required for proper track sizing in FF*/
110
+ }
111
+
112
+ input[type=range]::-moz-range-track {
113
+ @include range-track;
114
+ }
115
+
116
+ input[type=range]::-moz-focus-inner {
117
+ border: 0;
118
+ }
119
+
120
+ input[type=range]::-moz-range-thumb {
121
+ @include range-thumb;
122
+ margin-top: -5px;
123
+ }
124
+
125
+ // hide the outline behind the border
126
+ input[type=range]:-moz-focusring {
127
+ outline: 1px solid #fff;
128
+ outline-offset: -1px;
129
+ }
130
+
131
+ .keyboard-focused input[type=range]:focus:not(.active)::-moz-range-thumb {
132
+ box-shadow: 0 0 0 10px rgba(variables.$radio-fill-color, .26);
133
+ }
134
+
135
+ // IE 10+
136
+ input[type=range]::-ms-track {
137
+ height: variables.$track-height;
138
+
139
+ // remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead
140
+ background: transparent;
141
+
142
+ // leave room for the larger thumb to overflow with a transparent border */
143
+ border-color: transparent;
144
+ border-width: 6px 0;
145
+
146
+ /*remove default tick marks*/
147
+ color: transparent;
148
+ }
149
+
150
+ input[type=range]::-ms-fill-lower {
151
+ background: #777;
152
+ }
153
+
154
+ input[type=range]::-ms-fill-upper {
155
+ background: #ddd;
156
+ }
157
+
158
+ input[type=range]::-ms-thumb {
159
+ @include range-thumb;
160
+ }
161
+
162
+ .keyboard-focused input[type=range]:focus:not(.active)::-ms-thumb {
163
+ box-shadow: 0 0 0 10px rgba(variables.$radio-fill-color, .26);
164
+ }