@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.
Files changed (51) hide show
  1. package/dist/css/materialize.css +644 -558
  2. package/dist/css/materialize.min.css +2 -2
  3. package/dist/js/materialize.js +18 -8
  4. package/dist/js/materialize.min.js +2 -2
  5. package/dist/js/materialize.min.js.map +1 -1
  6. package/dist/src/bounding.d.ts.map +1 -1
  7. package/dist/src/edges.d.ts.map +1 -1
  8. package/dist/src/modal.d.ts.map +1 -1
  9. package/dist/src/select.d.ts.map +1 -1
  10. package/dist/src/toasts.d.ts.map +1 -1
  11. package/dist/src/utils.d.ts.map +1 -1
  12. package/dist/src/waves.d.ts.map +1 -1
  13. package/package.json +1 -1
  14. package/sass/components/_badges.scss +17 -12
  15. package/sass/components/_buttons.scss +137 -126
  16. package/sass/components/_cards.scss +12 -14
  17. package/sass/components/_carousel.scss +8 -6
  18. package/sass/components/_chips.scss +10 -11
  19. package/sass/components/_collapsible.scss +6 -8
  20. package/sass/components/_collection.scss +15 -15
  21. package/sass/components/_datepicker.scss +15 -15
  22. package/sass/components/_dropdown.scss +5 -17
  23. package/sass/components/_global.scss +65 -137
  24. package/sass/components/_grid.scss +12 -4
  25. package/sass/components/_materialbox.scss +1 -1
  26. package/sass/components/_modal.scss +14 -9
  27. package/sass/components/_navbar.scss +31 -25
  28. package/sass/components/_preloader.scss +5 -6
  29. package/sass/components/_sidenav.scss +42 -26
  30. package/sass/components/_slider.scss +5 -5
  31. package/sass/components/_table_of_contents.scss +7 -8
  32. package/sass/components/_tabs.scss +16 -17
  33. package/sass/components/_tapTarget.scss +3 -3
  34. package/sass/components/_timepicker.scss +12 -12
  35. package/sass/components/_toast.scss +17 -10
  36. package/sass/components/_tooltip.scss +13 -6
  37. package/sass/components/_variables.scss +13 -377
  38. package/sass/components/colors.module.scss +74 -180
  39. package/sass/components/forms/_checkboxes.scss +22 -22
  40. package/sass/components/forms/_file-input.scss +2 -5
  41. package/sass/components/forms/_forms.scss +5 -3
  42. package/sass/components/forms/_input-fields.scss +40 -41
  43. package/sass/components/forms/_radio-buttons.scss +11 -14
  44. package/sass/components/forms/_range.scss +16 -24
  45. package/sass/components/forms/_select.scss +34 -28
  46. package/sass/components/forms/_switches.scss +9 -12
  47. package/sass/components/theme.module.scss +140 -0
  48. package/sass/materialize.scss +6 -3
  49. package/sass/components/_theme_variables.scss +0 -78
  50. package/sass/components/theme.dark.module.scss +0 -32
  51. package/sass/components/theme.light.module.scss +0 -32
@@ -6,6 +6,11 @@ html {
6
6
  box-sizing: inherit;
7
7
  }
8
8
 
9
+ body {
10
+ background-color: var(--md-sys-color-background);
11
+ color: var(--md-sys-color-on-background);
12
+ }
13
+
9
14
  button,
10
15
  input,
11
16
  optgroup,
@@ -14,23 +19,14 @@ textarea {
14
19
  font-family: $font-stack;
15
20
  }
16
21
 
