@materializecss/materialize 2.0.4 → 2.1.0
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.
- package/dist/css/materialize.css +644 -558
- package/dist/css/materialize.min.css +2 -2
- package/dist/js/materialize.js +18 -8
- package/dist/js/materialize.min.js +2 -2
- package/dist/js/materialize.min.js.map +1 -1
- package/dist/src/bounding.d.ts.map +1 -1
- package/dist/src/edges.d.ts.map +1 -1
- package/dist/src/modal.d.ts.map +1 -1
- package/dist/src/select.d.ts.map +1 -1
- package/dist/src/toasts.d.ts.map +1 -1
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/waves.d.ts.map +1 -1
- package/package.json +1 -1
- package/sass/components/_badges.scss +17 -12
- package/sass/components/_buttons.scss +137 -126
- package/sass/components/_cards.scss +12 -14
- package/sass/components/_carousel.scss +8 -6
- package/sass/components/_chips.scss +10 -11
- package/sass/components/_collapsible.scss +6 -8
- package/sass/components/_collection.scss +15 -15
- package/sass/components/_datepicker.scss +15 -15
- package/sass/components/_dropdown.scss +5 -17
- package/sass/components/_global.scss +65 -137
- package/sass/components/_grid.scss +12 -4
- package/sass/components/_materialbox.scss +1 -1
- package/sass/components/_modal.scss +14 -9
- package/sass/components/_navbar.scss +31 -25
- package/sass/components/_preloader.scss +5 -6
- package/sass/components/_sidenav.scss +42 -26
- package/sass/components/_slider.scss +5 -5
- package/sass/components/_table_of_contents.scss +7 -8
- package/sass/components/_tabs.scss +16 -17
- package/sass/components/_tapTarget.scss +3 -3
- package/sass/components/_timepicker.scss +12 -12
- package/sass/components/_toast.scss +17 -10
- package/sass/components/_tooltip.scss +13 -6
- package/sass/components/_variables.scss +13 -377
- package/sass/components/colors.module.scss +74 -180
- package/sass/components/forms/_checkboxes.scss +22 -22
- package/sass/components/forms/_file-input.scss +2 -5
- package/sass/components/forms/_forms.scss +5 -3
- package/sass/components/forms/_input-fields.scss +40 -41
- package/sass/components/forms/_radio-buttons.scss +11 -14
- package/sass/components/forms/_range.scss +16 -24
- package/sass/components/forms/_select.scss +34 -28
- package/sass/components/forms/_switches.scss +9 -12
- package/sass/components/theme.module.scss +140 -0
- package/sass/materialize.scss +6 -3
- package/sass/components/_theme_variables.scss +0 -78
- package/sass/components/theme.dark.module.scss +0 -32
- package/sass/components/theme.light.module.scss +0 -32
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
width: 18px;
|
|
34
34
|
height: 18px;
|
|
35
35
|
z-index: 0;
|
|
36
|
-
border: 2px solid
|
|
36
|
+
border: 2px solid var(--md-sys-color-on-surface-variant);
|
|
37
37
|
border-radius: 1px;
|
|
38
38
|
margin-top: 3px;
|
|
39
39
|
transition: .2s;
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
|
|
47
47
|
&:not(:checked):disabled + span:not(.lever):before {
|
|
48
48
|
border: none;
|
|
49
|
-
background-color:
|
|
49
|
+
background-color: var(--md-sys-color-on-surface);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
// Focused styles
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
transform: scale(1);
|
|
55
55
|
border: 0;
|
|
56
56
|
border-radius: 50%;
|
|
57
|
-
box-shadow: 0 0 0 10px
|
|
58
|
-
background-color:
|
|
57
|
+
box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.12);
|
|
58
|
+
background-color: rgba(0, 0, 0, 0.12);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
|
@@ -67,16 +67,16 @@
|
|
|
67
67
|
height: 22px;
|
|
68
68
|
border-top: 2px solid transparent;
|
|
69
69
|
border-left: 2px solid transparent;
|
|
70
|
-
border-right:
|
|
71
|
-
border-bottom:
|
|
70
|
+
border-right: 2px solid var(--md-sys-color-primary);
|
|
71
|
+
border-bottom: 2px solid var(--md-sys-color-primary);
|
|
72
72
|
transform: rotate(40deg);
|
|
73
73
|
backface-visibility: hidden;
|
|
74
74
|
transform-origin: 100% 100%;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
&:disabled + span:before {
|
|
78
|
-
border-right: 2px solid
|
|
79
|
-
border-bottom: 2px solid
|
|
78
|
+
border-right: 2px solid var(--md-sys-color-on-surface);
|
|
79
|
+
border-bottom: 2px solid var(--md-sys-color-on-surface);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
height: 22px;
|
|
90
90
|
border-top: none;
|
|
91
91
|
border-left: none;
|
|
92
|
-
border-right:
|
|
92
|
+
border-right: 2px solid var(--md-sys-color-primary);
|
|
93
93
|
border-bottom: none;
|
|
94
94
|
transform: rotate(90deg);
|
|
95
95
|
backface-visibility: hidden;
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
|
|
99
99
|
// Disabled indeterminate
|
|
100
100
|
&:disabled + span:not(.lever):before {
|
|
101
|
-
border-right: 2px solid
|
|
101
|
+
border-right: 2px solid var(--md-sys-color-on-surface);
|
|
102
102
|
background-color: transparent;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
height: 20px;
|
|
136
136
|
width: 20px;
|
|
137
137
|
background-color: transparent;
|
|
138
|
-
border: 2px solid
|
|
138
|
+
border: 2px solid var(--md-sys-color-on-surface-variant);
|
|
139
139
|
top: 0px;
|
|
140
140
|
z-index: 0;
|
|
141
141
|
}
|
|
@@ -149,8 +149,8 @@
|
|
|
149
149
|
height: 13px;
|
|
150
150
|
border-top: 2px solid transparent;
|
|
151
151
|
border-left: 2px solid transparent;
|
|
152
|
-
border-right: 2px solid
|
|
153
|
-
border-bottom: 2px solid
|
|
152
|
+
border-right: 2px solid var(--md-sys-color-on-primary);
|
|
153
|
+
border-bottom: 2px solid var(--md-sys-color-on-primary);
|
|
154
154
|
transform: rotateZ(37deg);
|
|
155
155
|
transform-origin: 100% 100%;
|
|
156
156
|
}
|
|
@@ -159,8 +159,8 @@
|
|
|
159
159
|
top: 0;
|
|
160
160
|
width: 20px;
|
|
161
161
|
height: 20px;
|
|
162
|
-
border: 2px solid
|
|
163
|
-
background-color:
|
|
162
|
+
border: 2px solid var(--md-sys-color-primary);
|
|
163
|
+
background-color: var(--md-sys-color-primary);
|
|
164
164
|
z-index: 0;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
@@ -168,14 +168,14 @@
|
|
|
168
168
|
// Focused styles
|
|
169
169
|
&.tabbed:focus + span:not(.lever):after {
|
|
170
170
|
border-radius: 2px;
|
|
171
|
-
border-color:
|
|
172
|
-
background-color:
|
|
171
|
+
border-color: var(--md-sys-color-on-surface-variant)r;
|
|
172
|
+
background-color: rgba(0, 0, 0, 0.12);
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
&.tabbed:checked:focus + span:not(.lever):after {
|
|
176
176
|
border-radius: 2px;
|
|
177
|
-
background-color:
|
|
178
|
-
border-color:
|
|
177
|
+
background-color: var(--md-sys-color-primary);
|
|
178
|
+
border-color: var(--md-sys-color-primary);
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
// Disabled style
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
|
|
187
187
|
&:disabled:not(:checked) + span:not(.lever):after {
|
|
188
188
|
border-color: transparent;
|
|
189
|
-
background-color:
|
|
189
|
+
background-color: var(--md-sys-color-on-surface);
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
&:disabled:checked + span:not(.lever):before {
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
&:disabled:checked + span:not(.lever):after {
|
|
197
|
-
background-color:
|
|
198
|
-
border-color:
|
|
197
|
+
background-color: var(--md-sys-color-on-surface);
|
|
198
|
+
border-color: var(--md-sys-color-on-surface);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/* File Input
|
|
2
|
-
========================================================================== */
|
|
3
|
-
|
|
4
1
|
.file-field {
|
|
5
2
|
//position: relative;
|
|
6
3
|
display: grid;
|
|
@@ -15,8 +12,8 @@
|
|
|
15
12
|
input.file-path { width: 100%; }
|
|
16
13
|
|
|
17
14
|
.btn {
|
|
18
|
-
height:
|
|
19
|
-
line-height:
|
|
15
|
+
height: 3rem;
|
|
16
|
+
line-height: 3rem;
|
|
20
17
|
}
|
|
21
18
|
|
|
22
19
|
span {
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
// Remove Focus Boxes
|
|
2
2
|
select:focus {
|
|
3
|
-
outline:
|
|
3
|
+
outline: 1px solid var(--md-ref-palette-primary80);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
/*
|
|
6
7
|
button:focus {
|
|
7
8
|
outline: none;
|
|
8
9
|
background-color: $button-background-focus;
|
|
9
10
|
}
|
|
11
|
+
*/
|
|
10
12
|
|
|
11
13
|
label {
|
|
12
|
-
font-size:
|
|
13
|
-
color:
|
|
14
|
+
font-size: .8rem;
|
|
15
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
@import 'input-fields';
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
/* Text Inputs + Textarea
|
|
2
|
-
========================================================================== */
|
|
3
|
-
|
|
4
1
|
/* Style Placeholders */
|
|
5
2
|
::placeholder {
|
|
6
|
-
color:
|
|
3
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
7
4
|
}
|
|
8
5
|
|
|
9
6
|
/* Text inputs */
|
|
@@ -22,20 +19,20 @@ input[type=number]:not(.browser-default),
|
|
|
22
19
|
input[type=search]:not(.browser-default),
|
|
23
20
|
textarea.materialize-textarea {
|
|
24
21
|
outline: none;
|
|
25
|
-
color:
|
|
22
|
+
color: var(--md-sys-color-on-background);
|
|
26
23
|
width: 100%;
|
|
27
|
-
font-size: $md_sys_typescale_body-large_size;
|
|
28
|
-
height: 56px; // 56dp
|
|
24
|
+
font-size: $md_sys_typescale_body-large_size; //16px; // => 16 dp
|
|
25
|
+
height: 56px; // 56dp
|
|
29
26
|
}
|
|
30
27
|
|
|
31
28
|
/* Validation Sass Placeholders */
|
|
32
29
|
%valid-input-style {
|
|
33
|
-
border-bottom: 1px solid $
|
|
34
|
-
box-shadow: 0 1px 0 0 $
|
|
30
|
+
border-bottom: 1px solid $success-color;
|
|
31
|
+
box-shadow: 0 1px 0 0 $success-color;
|
|
35
32
|
}
|
|
36
33
|
%invalid-input-style {
|
|
37
|
-
border-bottom:
|
|
38
|
-
box-shadow: 0 1px 0 0
|
|
34
|
+
border-bottom: 2px solid var(--md-sys-color-error);
|
|
35
|
+
box-shadow: 0 1px 0 0 var(--md-sys-color-error);
|
|
39
36
|
}
|
|
40
37
|
%hidden-text {
|
|
41
38
|
color: transparent;
|
|
@@ -45,15 +42,17 @@ textarea.materialize-textarea {
|
|
|
45
42
|
/*
|
|
46
43
|
%custom-success-message {
|
|
47
44
|
content: attr(data-success);
|
|
48
|
-
color: $
|
|
45
|
+
color: $success-color;
|
|
49
46
|
}
|
|
50
47
|
%custom-error-message {
|
|
51
48
|
content: attr(data-error);
|
|
52
|
-
color:
|
|
49
|
+
color: var(--md-sys-color-error);
|
|
53
50
|
}
|
|
54
51
|
*/
|
|
55
52
|
|
|
56
53
|
.input-field {
|
|
54
|
+
--input-color: var(--md-sys-color-primary);
|
|
55
|
+
|
|
57
56
|
position: relative;
|
|
58
57
|
clear: both;
|
|
59
58
|
|
|
@@ -65,28 +64,28 @@ textarea.materialize-textarea {
|
|
|
65
64
|
padding: 0 16px;
|
|
66
65
|
padding-top: 20px;
|
|
67
66
|
|
|
68
|
-
background-color:
|
|
67
|
+
background-color: var(--md-sys-color-surface);
|
|
69
68
|
|
|
70
69
|
border: none; // reset
|
|
71
70
|
border-radius: 4px; // md.sys.shape.corner.extra-small.top
|
|
72
|
-
border-bottom: 1px solid
|
|
71
|
+
border-bottom: 1px solid var(--md-sys-color-on-surface-variant);
|
|
73
72
|
border-bottom-left-radius: 0;
|
|
74
73
|
border-bottom-right-radius: 0;
|
|
75
74
|
|
|
76
75
|
&:focus:not([readonly]) {
|
|
77
|
-
border-bottom: 2px solid
|
|
76
|
+
border-bottom: 2px solid var(--input-color);
|
|
78
77
|
padding-top: 20px + 1px; // add border-width
|
|
79
78
|
}
|
|
80
79
|
|
|
81
80
|
&:disabled, &[readonly="readonly"] {
|
|
82
|
-
color:
|
|
83
|
-
border-color:
|
|
84
|
-
background-color:
|
|
81
|
+
color: rgba(var(--md_sys_color_on-surface), 0.38);
|
|
82
|
+
border-color: rgba(var(--md_sys_color_on-surface), 0.12);
|
|
83
|
+
background-color: rgba(var(--md_sys_color_on-surface), 0.04);
|
|
85
84
|
}
|
|
86
85
|
|
|
87
86
|
// Label
|
|
88
87
|
&:focus:not([readonly]) + label {
|
|
89
|
-
color:
|
|
88
|
+
color: var(--input-color);
|
|
90
89
|
}
|
|
91
90
|
&:focus:not([readonly]) + label,
|
|
92
91
|
&:not([placeholder=' ']) + label,
|
|
@@ -98,7 +97,7 @@ textarea.materialize-textarea {
|
|
|
98
97
|
}
|
|
99
98
|
|
|
100
99
|
&:disabled + label, &[readonly="readonly"] + label {
|
|
101
|
-
color:
|
|
100
|
+
color: rgba(var(--md_sys_color_on-surface), 0.38);
|
|
102
101
|
}
|
|
103
102
|
}
|
|
104
103
|
|
|
@@ -107,7 +106,7 @@ textarea.materialize-textarea {
|
|
|
107
106
|
}
|
|
108
107
|
|
|
109
108
|
& > label {
|
|
110
|
-
color:
|
|
109
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
111
110
|
user-select: none;
|
|
112
111
|
font-size: 16px;
|
|
113
112
|
position: absolute;
|
|
@@ -125,14 +124,14 @@ textarea.materialize-textarea {
|
|
|
125
124
|
// Sub-Infos
|
|
126
125
|
|
|
127
126
|
.supporting-text {
|
|
128
|
-
color:
|
|
127
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
129
128
|
font-size: 12px;
|
|
130
129
|
padding: 0 16px;
|
|
131
130
|
margin-top: 4px;
|
|
132
131
|
}
|
|
133
132
|
|
|
134
133
|
.character-counter {
|
|
135
|
-
color:
|
|
134
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
136
135
|
font-size: 12px;
|
|
137
136
|
float: right;
|
|
138
137
|
padding: 0 16px;
|
|
@@ -172,20 +171,20 @@ textarea.materialize-textarea {
|
|
|
172
171
|
input, textarea {
|
|
173
172
|
padding-top: 0;
|
|
174
173
|
|
|
175
|
-
background-color: var(--
|
|
174
|
+
background-color: var(--md-sys-color-background);
|
|
176
175
|
|
|
177
|
-
border: 1px solid
|
|
176
|
+
border: 1px solid var(--md-sys-color-on-surface-variant);
|
|
178
177
|
border-radius: 4px; // md.sys.shape.corner.extra-small
|
|
179
178
|
|
|
180
179
|
&:focus:not([readonly]) {
|
|
181
|
-
border: 2px solid
|
|
180
|
+
border: 2px solid var(--input-color);
|
|
182
181
|
padding-top: 0;
|
|
183
182
|
margin-left: -1px; // subtract border-width
|
|
184
183
|
|
|
185
184
|
}
|
|
186
185
|
// Label
|
|
187
186
|
&:focus:not([readonly]) + label {
|
|
188
|
-
color:
|
|
187
|
+
color: var(--input-color);
|
|
189
188
|
}
|
|
190
189
|
&:focus:not([readonly]) + label,
|
|
191
190
|
&:not([placeholder=' ']) + label,
|
|
@@ -194,12 +193,12 @@ textarea.materialize-textarea {
|
|
|
194
193
|
left: 16px;
|
|
195
194
|
margin-left: -4px;
|
|
196
195
|
padding: 0 4px;
|
|
197
|
-
background-color: var(--
|
|
196
|
+
background-color: var(--md-sys-color-background);
|
|
198
197
|
}
|
|
199
198
|
|
|
200
199
|
&:disabled, &[readonly="readonly"] {
|
|
201
|
-
color:
|
|
202
|
-
border-color:
|
|
200
|
+
color: rgba(var(--md_sys_color_on-surface), 0.38);
|
|
201
|
+
border-color: rgba(var(--md_sys_color_on-surface), 0.12);
|
|
203
202
|
}
|
|
204
203
|
|
|
205
204
|
}
|
|
@@ -208,22 +207,22 @@ textarea.materialize-textarea {
|
|
|
208
207
|
// Error
|
|
209
208
|
&.error {
|
|
210
209
|
input, textarea {
|
|
211
|
-
border-color: var(--
|
|
210
|
+
border-color: var(--md-sys-color-error);
|
|
212
211
|
}
|
|
213
212
|
input:focus:not([readonly]), textarea:focus:not([readonly]) {
|
|
214
|
-
border-color: var(--
|
|
213
|
+
border-color: var(--md-sys-color-error);
|
|
215
214
|
}
|
|
216
215
|
input:focus:not([readonly]) + label, textarea:focus:not([readonly]) + label {
|
|
217
|
-
color: var(--
|
|
216
|
+
color: var(--md-sys-color-error);
|
|
218
217
|
}
|
|
219
218
|
label {
|
|
220
|
-
color: var(--
|
|
219
|
+
color: var(--md-sys-color-error);
|
|
221
220
|
}
|
|
222
221
|
.supporting-text {
|
|
223
|
-
color: var(--
|
|
222
|
+
color: var(--md-sys-color-error);
|
|
224
223
|
}
|
|
225
224
|
.suffix {
|
|
226
|
-
color: var(--
|
|
225
|
+
color: var(--md-sys-color-error);
|
|
227
226
|
}
|
|
228
227
|
}
|
|
229
228
|
}
|
|
@@ -249,7 +248,7 @@ textarea.materialize-textarea {
|
|
|
249
248
|
.searchbar.has-sidebar {
|
|
250
249
|
margin-left: 0;
|
|
251
250
|
@media #{$large-and-up} {
|
|
252
|
-
margin-left:
|
|
251
|
+
margin-left: 300px;
|
|
253
252
|
}
|
|
254
253
|
}
|
|
255
254
|
|
|
@@ -280,7 +279,7 @@ textarea.materialize-textarea {
|
|
|
280
279
|
// Default textarea
|
|
281
280
|
textarea {
|
|
282
281
|
width: 100%;
|
|
283
|
-
height:
|
|
282
|
+
height: 3rem;
|
|
284
283
|
background-color: transparent;
|
|
285
284
|
|
|
286
285
|
&.materialize-textarea {
|
|
@@ -289,7 +288,7 @@ textarea {
|
|
|
289
288
|
line-height: normal;
|
|
290
289
|
overflow-y: hidden; /* prevents scroll bar flash */
|
|
291
290
|
resize: none;
|
|
292
|
-
min-height:
|
|
291
|
+
min-height: 3rem;
|
|
293
292
|
box-sizing: border-box;
|
|
294
293
|
}
|
|
295
294
|
}
|
|
@@ -311,7 +310,7 @@ textarea {
|
|
|
311
310
|
/* Autocomplete Items */
|
|
312
311
|
.autocomplete-content {
|
|
313
312
|
li {
|
|
314
|
-
.highlight { color:
|
|
313
|
+
.highlight { color: var(--md-sys-color-on-background); }
|
|
315
314
|
img {
|
|
316
315
|
height: $dropdown-item-height - 10;
|
|
317
316
|
width: $dropdown-item-height - 10;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/* Radio Buttons
|
|
2
|
-
========================================================================== */
|
|
3
|
-
|
|
4
1
|
// Remove default Radio Buttons
|
|
5
2
|
[type="radio"]:not(:checked),
|
|
6
3
|
[type="radio"]:checked {
|
|
@@ -47,7 +44,7 @@
|
|
|
47
44
|
|
|
48
45
|
[type="radio"]:not(:checked) + span:before,
|
|
49
46
|
[type="radio"]:not(:checked) + span:after {
|
|
50
|
-
border: 2px solid
|
|
47
|
+
border: 2px solid var(--md-sys-color-on-surface-variant);
|
|
51
48
|
}
|
|
52
49
|
|
|
53
50
|
[type="radio"]:not(:checked) + span:after {
|
|
@@ -62,12 +59,12 @@
|
|
|
62
59
|
[type="radio"]:checked + span:after,
|
|
63
60
|
[type="radio"].with-gap:checked + span:before,
|
|
64
61
|
[type="radio"].with-gap:checked + span:after {
|
|
65
|
-
border:
|
|
62
|
+
border: 2px solid var(--md-sys-color-primary);
|
|
66
63
|
}
|
|
67
64
|
|
|
68
65
|
[type="radio"]:checked + span:after,
|
|
69
66
|
[type="radio"].with-gap:checked + span:after {
|
|
70
|
-
background-color:
|
|
67
|
+
background-color: var(--md-sys-color-primary);
|
|
71
68
|
}
|
|
72
69
|
|
|
73
70
|
[type="radio"]:checked + span:after {
|
|
@@ -81,35 +78,35 @@
|
|
|
81
78
|
|
|
82
79
|
/* Focused styles */
|
|
83
80
|
[type="radio"].tabbed:focus + span:before {
|
|
84
|
-
box-shadow: 0 0 0 10px
|
|
81
|
+
box-shadow: 0 0 0 10px rgba(var(--md-sys-color-primary-numeric), 0.18);
|
|
85
82
|
}
|
|
86
83
|
|
|
87
84
|
/* Disabled Radio With gap */
|
|
88
85
|
[type="radio"].with-gap:disabled:checked + span:before {
|
|
89
|
-
border: 2px solid
|
|
86
|
+
border: 2px solid var(--md-sys-color-on-surface);
|
|
90
87
|
}
|
|
91
88
|
|
|
92
89
|
[type="radio"].with-gap:disabled:checked + span:after {
|
|
93
90
|
border: none;
|
|
94
|
-
background-color:
|
|
91
|
+
background-color: var(--md-sys-color-on-surface);
|
|
95
92
|
}
|
|
96
93
|
|
|
97
94
|
/* Disabled style */
|
|
98
95
|
[type="radio"]:disabled:not(:checked) + span:before,
|
|
99
96
|
[type="radio"]:disabled:checked + span:before {
|
|
100
97
|
background-color: transparent;
|
|
101
|
-
border-color:
|
|
98
|
+
border-color: var(--md-sys-color-on-surface);
|
|
102
99
|
}
|
|
103
100
|
|
|
104
101
|
[type="radio"]:disabled + span {
|
|
105
|
-
color:
|
|
102
|
+
color: var(--md-sys-color-on-surface);
|
|
106
103
|
}
|
|
107
104
|
|
|
108
105
|
[type="radio"]:disabled:not(:checked) + span:before {
|
|
109
|
-
border-color:
|
|
106
|
+
border-color: var(--md-sys-color-on-surface);
|
|
110
107
|
}
|
|
111
108
|
|
|
112
109
|
[type="radio"]:disabled:checked + span:after {
|
|
113
|
-
background-color:
|
|
114
|
-
border-color:
|
|
110
|
+
background-color: var(--md-sys-color-on-surface);
|
|
111
|
+
border-color: var(--md-sys-color-on-surface);
|
|
115
112
|
}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/* Range
|
|
2
|
-
========================================================================== */
|
|
3
|
-
|
|
4
1
|
.range-field {
|
|
5
2
|
position: relative;
|
|
6
3
|
}
|
|
@@ -33,7 +30,7 @@ input[type=range] + .thumb {
|
|
|
33
30
|
height: 0;
|
|
34
31
|
width: 0;
|
|
35
32
|
border-radius: 50%;
|
|
36
|
-
background-color:
|
|
33
|
+
background-color: var(--md-sys-color-primary);
|
|
37
34
|
margin-left: 7px;
|
|
38
35
|
|
|
39
36
|
transform-origin: 50% 50%;
|
|
@@ -43,7 +40,7 @@ input[type=range] + .thumb {
|
|
|
43
40
|
display: block;
|
|
44
41
|
width: 30px;
|
|
45
42
|
text-align: center;
|
|
46
|
-
color:
|
|
43
|
+
color: var(--md-sys-color-primary);
|
|
47
44
|
font-size: 0;
|
|
48
45
|
transform: rotate(45deg);
|
|
49
46
|
}
|
|
@@ -52,7 +49,7 @@ input[type=range] + .thumb {
|
|
|
52
49
|
border-radius: 50% 50% 50% 0;
|
|
53
50
|
|
|
54
51
|
.value {
|
|
55
|
-
color:
|
|
52
|
+
color: var(--md-sys-color-on-primary);
|
|
56
53
|
margin-left: -1px;
|
|
57
54
|
margin-top: 8px;
|
|
58
55
|
font-size: 10px;
|
|
@@ -62,17 +59,17 @@ input[type=range] + .thumb {
|
|
|
62
59
|
|
|
63
60
|
// Shared
|
|
64
61
|
@mixin range-track {
|
|
65
|
-
height:
|
|
62
|
+
height: 3px;
|
|
66
63
|
@extend .surface-variant;
|
|
67
64
|
border: none;
|
|
68
65
|
}
|
|
69
66
|
|
|
70
67
|
@mixin range-thumb {
|
|
71
68
|
border: none;
|
|
72
|
-
height:
|
|
73
|
-
width:
|
|
69
|
+
height: 14px;
|
|
70
|
+
width: 14px;
|
|
74
71
|
border-radius: 50%;
|
|
75
|
-
background:
|
|
72
|
+
background: var(--md-sys-color-primary);
|
|
76
73
|
transition: box-shadow .3s;
|
|
77
74
|
}
|
|
78
75
|
|
|
@@ -88,19 +85,18 @@ input[type=range]::-webkit-slider-runnable-track {
|
|
|
88
85
|
input[type=range]::-webkit-slider-thumb {
|
|
89
86
|
@include range-thumb;
|
|
90
87
|
-webkit-appearance: none;
|
|
91
|
-
background-color:
|
|
88
|
+
background-color: var(--md-sys-color-primary);
|
|
92
89
|
transform-origin: 50% 50%;
|
|
93
90
|
margin: -5px 0 0 0;
|
|
94
91
|
|
|
95
92
|
}
|
|
96
93
|
|
|
97
94
|
.keyboard-focused input[type=range]:focus:not(.active)::-webkit-slider-thumb {
|
|
98
|
-
box-shadow: 0 0 0 10px
|
|
95
|
+
box-shadow: 0 0 0 10px rgba(var(--md-sys-color-primary-numeric), 0.18);
|
|
99
96
|
}
|
|
100
97
|
|
|
101
98
|
// FireFox
|
|
102
99
|
input[type=range] {
|
|
103
|
-
|
|
104
100
|
/*required for proper track sizing in FF*/
|
|
105
101
|
}
|
|
106
102
|
|
|
@@ -124,38 +120,34 @@ input[type=range]:-moz-focusring {
|
|
|
124
120
|
}
|
|
125
121
|
|
|
126
122
|
.keyboard-focused input[type=range]:focus:not(.active)::-moz-range-thumb {
|
|
127
|
-
box-shadow: 0 0 0 10px
|
|
123
|
+
box-shadow: 0 0 0 10px rgba(var(--md-sys-color-primary-numeric), 0.18);
|
|
128
124
|
}
|
|
129
125
|
|
|
126
|
+
//------------------------------- Remove this?
|
|
130
127
|
// IE 10+
|
|
131
128
|
input[type=range]::-ms-track {
|
|
132
|
-
height:
|
|
133
|
-
|
|
129
|
+
height: 3px;
|
|
134
130
|
// remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead
|
|
135
131
|
background: transparent;
|
|
136
|
-
|
|
137
132
|
// leave room for the larger thumb to overflow with a transparent border */
|
|
138
133
|
border-color: transparent;
|
|
139
134
|
border-width: 6px 0;
|
|
140
|
-
|
|
141
135
|
/*remove default tick marks*/
|
|
142
136
|
color: transparent;
|
|
143
137
|
}
|
|
144
|
-
|
|
145
138
|
input[type=range]::-ms-fill-lower,
|
|
146
139
|
input[type=range]::-moz-range-progress {
|
|
147
|
-
background:
|
|
140
|
+
background: var(--md-sys-color-primary);
|
|
148
141
|
}
|
|
149
|
-
|
|
150
142
|
input[type=range]::-ms-fill-upper,
|
|
151
143
|
input[type=range]::-moz-range-track {
|
|
152
|
-
background:
|
|
144
|
+
background: var(--md-sys-color-shadow-light);
|
|
153
145
|
}
|
|
154
|
-
|
|
155
146
|
input[type=range]::-ms-thumb {
|
|
156
147
|
@include range-thumb;
|
|
157
148
|
}
|
|
149
|
+
//--------------------------------
|
|
158
150
|
|
|
159
151
|
.keyboard-focused input[type=range]:focus:not(.active)::-ms-thumb {
|
|
160
|
-
box-shadow: 0 0 0 10px
|
|
152
|
+
box-shadow: 0 0 0 10px rgba(var(--md-sys-color-primary-numeric), 0.18);
|
|
161
153
|
}
|