material-sass 4.0.0.alpha6 → 4.0.0.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +36 -8
- data/Rakefile +16 -3
- data/app/assets/javascripts/material-sprockets.js +6 -1
- data/app/assets/javascripts/material.js +654 -417
- data/app/assets/javascripts/material.min.js +1 -0
- data/app/assets/javascripts/material/addons/picker.date.js +234 -0
- data/app/assets/javascripts/material/addons/picker.js +172 -0
- data/app/assets/javascripts/material/addons/textarea-autosize.js +20 -2
- data/app/assets/javascripts/material/addons/waves.js +127 -0
- data/app/assets/javascripts/material/components/floating-label.js +92 -0
- data/app/assets/javascripts/material/components/navdrawer.js +353 -0
- data/app/assets/javascripts/material/components/selection-control-focus.js +47 -0
- data/app/assets/javascripts/material/components/tab-switch.js +148 -0
- data/app/assets/javascripts/material/components/util.js +133 -0
- data/app/assets/javascripts/material/initializers/picker.js +171 -0
- data/app/assets/javascripts/material/initializers/textarea-autosize.js +10 -0
- data/app/assets/javascripts/material/initializers/waves.js +13 -0
- data/app/assets/stylesheets/material/_colours.scss +324 -0
- data/app/assets/stylesheets/material/_functions.scss +65 -0
- data/app/assets/stylesheets/material/_mixins.scss +23 -23
- data/app/assets/stylesheets/material/_print.scss +102 -0
- data/app/assets/stylesheets/material/_utilities.scss +21 -17
- data/app/assets/stylesheets/material/_variables.scss +13 -42
- data/app/assets/stylesheets/material/base/_base.scss +420 -5
- data/app/assets/stylesheets/material/base/_grid.scss +34 -33
- data/app/assets/stylesheets/material/base/_typography.scss +165 -174
- data/app/assets/stylesheets/material/bootstrap/_alert.scss +32 -39
- data/app/assets/stylesheets/material/bootstrap/_badge.scss +34 -0
- data/app/assets/stylesheets/material/bootstrap/_breadcrumb.scss +18 -18
- data/app/assets/stylesheets/material/bootstrap/_carousel.scss +127 -142
- data/app/assets/stylesheets/material/bootstrap/_close.scss +18 -19
- data/app/assets/stylesheets/material/bootstrap/_code.scss +10 -7
- data/app/assets/stylesheets/material/bootstrap/_custom-form.scss +50 -56
- data/app/assets/stylesheets/material/bootstrap/_form.scss +159 -129
- data/app/assets/stylesheets/material/bootstrap/_image.scss +19 -16
- data/app/assets/stylesheets/material/bootstrap/_jumbotron.scss +10 -7
- data/app/assets/stylesheets/material/bootstrap/_nav.scss +71 -69
- data/app/assets/stylesheets/material/bootstrap/_pagination.scss +34 -26
- data/app/assets/stylesheets/material/bootstrap/_popover.scss +26 -59
- data/app/assets/stylesheets/material/bootstrap/_responsive-embed.scss +4 -4
- data/app/assets/stylesheets/material/bootstrap/_transition.scss +10 -8
- data/app/assets/stylesheets/material/material.scss +75 -62
- data/app/assets/stylesheets/material/material/_button-flat.scss +26 -39
- data/app/assets/stylesheets/material/material/_button-float.scss +10 -14
- data/app/assets/stylesheets/material/material/_button-group.scss +268 -0
- data/app/assets/stylesheets/material/material/_button.scss +133 -189
- data/app/assets/stylesheets/material/material/_card.scss +300 -248
- data/app/assets/stylesheets/material/material/_chip.scss +65 -64
- data/app/assets/stylesheets/material/material/_data-table.scss +135 -45
- data/app/assets/stylesheets/material/material/_dialog.scss +141 -110
- data/app/assets/stylesheets/material/material/_expansion-panel.scss +86 -119
- data/app/assets/stylesheets/material/material/_menu.scss +308 -228
- data/app/assets/stylesheets/material/material/_navdrawer.scss +239 -234
- data/app/assets/stylesheets/material/material/_picker.scss +157 -155
- data/app/assets/stylesheets/material/material/_progress-circular.scss +80 -80
- data/app/assets/stylesheets/material/material/_progress.scss +180 -115
- data/app/assets/stylesheets/material/material/_selection-control.scss +132 -139
- data/app/assets/stylesheets/material/material/_stepper.scss +94 -93
- data/app/assets/stylesheets/material/material/_tab.scss +74 -93
- data/app/assets/stylesheets/material/material/_text-field-floating-label.scss +29 -20
- data/app/assets/stylesheets/material/material/_text-field-input-group.scss +94 -24
- data/app/assets/stylesheets/material/material/_text-field-textarea.scss +13 -26
- data/app/assets/stylesheets/material/material/_text-field.scss +127 -118
- data/app/assets/stylesheets/material/material/_toolbar.scss +308 -313
- data/app/assets/stylesheets/material/material/_tooltip.scss +23 -62
- data/app/assets/stylesheets/material/mixins/_background-variant.scss +6 -6
- data/app/assets/stylesheets/material/mixins/_border-radius.scss +17 -17
- data/app/assets/stylesheets/material/mixins/_breakpoint.scss +32 -2
- data/app/assets/stylesheets/material/mixins/_clearfix.scss +1 -1
- data/app/assets/stylesheets/material/mixins/_form.scss +62 -25
- data/app/assets/stylesheets/material/mixins/_grid-framework.scss +8 -16
- data/app/assets/stylesheets/material/mixins/_grid.scss +40 -64
- data/app/assets/stylesheets/material/mixins/_material-icons.scss +36 -0
- data/app/assets/stylesheets/material/mixins/_nav-divider.scss +1 -1
- data/app/assets/stylesheets/material/mixins/_reset-text.scss +2 -21
- data/app/assets/stylesheets/material/mixins/_screenreader.scss +14 -12
- data/app/assets/stylesheets/material/mixins/_text-alignment.scss +23 -0
- data/app/assets/stylesheets/material/mixins/_text-emphasis.scss +6 -6
- data/app/assets/stylesheets/material/mixins/_transition.scss +42 -10
- data/app/assets/stylesheets/material/utilities/_background.scss +18 -18
- data/app/assets/stylesheets/material/utilities/_border.scss +88 -41
- data/app/assets/stylesheets/material/utilities/_display.scss +63 -30
- data/app/assets/stylesheets/material/utilities/_flex.scss +139 -134
- data/app/assets/stylesheets/material/utilities/_material-icons.scss +3 -5
- data/app/assets/stylesheets/material/utilities/_position.scss +19 -22
- data/app/assets/stylesheets/material/utilities/_sizing.scss +11 -12
- data/app/assets/stylesheets/material/utilities/_spacing.scss +51 -56
- data/app/assets/stylesheets/material/utilities/_text.scss +80 -75
- data/app/assets/stylesheets/material/utilities/_visibility.scss +5 -46
- data/app/assets/stylesheets/material/utilities/_waves.scss +11 -18
- data/app/assets/stylesheets/material/variables/_elevation-shadow.scss +89 -82
- data/app/assets/stylesheets/material/variables/_grid.scss +29 -26
- data/app/assets/stylesheets/material/variables/_palette.scss +45 -0
- data/app/assets/stylesheets/material/variables/_spacer.scss +34 -88
- data/app/assets/stylesheets/material/variables/_transition.scss +29 -0
- data/app/assets/stylesheets/material/variables/_typography.scss +88 -74
- data/app/assets/stylesheets/material/variables/_variable-bootstrap.scss +196 -133
- data/app/assets/stylesheets/material/variables/_variable-material.scss +481 -429
- data/lib/material-sass/version.rb +1 -1
- data/material-sass.gemspec +3 -3
- metadata +26 -21
- data/app/assets/javascripts/material/addons-materialise/pickadate.js +0 -139
- data/app/assets/javascripts/material/addons-materialise/textarea-autosize.js +0 -11
- data/app/assets/javascripts/material/addons-materialise/wave.js +0 -15
- data/app/assets/javascripts/material/addons/pickadate.js +0 -7
- data/app/assets/javascripts/material/addons/wave.js +0 -5
- data/app/assets/javascripts/material/src/floating-label.js +0 -91
- data/app/assets/javascripts/material/src/navdrawer.js +0 -352
- data/app/assets/javascripts/material/src/tab-switch.js +0 -133
- data/app/assets/javascripts/material/src/util.js +0 -138
- data/app/assets/stylesheets/material/base/_normalize.scss +0 -253
- data/app/assets/stylesheets/material/base/_reboot.scss +0 -239
- data/app/assets/stylesheets/material/bootstrap/_button-group.scss +0 -134
- data/app/assets/stylesheets/material/mixins/_tab-focus.scss +0 -5
- data/app/assets/stylesheets/material/mixins/_transform.scss +0 -9
- data/app/assets/stylesheets/material/variables/_animation.scss +0 -22
- data/app/assets/stylesheets/material/variables/_colour.scss +0 -389
@@ -1,429 +1,481 @@
|
|
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
|
-
|
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
|
-
//
|
62
|
-
|
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
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
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
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
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
|
-
|
227
|
-
|
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
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
//
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
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
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
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
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
//
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
//
|
426
|
-
//
|
427
|
-
|
428
|
-
|
429
|
-
|
1
|
+
// Button (Bootstrap button)
|
2
|
+
// Based on https://material.google.com/components/buttons.html#buttons-style
|
3
|
+
|
4
|
+
// N.B. Material design only specifies specs for default button (.btn) and dense button (.btn-sm)
|
5
|
+
|
6
|
+
$btn-bg-active: rgba(153, 153, 153, .4) !default;
|
7
|
+
$btn-bg-active-inverse: rgba(204, 204, 204, .25) !default;
|
8
|
+
$btn-bg-disabled: $black-divider !default;
|
9
|
+
$btn-bg-disabled-inverse: $white-divider !default;
|
10
|
+
$btn-border-radius: $border-radius !default;
|
11
|
+
$btn-block-margin-y: $spacer-xs !default;
|
12
|
+
$btn-color: $black-primary !default;
|
13
|
+
$btn-color-disabled: rgba(0, 0, 0, .26) !default;
|
14
|
+
$btn-color-disabled-inverse: rgba(255, 255, 255, .3) !default;
|
15
|
+
$btn-elevation-shadow: $elevation-shadow-2dp !default;
|
16
|
+
$btn-elevation-shadow-active: $elevation-shadow-8dp !default;
|
17
|
+
$btn-font-weight: $font-weight-medium !default;
|
18
|
+
$btn-line-height: 1 !default;
|
19
|
+
$btn-min-width: 5.5rem !default;
|
20
|
+
$btn-overlay: $black-divider !default;
|
21
|
+
$btn-overlay-inverse: $white-divider !default;
|
22
|
+
|
23
|
+
// Size
|
24
|
+
$btn-font-size: .875rem !default;
|
25
|
+
$btn-font-size-lg: .9375rem !default;
|
26
|
+
$btn-font-size-sm: .8125rem !default;
|
27
|
+
$btn-height: 2.25rem !default;
|
28
|
+
$btn-height-lg: 2.5rem !default;
|
29
|
+
$btn-height-sm: 2rem !default;
|
30
|
+
$btn-padding-x: 1rem !default;
|
31
|
+
$btn-padding-x-lg: $btn-padding-x !default;
|
32
|
+
$btn-padding-x-sm: $btn-padding-x !default;
|
33
|
+
$btn-padding-y: (($btn-height - $btn-font-size * $btn-line-height) / 2) !default;
|
34
|
+
$btn-padding-y-lg: (($btn-height-lg - $btn-font-size-lg * $btn-line-height) / 2) !default;
|
35
|
+
$btn-padding-y-sm: (($btn-height-sm - $btn-font-size-sm * $btn-line-height) / 2) !default;
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
// Button: floating action button
|
40
|
+
// Based on https://material.google.com/components/buttons-floating-action-button.html#buttons-floating-action-button-floating-action-button
|
41
|
+
|
42
|
+
$btn-float-elevation-shadow: $elevation-shadow-6dp !default;
|
43
|
+
$btn-float-elevation-shadow-active: $elevation-shadow-12dp !default;
|
44
|
+
$btn-float-size: 3.5rem !default;
|
45
|
+
$btn-float-size-sm: 2.5rem !default;
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
// Button: toggle buttons (Boostrap button group)
|
50
|
+
// Based on https://material.io/guidelines/components/buttons.html#buttons-toggle-buttons
|
51
|
+
|
52
|
+
$btn-group-bg: $white-primary !default;
|
53
|
+
$btn-group-divider-bg: $border-color !default;
|
54
|
+
$btn-group-inner-spacer-x: 1px !default;
|
55
|
+
$btn-group-inner-spacer-y: 1px !default;
|
56
|
+
$btn-group-toggle-opacity: .7 !default;
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
// Card (Bootstrap card)
|
61
|
+
// Based on https://material.google.com/components/cards.html#cards-usage
|
62
|
+
|
63
|
+
$card-action-inner-spacer-x: .5rem !default;
|
64
|
+
$card-action-inner-spacer-y: .5rem !default;
|
65
|
+
$card-action-padding-x: $card-action-inner-spacer-x !default;
|
66
|
+
$card-action-padding-y: $card-action-inner-spacer-y !default;
|
67
|
+
$card-bg: $white !default;
|
68
|
+
$card-border-radius: $border-radius !default;
|
69
|
+
$card-border-width: $border-width !default;
|
70
|
+
$card-columns-count: 2 !default;
|
71
|
+
$card-columns-count-desktop: 3 !default;
|
72
|
+
$card-elevation-shadow: $elevation-shadow-2dp !default;
|
73
|
+
$card-elevation-shadow-hover: $elevation-shadow-8dp !default;
|
74
|
+
$card-inner-spacer-x: 1rem !default;
|
75
|
+
$card-inner-spacer-y: 1rem !default;
|
76
|
+
$card-margin-x: $spacer-sm !default;
|
77
|
+
$card-margin-y: $spacer-sm !default;
|
78
|
+
$card-padding-x: 1rem !default;
|
79
|
+
$card-padding-y: 1.5rem !default;
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
// Chip
|
84
|
+
// Based on https://material.google.com/components/chips.html#chips-specs
|
85
|
+
|
86
|
+
$chip-bg: $material-color-grey-300 !default;
|
87
|
+
$chip-bg-active: $material-color-grey-400 !default;
|
88
|
+
$chip-color: $black-primary !default;
|
89
|
+
$chip-elevation-shadow-hover: $elevation-shadow-2dp !default;
|
90
|
+
$chip-font-size: .875rem !default;
|
91
|
+
$chip-font-weight: $font-weight-regular !default;
|
92
|
+
$chip-height: 2rem !default;
|
93
|
+
$chip-icon-bg: map-get(theme-color(secondary), color) !default;
|
94
|
+
$chip-icon-font-size: 1rem !default;
|
95
|
+
$chip-inner-spacer-x: .25rem !default;
|
96
|
+
$chip-line-height: 1 !default;
|
97
|
+
$chip-padding-x: .75rem !default;
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
// Data table (Bootstrap table)
|
102
|
+
// Based on https://material.google.com/components/data-tables.html#data-tables-structure
|
103
|
+
|
104
|
+
$table-bg: $white !default;
|
105
|
+
$table-bg-accent: $material-color-grey-100 !default;
|
106
|
+
$table-bg-hover: $material-color-grey-200 !default;
|
107
|
+
$table-border-color: $border-color-solid !default;
|
108
|
+
$table-border-width: $border-width !default;
|
109
|
+
$table-cell-padding-x: 1.75rem !default;
|
110
|
+
$table-cell-padding-x-alt: 1.5rem !default;
|
111
|
+
$table-elevation-shadow: $elevation-shadow-2dp !default;
|
112
|
+
$table-line-height: $line-height-base !default;
|
113
|
+
$table-margin-y: $spacer !default;
|
114
|
+
|
115
|
+
$table-tbody-cell-height: 3rem !default;
|
116
|
+
$table-tbody-color: $black-primary !default;
|
117
|
+
$table-tbody-font-size: .8125rem !default;
|
118
|
+
$table-tbody-font-weight: $font-weight-regular !default;
|
119
|
+
$table-tbody-padding-y: (($table-tbody-cell-height - $table-tbody-font-size * $table-line-height) / 2) !default;
|
120
|
+
|
121
|
+
$table-tfoot-cell-height: 3.5rem !default;
|
122
|
+
$table-tfoot-color: $black-secondary !default;
|
123
|
+
$table-tfoot-font-size: .75rem !default;
|
124
|
+
$table-tfoot-font-weight: $font-weight-regular !default;
|
125
|
+
$table-tfoot-padding-y: (($table-tfoot-cell-height - $table-tfoot-font-size * $table-line-height) / 2) !default;
|
126
|
+
|
127
|
+
$table-thead-bg: $table-bg-accent !default;
|
128
|
+
$table-thead-cell-height: $table-tfoot-cell-height !default;
|
129
|
+
$table-thead-color: $table-tfoot-color !default;
|
130
|
+
$table-thead-font-size: $table-tfoot-font-size !default;
|
131
|
+
$table-thead-font-weight: $font-weight-medium !default;
|
132
|
+
$table-thead-padding-y: (($table-thead-cell-height - $table-thead-font-size * $table-line-height) / 2) !default;
|
133
|
+
|
134
|
+
// Size
|
135
|
+
$table-sm-cell-padding-x: 1rem !default;
|
136
|
+
$table-sm-cell-padding-x-alt: 1rem !default;
|
137
|
+
|
138
|
+
$table-sm-tbody-cell-height: 2.25rem !default;
|
139
|
+
$table-sm-tbody-padding-y: (($table-sm-tbody-cell-height - $table-tbody-font-size * $table-line-height) / 2) !default;
|
140
|
+
|
141
|
+
$table-sm-tfoot-cell-height: 2.5rem !default;
|
142
|
+
$table-sm-tfoot-padding-y: (($table-sm-tfoot-cell-height - $table-tfoot-font-size * $table-line-height) / 2) !default;
|
143
|
+
|
144
|
+
$table-sm-thead-cell-height: $table-sm-tfoot-cell-height !default;
|
145
|
+
$table-sm-thead-padding-y: (($table-sm-thead-cell-height - $table-thead-font-size * $table-line-height) / 2) !default;
|
146
|
+
|
147
|
+
// Theme
|
148
|
+
$table-dark-bg: $dark-theme-4 !default;
|
149
|
+
$table-dark-bg-accent: $dark-theme-3 !default;
|
150
|
+
$table-dark-bg-hover: $dark-theme-2 !default;
|
151
|
+
$table-dark-border-color: $dark-theme-3 !default;
|
152
|
+
$table-dark-color: $white-primary !default;
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
// Dialog (Bootstrap modal)
|
157
|
+
// Based on https://material.google.com/components/dialogs.html#dialogs-specs
|
158
|
+
|
159
|
+
$dialog-backdrop-bg: $black-hint !default;
|
160
|
+
$dialog-content-bg: $white !default;
|
161
|
+
$dialog-elevation-shadow: $elevation-shadow-24dp !default;
|
162
|
+
$dialog-footer-btn-min-width: 4rem !default;
|
163
|
+
$dialog-footer-inner-spacer-x: .5rem !default;
|
164
|
+
$dialog-footer-padding-x: .5rem !default;
|
165
|
+
$dialog-footer-padding-y: .5rem !default;
|
166
|
+
$dialog-margin-x: $spacer-lg !default;
|
167
|
+
$dialog-margin-y: $spacer-lg !default;
|
168
|
+
$dialog-padding-x: 1.5rem !default;
|
169
|
+
$dialog-padding-y: 1.25rem !default;
|
170
|
+
$dialog-scale: .87 !default;
|
171
|
+
$dialog-width: 35rem !default;
|
172
|
+
$dialog-width-lg: 52.5rem !default;
|
173
|
+
$dialog-width-sm: 17.5rem !default;
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
// Expansion panel (Bootstrap list group)
|
178
|
+
// Based on https://material.google.com/components/expansion-panels.html#expansion-panels-specs
|
179
|
+
|
180
|
+
$expansion-panel-bg: $white !default;
|
181
|
+
$expansion-panel-bg-active: $material-color-grey-200 !default;
|
182
|
+
$expansion-panel-border-color: $border-color !default;
|
183
|
+
$expansion-panel-border-radius: $border-radius !default;
|
184
|
+
$expansion-panel-border-width: $border-width !default;
|
185
|
+
$expansion-panel-color: $black-primary !default;
|
186
|
+
$expansion-panel-color-disabled: $black-hint !default;
|
187
|
+
$expansion-panel-elevation-shadow: $elevation-shadow-1dp !default;
|
188
|
+
$expansion-panel-font-size: .9375rem !default;
|
189
|
+
$expansion-panel-height: 3rem !default;
|
190
|
+
$expansion-panel-line-height: $line-height-base !default;
|
191
|
+
$expansion-panel-padding-x: 1.5rem !default;
|
192
|
+
$expansion-panel-padding-y: (($expansion-panel-height - $expansion-panel-font-size * $expansion-panel-line-height) / 2) !default;
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
// Menu (Bootstrap dropdown)
|
197
|
+
// Based on https://material.google.com/components/menus.html#menus-specs
|
198
|
+
|
199
|
+
$menu-bg: $white !default;
|
200
|
+
$menu-border-radius: $border-radius !default;
|
201
|
+
$menu-divider-bg: $border-color !default;
|
202
|
+
$menu-font-size: 1rem !default;
|
203
|
+
$menu-font-size-cascading: .9375rem !default;
|
204
|
+
$menu-elevation-shadow: $elevation-shadow-8dp !default;
|
205
|
+
$menu-header-color: $black-primary !default;
|
206
|
+
$menu-line-height: 1.5rem !default;
|
207
|
+
$menu-line-height-cascading: $menu-line-height !default;
|
208
|
+
$menu-link-bg: transparent !default;
|
209
|
+
$menu-link-bg-hover: $material-color-grey-100 !default;
|
210
|
+
$menu-link-color: $black-primary !default;
|
211
|
+
$menu-link-color-disabled: $black-hint !default;
|
212
|
+
$menu-link-height: 3rem !default;
|
213
|
+
$menu-link-height-cascading: 2rem !default;
|
214
|
+
$menu-link-padding-x: 1rem !default;
|
215
|
+
$menu-link-padding-x-cascading: 1.5rem !default;
|
216
|
+
$menu-link-padding-y: (($menu-link-height - $menu-line-height) / 2) !default;
|
217
|
+
$menu-link-padding-y-cascading: (($menu-link-height-cascading - $menu-line-height-cascading) / 2) !default;
|
218
|
+
$menu-min-width: 7rem !default;
|
219
|
+
$menu-min-width-cascading: 20rem !default;
|
220
|
+
$menu-padding-y: .5rem !default;
|
221
|
+
$menu-padding-y-cascading: 1rem !default;
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
// Navigation drawer
|
226
|
+
// Based on https://material.google.com/patterns/navigation-drawer.html#navigation-drawer-specs
|
227
|
+
|
228
|
+
$navdrawer-backdrop-bg: $dialog-backdrop-bg !default;
|
229
|
+
$navdrawer-border-color: $border-color !default;
|
230
|
+
$navdrawer-border-width: $border-width !default;
|
231
|
+
$navdrawer-content-bg: $dialog-content-bg !default;
|
232
|
+
$navdrawer-divider-bg: $border-color !default;
|
233
|
+
$navdrawer-elevation-shadow: $elevation-shadow-16dp !default;
|
234
|
+
$navdrawer-gutter-width: 3.5rem !default;
|
235
|
+
$navdrawer-header-bg: $material-color-grey-100 !default;
|
236
|
+
$navdrawer-header-border-color: $border-color !default;
|
237
|
+
$navdrawer-header-border-width: $border-width !default;
|
238
|
+
$navdrawer-inner-spacer-x: 1rem !default;
|
239
|
+
$navdrawer-inner-spacer-y: .5rem !default;
|
240
|
+
$navdrawer-nav-icon-color: $black-secondary !default;
|
241
|
+
$navdrawer-nav-icon-width: 3.5rem !default;
|
242
|
+
$navdrawer-nav-link-bg-hover: $material-color-grey-100 !default;
|
243
|
+
$navdrawer-nav-link-color: $black-primary !default;
|
244
|
+
$navdrawer-nav-link-color-active: map-get(theme-color(primary), color) !default;
|
245
|
+
$navdrawer-nav-link-color-disabled: $black-hint !default;
|
246
|
+
$navdrawer-nav-link-font-size: .875rem !default;
|
247
|
+
$navdrawer-nav-link-font-weight: $font-weight-medium !default;
|
248
|
+
$navdrawer-nav-link-height: 3rem !default;
|
249
|
+
$navdrawer-subheader-color: $black-hint !default;
|
250
|
+
$navdrawer-subheader-font-size: .875rem !default;
|
251
|
+
$navdrawer-subheader-font-weight: $font-weight-medium !default;
|
252
|
+
$navdrawer-subheader-height: 3rem !default;
|
253
|
+
$navdrawer-width: 17.5rem !default;
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
// Picker
|
258
|
+
// Based on https://material.google.com/components/pickers.html#pickers-date-pickers
|
259
|
+
|
260
|
+
$picker-cell-size: 2.5rem !default;
|
261
|
+
$picker-content-bg: $dialog-content-bg !default;
|
262
|
+
$picker-day-bg-selected: map-get(theme-color(primary), color) !default;
|
263
|
+
$picker-day-color-disabled: $black-hint !default;
|
264
|
+
$picker-day-color-today: map-get(theme-color(primary), color) !default;
|
265
|
+
$picker-elevation-shadow: $dialog-elevation-shadow !default;
|
266
|
+
$picker-header-bg: map-get(theme-color(primary), color) !default;
|
267
|
+
$picker-header-padding-x: 1.5rem !default;
|
268
|
+
$picker-header-padding-y: 1rem !default;
|
269
|
+
$picker-holder-bg: $dialog-backdrop-bg !default;
|
270
|
+
$picker-inner-spacer-x: .5rem !default;
|
271
|
+
$picker-inner-spacer-y: .5rem !default;
|
272
|
+
$picker-margin-x: $dialog-margin-x !default;
|
273
|
+
$picker-margin-y: $dialog-margin-y !default;
|
274
|
+
$picker-nav-next-icon: 'keyboard_arrow_right' !default;
|
275
|
+
$picker-nav-prev-icon: 'keyboard_arrow_left' !default;
|
276
|
+
$picker-weekday-color: $black-hint !default;
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
// Progress (Bootstrap progress bar)
|
281
|
+
// Based on https://material.google.com/components/progress-activity.html#progress-activity-types-of-indicators
|
282
|
+
|
283
|
+
$progress-bar-bg: $material-color-indigo-500 !default;
|
284
|
+
$progress-bar-border-radius: .25rem !default;
|
285
|
+
$progress-bar-height: .25rem !default;
|
286
|
+
$progress-bg: $material-color-indigo-100 !default;
|
287
|
+
|
288
|
+
// Circular
|
289
|
+
$progress-circular-animation-duration: 5.332s !default;
|
290
|
+
$progress-circular-bg: $material-color-indigo-500 !default;
|
291
|
+
$progress-circular-height: 2.5rem !default;
|
292
|
+
$progress-circular-spinner-width: .25rem !default;
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
// Selection control (Bootstrap custom form control)
|
297
|
+
// Based on https://material.google.com/components/selection-controls.html
|
298
|
+
|
299
|
+
$selection-control-checkbox-icon: 'check_box_outline_blank' !default;
|
300
|
+
$selection-control-checkbox-icon-checked: 'check_box' !default;
|
301
|
+
$selection-control-checkbox-icon-indeterminate: 'indeterminate_check_box' !default;
|
302
|
+
$selection-control-color: $black-secondary !default;
|
303
|
+
$selection-control-color-active: map-get(theme-color(secondary), color) !default;
|
304
|
+
$selection-control-color-disabled: rgba(0, 0, 0, .26) !default;
|
305
|
+
$selection-control-indicator-size: $material-icon-size !default;
|
306
|
+
$selection-control-radial-bg: $black-divider !default;
|
307
|
+
$selection-control-radio-icon: 'radio_button_unchecked' !default;
|
308
|
+
$selection-control-radio-icon-checked: 'radio_button_checked' !default;
|
309
|
+
$selection-control-spacer-x: ($material-icon-size / 2) !default;
|
310
|
+
$selection-control-spacer-y: ($material-icon-size / 2) !default;
|
311
|
+
$selection-control-thumb-bg: $material-color-grey-050 !default;
|
312
|
+
$selection-control-thumb-bg-disabled: #bdbdbd !default;
|
313
|
+
$selection-control-thumb-shadow: 0 1px 5px 0 rgba(0, 0, 0, $black-secondary-opacity) !default;
|
314
|
+
$selection-control-track-bg: $black-hint !default;
|
315
|
+
$selection-control-track-bg-disabled: $black-divider !default;
|
316
|
+
$selection-control-track-height: 1rem !default;
|
317
|
+
$selection-control-track-width: ($selection-control-indicator-size * 2) !default;
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
// Stepper
|
322
|
+
// Based on https://material.google.com/components/steppers.html#steppers-specs
|
323
|
+
|
324
|
+
$stepper-bg: $white !default;
|
325
|
+
$stepper-border-color: $material-color-grey-400 !default;
|
326
|
+
$stepper-border-width: $border-width !default;
|
327
|
+
$stepper-icon-bg: $black-hint !default;
|
328
|
+
$stepper-icon-bg-active: map-get(theme-color(primary), color) !default;
|
329
|
+
$stepper-icon-color: $white-primary !default;
|
330
|
+
$stepper-icon-font-size: .75rem !default;
|
331
|
+
$stepper-icon-font-weight: $font-weight-regular !default;
|
332
|
+
$stepper-icon-height: $material-icon-size !default;
|
333
|
+
$stepper-inner-spacer: .5rem !default;
|
334
|
+
$stepper-padding-x: 1.5rem !default;
|
335
|
+
$stepper-padding-y: 1.5rem !default;
|
336
|
+
$stepper-text-color: $black-hint !default;
|
337
|
+
$stepper-text-color-active: $black-primary !default;
|
338
|
+
$stepper-text-font-size: .875rem !default;
|
339
|
+
$stepper-text-font-weight: $font-weight-regular !default;
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
// Tab (Bootstrap tab)
|
344
|
+
// Based on https://material.google.com/components/tabs.html#tabs-specs
|
345
|
+
|
346
|
+
$nav-tab-bg-hover: $black-divider !default;
|
347
|
+
$nav-tab-border-color: $border-color !default;
|
348
|
+
$nav-tab-border-width: $border-width !default;
|
349
|
+
$nav-tab-color: $black-primary !default;
|
350
|
+
$nav-tab-color-active: map-get(theme-color(secondary), color) !default;
|
351
|
+
$nav-tab-color-disabled: $black-hint !default;
|
352
|
+
$nav-tab-font-size: .875rem !default;
|
353
|
+
$nav-tab-font-weight: $font-weight-medium !default;
|
354
|
+
$nav-tab-height: 3rem !default;
|
355
|
+
$nav-tab-indicator-bg: map-get(theme-color(secondary), color) !default;
|
356
|
+
$nav-tab-indicator-height: .125rem !default;
|
357
|
+
$nav-tab-line-height: 1 !default;
|
358
|
+
$nav-tab-link-opacity: .7 !default;
|
359
|
+
$nav-tab-link-padding-x: .75rem !default;
|
360
|
+
$nav-tab-link-padding-y: (($nav-tab-height - $nav-tab-font-size * $nav-tab-line-height) / 2) !default;
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
// Text field (Bootstrap form control)
|
365
|
+
// Based on https://material.io/guidelines/components/text-fields.html#text-fields-states
|
366
|
+
|
367
|
+
$textfield-border-color: rgba(0, 0, 0, .42) !default;
|
368
|
+
$textfield-border-color-focus: map-get(theme-color(primary), color) !default;
|
369
|
+
$textfield-border-color-hover: rgba(0, 0, 0, .87) !default;
|
370
|
+
$textfield-border-width: $border-width !default;
|
371
|
+
$textfield-border-width-focus: ($textfield-border-width * 2) !default;
|
372
|
+
$textfield-border-width-hover: ($textfield-border-width * 2) !default;
|
373
|
+
$textfield-color: $black-primary !default;
|
374
|
+
$textfield-color-disabled: $black-hint !default;
|
375
|
+
$textfield-hint-color: $black-hint !default;
|
376
|
+
$textfield-line-height: $line-height-base !default;
|
377
|
+
$textfield-margin-x: $spacer !default;
|
378
|
+
|
379
|
+
// Size
|
380
|
+
$textfield-font-size: 1rem !default;
|
381
|
+
$textfield-font-size-lg: 2.125rem !default;
|
382
|
+
$textfield-font-size-sm: .8125rem !default;
|
383
|
+
$textfield-height: 2.25rem !default;
|
384
|
+
$textfield-height-lg: 3.75rem !default;
|
385
|
+
$textfield-height-sm: 2rem !default;
|
386
|
+
$textfield-line-height: 1.5 !default;
|
387
|
+
$textfield-line-height-lg: 1.176471 !default;
|
388
|
+
$textfield-line-height-sm: 1.384615 !default;
|
389
|
+
$textfield-margin-y: .5rem !default;
|
390
|
+
$textfield-margin-y-lg: .75rem !default;
|
391
|
+
$textfield-margin-y-sm: .25rem !default;
|
392
|
+
$textfield-padding-x: 0 !default;
|
393
|
+
$textfield-padding-x-lg: 0 !default;
|
394
|
+
$textfield-padding-x-sm: 0 !default;
|
395
|
+
$textfield-padding-y: (($textfield-height - $textfield-font-size * $textfield-line-height) / 2) !default;
|
396
|
+
$textfield-padding-y-lg: (($textfield-height-lg - $textfield-font-size-lg * $textfield-line-height-lg) / 2) !default;
|
397
|
+
$textfield-padding-y-sm: (($textfield-height-sm - $textfield-font-size-sm * $textfield-line-height-sm) / 2) !default;
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
// Text field: box
|
402
|
+
// Based on https://material.io/guidelines/components/text-fields.html#text-fields-text-field-boxes
|
403
|
+
|
404
|
+
$textfield-box-border-radius: 4px !default;
|
405
|
+
|
406
|
+
// Size
|
407
|
+
$textfield-box-padding-x: 1rem !default;
|
408
|
+
$textfield-box-padding-x-lg: 1rem !default;
|
409
|
+
$textfield-box-padding-x-sm: .75rem !default;
|
410
|
+
$textfield-box-padding-y: 1.125rem !default;
|
411
|
+
$textfield-box-padding-y-lg: 1.125rem !default;
|
412
|
+
$textfield-box-padding-y-sm: .75rem !default;
|
413
|
+
|
414
|
+
|
415
|
+
|
416
|
+
// Text field: floating label
|
417
|
+
// Based on https://material.google.com/components/text-fields.html#text-fields-labels
|
418
|
+
|
419
|
+
$floating-label-color: $textfield-hint-color !default;
|
420
|
+
$floating-label-color-focus: map-get(theme-color(primary), color) !default;
|
421
|
+
$floating-label-font-size-focus: .75rem !default;
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
// Toolbar (Bootstrap navbar)
|
426
|
+
// Based on https://material.google.com/components/toolbars.html#toolbars-usage
|
427
|
+
|
428
|
+
$toolbar-color: $black-primary !default;
|
429
|
+
$toolbar-color-lighter: $black-hint !default;
|
430
|
+
$toolbar-element-bg: $black-divider !default;
|
431
|
+
$toolbar-element-border-radius: $border-radius !default;
|
432
|
+
$toolbar-element-height: 2.25rem !default;
|
433
|
+
$toolbar-element-opacity: .7 !default;
|
434
|
+
$toolbar-elevation-shadow: $elevation-shadow-4dp !default;
|
435
|
+
$toolbar-height: 3.5rem !default;
|
436
|
+
$toolbar-inner-spacer-x: 1rem !default;
|
437
|
+
$toolbar-inner-spacer-y: 1rem !default;
|
438
|
+
$toolbar-link-font-size: 1rem !default;
|
439
|
+
$toolbar-link-height: $toolbar-element-height !default;
|
440
|
+
$toolbar-link-line-height: 1 !default;
|
441
|
+
$toolbar-link-padding-x: 1rem !default;
|
442
|
+
$toolbar-link-padding-y: (($toolbar-link-height - $toolbar-link-font-size * $toolbar-link-line-height) / 2) !default;
|
443
|
+
$toolbar-padding-x: 1rem !default;
|
444
|
+
$toolbar-padding-y: (($toolbar-height - $toolbar-element-height) / 2) !default;
|
445
|
+
$toolbar-toggler-icon: 'menu' !default;
|
446
|
+
$toolbar-waterfall-bg: map-get(theme-color(primary), color) !default;
|
447
|
+
|
448
|
+
// Theme
|
449
|
+
$toolbar-dark-color: $white-primary !default;
|
450
|
+
$toolbar-dark-color-lighter: $white-hint !default;
|
451
|
+
$toolbar-dark-element-bg: $white-divider !default;
|
452
|
+
|
453
|
+
|
454
|
+
|
455
|
+
// Tooltip (Bootstrap tooltip)
|
456
|
+
// Based on https://material.google.com/components/tooltips.html#tooltips-tooltips-desktop
|
457
|
+
|
458
|
+
$tooltip-bg: $material-color-grey-700 !default;
|
459
|
+
$tooltip-color: $white-primary !default;
|
460
|
+
$tooltip-font-size: .875rem !default;
|
461
|
+
$tooltip-font-size-desktop: .625rem !default;
|
462
|
+
$tooltip-height: 2rem !default;
|
463
|
+
$tooltip-height-desktop: 1.375rem !default;
|
464
|
+
$tooltip-line-height: $line-height-base !default;
|
465
|
+
$tooltip-margin: 1.5rem !default;
|
466
|
+
$tooltip-margin-desktop: .875rem !default;
|
467
|
+
$tooltip-opacity: .9 !default;
|
468
|
+
$tooltip-padding-x: 1rem !default;
|
469
|
+
$tooltip-padding-x-desktop: .5rem !default;
|
470
|
+
$tooltip-padding-y: (($tooltip-height - $tooltip-font-size * $tooltip-line-height) / 2) !default;
|
471
|
+
$tooltip-padding-y-desktop: (($tooltip-height-desktop - $tooltip-font-size-desktop * $tooltip-line-height) / 2) !default;
|
472
|
+
$tooltip-scale: .87 !default;
|
473
|
+
$tooltip-zindex: $elevation-24dp !default;
|
474
|
+
|
475
|
+
|
476
|
+
|
477
|
+
// Waves
|
478
|
+
|
479
|
+
$waves-bg: $black-divider !default;
|
480
|
+
$waves-bg-light: $white-divider !default;
|
481
|
+
$waves-size: 4rem !default;
|