17
- a {
18
- color: $link-color;
19
- text-decoration: none;
20
- // Gets rid of tap active state
21
- -webkit-tap-highlight-color: transparent;
22
+ a { color: $link-color; text-decoration: none;
23
+ -webkit-tap-highlight-color: transparent; // Gets rid of tap active state
22
24
  }
23
25
 
24
26
  // Positioning
25
- .valign-wrapper {
26
- display: flex;
27
- align-items: center;
28
- }
27
+ .valign-wrapper { display: flex; align-items: center; }
29
28
 
30
- // classic clearfix
31
- .clearfix {
32
- clear: both;
33
- }
29
+ .clearfix { clear: both; }
34
30
 
35
31
  // Z-levels
36
32
  .z-depth-0 {
@@ -87,15 +83,11 @@ a {
87
83
  .divider {
88
84
  height: 1px;
89
85
  overflow: hidden;
90
- background-color: $divider-color;
86
+ background-color: var(--md-sys-color-outline-variant);
91
87
  }
92
88
 
93
89
  // Blockquote
94
- blockquote {
95
- margin: 20px 0;
96
- padding-left: 1.5rem;
97
- border-left: 5px solid $primary-color;
98
- }
90
+ blockquote { margin: 20px 0; padding-left: 1.5rem; border-left: 5px solid var(--md-sys-color-primary); }
99
91
 
100
92
  // Icon Styles
101
93
  i {
@@ -123,6 +115,13 @@ i {
123
115
  }
124
116
  }
125
117
 
118
+ // Modal
119
+ html.noscroll {
120
+ position: fixed;
121
+ overflow-y: scroll;
122
+ width: 100%;
123
+ }
124
+
126
125
  // Images
127
126
  img.responsive-img,
128
127
  video.responsive-video {
@@ -141,7 +140,7 @@ video.responsive-video {
141
140
  height: 30px;
142
141
 
143
142
  a {
144
- color: $font-color-medium;
143
+ color: var(--md-sys-color-on-surface-variant);
145
144
  display: inline-block;
146
145
  font-size: 1.2rem;
147
146
  padding: 0 10px;
@@ -149,21 +148,21 @@ video.responsive-video {
149
148
  }
150
149
 
151
150
  &:hover:not(.disabled) {
152
- background-color: $primary-color-hover-opaque;
151
+ background-color: rgba(var(--md-sys-color-primary-numeric), 0.06);
153
152
  }
154
153
 
155
154
  &.active a {
156
- color: $font-on-primary-color-main;
155
+ color: var(--md-sys-color-on-primary);
157
156
  }
158
157
 
159
158
  &.active,
160
159
  &.active:hover {
161
- background-color: $primary-color;
160
+ background-color: var(--md-sys-color-primary);
162
161
  }
163
162
 
164
163
  &.disabled a {
165
164
  cursor: default;
166
- color: $font-color-disabled;
165
+ color: var(--md-sys-color-on-surface);
167
166
  }
168
167
 
169
168
  i {
@@ -199,7 +198,7 @@ video.responsive-video {
199
198
  .breadcrumb {
200
199
  display: inline-block;
201
200
  font-size: 18px;
202
- color: $font-on-primary-color-medium;
201
+ color: var(--font-on-primary-color-medium);
203
202
 
204
203
  i,
205
204
  [class^="mdi-"], [class*="mdi-"],
@@ -212,7 +211,7 @@ video.responsive-video {
212
211
 
213
212
  &:before {
214
213
  content: '\E5CC';
215
- color: $font-on-primary-color-medium;
214
+ color: var(--font-on-primary-color-medium);
216
215
  vertical-align: top;
217
216
  display: inline-block;
218
217
  font-family: 'Material Symbols Outlined', 'Material Symbols Rounded', 'Material Symbols Sharp', 'Material Icons';
@@ -229,7 +228,7 @@ video.responsive-video {
229
228
  }
230
229
 
231
230
  &:last-child {
232
- color: $font-on-primary-color-main;
231
+ color: var(--md-sys-color-on-primary);
233
232
  }
234
233
  }
235
234
 
@@ -273,35 +272,22 @@ video.responsive-video {
273
272
  Transition Classes
274
273
  **********************/
275
274
 
276
- ul.staggered-list li {
277
- opacity: 0;
278
- }
279
-
280
- .fade-in {
281
- opacity: 0;
282
- transform-origin: 0 50%;
283
- }
284
-
275
+ ul.staggered-list li { opacity: 0; }
276
+ .fade-in { opacity: 0; transform-origin: 0 50%; }
285
277
 
286
278
  /*********************
287
279
  Media Query Classes
288
280
  **********************/
289
281
  .hide-on-small-only, .hide-on-small-and-down {
290
- @media #{$small-and-down} {
291
- display: none !important;
292
- }
282
+ @media #{$small-and-down} { display: none !important; }
293
283
  }
294
284
 
295
285
  .hide-on-med-and-down {
296
- @media #{$medium-and-down} {
297
- display: none !important;
298
- }
286
+ @media #{$medium-and-down} { display: none !important; }
299
287
  }
300
288
 
301
289
  .hide-on-med-and-up {
302
- @media #{$medium-and-up} {
303
- display: none !important;
304
- }
290
+ @media #{$medium-and-up} { display: none !important; }
305
291
  }
306
292
 
307
293
  .hide-on-med-only {
@@ -311,27 +297,19 @@ ul.staggered-list li {
311
297
  }
312
298
 
313
299
  .hide-on-large-only {
314
- @media #{$large-and-up} {
315
- display: none !important;
316
- }
300
+ @media #{$large-and-up} { display: none !important; }
317
301
  }
318
302
 
319
303
  .hide-on-extra-large-only {
320
- @media #{$extra-large-and-up} {
321
- display: none !important;
322
- }
304
+ @media #{$extra-large-and-up} { display: none !important; }
323
305
  }
324
306
 
325
307
  .show-on-extra-large {
326
- @media #{$extra-large-and-up} {
327
- display: block !important;
328
- }
308
+ @media #{$extra-large-and-up} { display: block !important; }
329
309
  }
330
310
 
331
311
  .show-on-large {
332
- @media #{$large-and-up} {
333
- display: block !important;
334
- }
312
+ @media #{$large-and-up} { display: block !important; }
335
313
  }
336
314
 
337
315
  .show-on-medium {
@@ -341,41 +319,34 @@ ul.staggered-list li {
341
319
  }
342
320
 
343
321
  .show-on-small {
344
- @media #{$small-and-down} {
345
- display: block !important;
346
- }
322
+ @media #{$small-and-down} { display: block !important; }
347
323
  }
348
324
 
349
325
  .show-on-medium-and-up {
350
- @media #{$medium-and-up} {
351
- display: block !important;
352
- }
326
+ @media #{$medium-and-up} { display: block !important; }
353
327
  }
354
328
 
355
329
  .show-on-medium-and-down {
356
- @media #{$medium-and-down} {
357
- display: block !important;
358
- }
330
+ @media #{$medium-and-down} { display: block !important; }
359
331
  }
360
332
 
361
333
 
362
334
  // Center text on mobile
363
335
  .center-on-small-only {
364
- @media #{$small-and-down} {
365
- text-align: center;
366
- }
336
+ @media #{$small-and-down} { text-align: center; }
367
337
  }
368
338
 
369
339
  // Footer
370
340
  .page-footer {
371
- padding-top: 20px;
372
- color: $footer-font-color;
373
- background-color: $footer-bg-color;
374
-
341
+ margin-top: 5rem;
342
+ padding-top: 3rem;
343
+ border-top: 1px dashed var(--md-sys-color-outline-variant);
344
+ p {
345
+ color: var(--md-sys-color-outline-light);
346
+ }
375
347
  a {
376
- color: $footer-font-color;
348
+ color: var(--md-sys-color-primary);
377
349
  }
378
-
379
350
  .footer-copyright,
380
351
  .footer-copyright a {
381
352
  overflow: hidden;
@@ -384,11 +355,8 @@ ul.staggered-list li {
384
355
  align-items: center;
385
356
  justify-content: space-between;
386
357
  padding: 10px 0px;
387
- color: $footer-copyright-font-color;
388
- background-color: $footer-copyright-bg-color;
389
358
  }
390
359
  }
391
-
392
360
  .page-footer ul {
393
361
  padding-left: 0;
394
362
  list-style-type: none;
@@ -410,7 +378,7 @@ table {
410
378
  border-bottom: none;
411
379
  }
412
380
  tbody > tr:nth-child(odd) {
413
- background-color: $table-striped-color;
381
+ background-color: rgba(0, 0, 0, 0.08);
414
382
  }
415
383
  }
416
384
 
@@ -418,12 +386,12 @@ table {
418
386
  transition: background-color .25s ease;
419
387
 
420
388
  &:hover {
421
- background-color: $surface-hover-color-opaque;
389
+ background-color: rgba(0, 0, 0, 0.04);
422
390
  }
423
391
  }
424
392
 
425
393
  thead {
426
- color: $font-color-medium;
394
+ color: var(--md-sys-color-on-surface-variant);
427
395
  }
428
396
 
429
397
  &.centered {
@@ -434,7 +402,7 @@ table {
434
402
  }
435
403
 
436
404
  tr {
437
- border-bottom: 1px solid $table-border-color;
405
+ border-bottom: 1px solid var(--md-sys-color-outline-variant);
438
406
  }
439
407
 
440
408
  td, th {
@@ -458,17 +426,14 @@ td, th {
458
426
  td:empty:before {
459
427
  content: '\00a0';
460
428
  }
461
-
462
429
  th,
463
430
  td {
464
431
  margin: 0;
465
432
  vertical-align: top;
466
433
  }
467
-
468
434
  th {
469
435
  text-align: left;
470
436
  }
471
-
472
437
  thead {
473
438
  display: block;
474
439
  float: left;
@@ -482,7 +447,6 @@ td, th {
482
447
  }
483
448
  }
484
449
  }
485
-
486
450
  tbody {
487
451
  display: block;
488
452
  width: auto;
@@ -495,27 +459,23 @@ td, th {
495
459
  vertical-align: top;
496
460
  }
497
461
  }
498
-
499
462
  th {
500
463
  display: block;
501
464
  text-align: right;
502
465
  }
503
-
504
466
  td {
505
467
  display: block;
506
468
  min-height: 1.25em;
507
469
  text-align: left;
508
470
  }
509
-
510
471
  tr {
511
472
  border-bottom: none;
512
473
  padding: 0 10px;
513
474
  }
514
-
515
475
  /* sort out borders */
516
476
  thead {
517
477
  border: 0;
518
- border-right: 1px solid $table-border-color;
478
+ border-right: 1px solid var(--md-sys-color-outline-variant);
519
479
  }
520
480
  }
521
481
  }
@@ -540,49 +500,23 @@ td, th {
540
500
  Utility Classes
541
501
  *******************/
542
502
 
543
- .hide {
544
- display: none !important;
545
- }
503
+ .hide { display: none !important; }
504
+
546
505
  // Text Align
547
- .left-align {
548
- text-align: left;
549
- }
550
- .right-align {
551
- text-align: right
552
- }
553
- .center, .center-align {
554
- text-align: center;
555
- }
506
+ .left-align { text-align: left; }
507
+ .right-align { text-align: right }
508
+ .center, .center-align { text-align: center; }
556
509
 
557
510
  // TODO: Remove this
558
- .left {
559
- float: left !important;
560
- }
561
- .right {
562
- float: right !important;
563
- }
511
+ .left { float: left !important; }
512
+ .right { float: right !important; }
564
513
 
565
514
  // No Text Select
566
- .no-select {
567
- user-select: none;
568
- }
569
- .circle {
570
- border-radius: 50%;
571
- }
572
- .center-block {
573
- display: block;
574
- margin-left: auto;
575
- margin-right: auto;
576
- }
577
- .truncate {
578
- display: block;
579
- white-space: nowrap;
580
- overflow: hidden;
581
- text-overflow: ellipsis;
582
- }
583
- .no-padding {
584
- padding: 0 !important;
585
- }
515
+ .no-select { user-select: none; }
516
+ .circle { border-radius: 50%; }
517
+ .center-block { display: block; margin-left: auto; margin-right: auto; }
518
+ .truncate { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
519
+ .no-padding { padding: 0 !important; }
586
520
 
587
521
  /**************************
588
522
  Utility Spacing Classes
@@ -597,18 +531,15 @@ $spacing-values: ("0": 0, "1": 0.25rem, "2": 0.5rem, "3": 0.75rem, "4": 1rem, "5
597
531
  @each $property, $shortcut in $spacing-shortcuts{
598
532
  @each $name, $value in $spacing-values{
599
533
  // All direction spacing
600
-
601
534
  .#{$shortcut}-#{$name}{
602
535
  #{$property}: $value !important;
603
536
  }
604
-
605
537
  // (t, b, r, l) spacing
606
538
  @each $direction, $suffix in $spacing-directions{
607
539
  .#{$shortcut}#{$suffix}-#{$name}{
608
540
  #{$property}-#{$direction}: $value !important
609
541
  }
610
542
  }
611
-
612
543
  // x spacing
613
544
  @if $spacing-horizontal != null{
614
545
  .#{$shortcut}#{$spacing-horizontal}-#{$name}{
@@ -616,15 +547,12 @@ $spacing-values: ("0": 0, "1": 0.25rem, "2": 0.5rem, "3": 0.75rem, "4": 1rem, "5
616
547
  #{$property}-right: $value !important;
617
548
  }
618
549
  }
619
-
620
550
  // y spacing
621
551
  @if $spacing-vertical != null{
622
552
  .#{$shortcut}#{$spacing-vertical}-#{$name}{
623
553
  #{$property}-top: $value !important;
624
554
  #{$property}-bottom: $value !important;
625
- }
626
-
627
- }
628
-
555
+ }
556
+ }
629
557
  }
630
558
  }
@@ -41,13 +41,21 @@
41
41
  }
42
42
 
43
43
  .row {
44
- //--grid-gap: 1rem;
44
+ --gap-size: 1.5rem; // default
45
+
45
46
  display: grid;
46
- grid-template-columns: repeat(12, 1fr); //repeat(12, calc(8.33% - var(--grid-gap) + (var(--grid-gap) / 12)));
47
- //gap: var(--grid-gap);
47
+ grid-template-columns: repeat(12, 1fr);
48
+ gap: var(--gap-size);
48
49
 
49
- //--- S
50
+ //--- Gap
51
+ .g-0 { gap: 0; }
52
+ .g-1 { gap: calc(0.25 * var(--gap-size)); }
53
+ .g-2 { gap: calc(0.5 * var(--gap-size)); }
54
+ .g-3 { gap: calc(1 * var(--gap-size)); }
55
+ .g-4 { gap: calc(1.5 * var(--gap-size)); }
56
+ .g-5 { gap: calc(3 * var(--gap-size)); }
50
57
 
58
+ //--- S
51
59
  .s1 { grid-column: auto / span 1; }
52
60
  .s2 { grid-column: auto / span 2; }
53
61
  .s3 { grid-column: auto / span 3; }
@@ -30,7 +30,7 @@
30
30
  .materialbox-caption {
31
31
  position: fixed;
32
32
  display: none;
33
- color: var(--font-color-main);
33
+ color: var(--md-sys-color-on-background);
34
34
  line-height: 50px;
35
35
  bottom: 0;
36
36
  left: 0;
@@ -1,4 +1,9 @@
1
1
  .modal {
2
+ --modal-footer-height: 56px;
3
+ --modal-footer-divider-height: 1px;
4
+ --modal-border-radius: 28px;
5
+ --modal-padding: 24px;
6
+
2
7
  &:focus {
3
8
  outline: none;
4
9
  }
@@ -9,14 +14,14 @@
9
14
  position: fixed;
10
15
  left: 0;
11
16
  right: 0;
12
- background-color: $modal-background-color;
17
+ background-color: var(--md-sys-color-surface);
13
18
  padding: 0;
14
19
  max-height: 70%;
15
20
  width: 55%;
16
21
  margin: auto;
17
22
  overflow-y: auto;
18
23
 
19
- border-radius: 2px;
24
+ border-radius: var(--modal-border-radius);
20
25
  will-change: top, opacity;
21
26
 
22
27
  @media #{$medium-and-down} {
@@ -28,7 +33,7 @@
28
33
  }
29
34
 
30
35
  .modal-content {
31
- padding: 24px;
36
+ padding: var(--modal-padding);
32
37
  overflow-y: hidden;
33
38
  }
34
39
 
@@ -37,10 +42,10 @@
37
42
  }
38
43
 
39
44
  .modal-footer {
40
- border-radius: 0 0 2px 2px;
41
- background-color: $modal-background-color;
45
+ border-radius: 0 0 var(--modal-border-radius) var(--modal-border-radius);
46
+ background-color: var(--md-sys-color-surface);
42
47
  padding: 4px 6px;
43
- height: 56px;
48
+ height: var(--modal-footer-height);
44
49
  width: 100%;
45
50
  text-align: right;
46
51
 
@@ -71,16 +76,16 @@
71
76
 
72
77
  .modal-content {
73
78
  position: absolute;
74
- height: calc(100% - 56px);
79
+ height: calc(100% - var(--modal-footer-height));
75
80
  max-height: 100%;
76
81
  width: 100%;
77
82
  overflow-y: auto;
78
83
  }
79
84
 
80
85
  .modal-footer {
81
- border-top: 1px solid $divider-color;
86
+ border-top: var(--modal-footer-divider-height) solid var(--md-sys-color-outline-variant);
82
87
  position: absolute;
83
- bottom: 0;
88
+ bottom: var(--modal-footer-divider-height);
84
89
  }
85
90
  }
86
91
 
@@ -1,9 +1,15 @@
1
+ // TODO: Make better wrapper class like .navbar
2
+ :root {
3
+ --navbar-height: 64px;
4
+ --navbar-height-mobile: 56px;
5
+ }
6
+
1
7
  nav {
2
8
  &.nav-extended {
3
9
  height: auto;
4
10
 
5
11
  .nav-wrapper {
6
- min-height: $navbar-height-mobile;
12
+ min-height: var(--navbar-height-mobile);
7
13
  height: auto;
8
14
  }
9
15
 
@@ -13,16 +19,16 @@ nav {
13
19
  }
14
20
  }
15
21
 
16
- color: $navbar-font-color;
22
+ color: var(--md-sys-color-on-primary);
17
23
  @extend .z-depth-1;
18
- background-color: $secondary-container-color;
24
+ background-color: var(--md-sys-color-secondary-container);
19
25
 
20
26
  width: 100%;
21
- height: $navbar-height-mobile;
22
- line-height: $navbar-line-height-mobile;
27
+ height: var(--navbar-height-mobile);
28
+ line-height: var(--navbar-height-mobile);
23
29
 
24
30
  a {
25
- color: $navbar-font-color;
31
+ color: var(--md-sys-color-on-primary);
26
32
  }
27
33
 
28
34
  i,
@@ -31,8 +37,8 @@ nav {
31
37
  i.material-symbols-rounded, i.material-symbols-sharp {
32
38
  display: block;
33
39
  font-size: 24px;
34
- height: $navbar-height-mobile;
35
- line-height: $navbar-line-height-mobile;
40
+ height: var(--navbar-height-mobile);
41
+ line-height: var(--navbar-height-mobile);
36
42
  }
37
43
 
38
44
  .nav-wrapper {
@@ -51,21 +57,21 @@ nav {
51
57
  float: left;
52
58
  position: relative;
53
59
  z-index: 1;
54
- height: $navbar-height-mobile;
60
+ height: var(--navbar-height-mobile);
55
61
  margin: 0 18px;
56
62
 
57
63
  i {
58
- height: $navbar-height-mobile;
59
- line-height: $navbar-line-height-mobile;
64
+ height: var(--navbar-height-mobile);
65
+ line-height: var(--navbar-height-mobile);
60
66
  }
61
67
  }
62
68
 
63
69
  // Logo
64
70
  .brand-logo {
65
71
  position: absolute;
66
- color: $navbar-font-color;
72
+ color: var(--md-sys-color-on-primary);
67
73
  display: inline-block;
68
- font-size: $navbar-brand-font-size;
74
+ font-size: 2.1rem;
69
75
  padding: 0;
70
76
 
71
77
  &.center {
@@ -126,18 +132,18 @@ nav {
126
132
 
127
133
  & > a {
128
134
  transition: background-color .3s;
129
- font-size: $navbar-font-size;
130
- color: $navbar-font-color;
135
+ font-size: 1rem;
136
+ color: var(--md-sys-color-on-primary);
131
137
  display: block;
132
138
  padding: 0 15px;
133
139
  cursor: pointer;
134
140
 
135
141
  &.active {
136
- background-color: $navbar-bg-color-focus;
142
+ background-color: var(--md-ref-palette-primary80);
137
143
  }
138
144
 
139
145
  &:hover:not(.active) {
140
- background-color: $navbar-bg-color-hover;
146
+ background-color: var(--md-ref-palette-primary70);
141
147
  }
142
148
 
143
149
  &.btn, &.btn-large, &.btn-flat, &.btn-floating {
@@ -174,7 +180,7 @@ nav {
174
180
  font-size: 1.2rem;
175
181
  border: none;
176
182
  padding-left: 2rem;
177
- color: #888; //$navbar-font-color;
183
+ color: var(--md-sys-color-on-primary);
178
184
 
179
185
  &:focus, &[type=text]:valid, &[type=password]:valid,
180
186
  &[type=email]:valid, &[type=url]:valid, &[type=date]:valid {
@@ -188,12 +194,12 @@ nav {
188
194
  left: 0;
189
195
 
190
196
  i {
191
- color: $font-on-primary-color-medium;
197
+ color: var(--font-on-primary-color-medium);
192
198
  transition: color .3s;
193
199
  }
194
200
 
195
201
  &.active i {
196
- color: $navbar-font-color;
202
+ color: var(--md-sys-color-on-primary)
197
203
  }
198
204
  }
199
205
  }
@@ -202,7 +208,7 @@ nav {
202
208
  // Fixed Navbar
203
209
  .navbar-fixed {
204
210
  position: relative;
205
- height: $navbar-height-mobile;
211
+ height: var(--navbar-height-mobile);
206
212
  z-index: 997;
207
213
 
208
214
  nav {
@@ -213,13 +219,13 @@ nav {
213
219
 
214
220
  @media #{$medium-and-up} {
215
221
  nav.nav-extended .nav-wrapper {
216
- min-height: $navbar-height;
222
+ min-height: var(--navbar-height-mobile);
217
223
  }
218
224
  nav, nav .nav-wrapper i, nav a.sidenav-trigger, nav a.sidenav-trigger i {
219
- height: $navbar-height;
220
- line-height: $navbar-line-height;
225
+ height: var(--navbar-height);
226
+ line-height: var(--navbar-height)
221
227
  }
222
228
  .navbar-fixed {
223
- height: $navbar-height;
229
+ height: var(--navbar-height);
224
230
  }
225
231
  }