@materializecss/materialize 2.0.2-alpha → 2.0.3-beta
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/Gruntfile.js +14 -109
- package/README.md +1 -1
- package/dist/css/materialize.css +1658 -353
- package/dist/css/materialize.min.css +2 -2
- package/dist/js/materialize.js +42 -30
- package/dist/js/materialize.min.js +2 -2
- package/dist/js/materialize.min.js.map +1 -1
- package/dist/src/autocomplete.d.ts +143 -0
- package/dist/src/autocomplete.d.ts.map +1 -0
- package/dist/src/bounding.d.ts +7 -0
- package/dist/src/bounding.d.ts.map +1 -0
- package/dist/src/buttons.d.ts +65 -0
- package/dist/src/buttons.d.ts.map +1 -0
- package/dist/src/cards.d.ts +4 -0
- package/dist/src/cards.d.ts.map +1 -0
- package/dist/src/carousel.d.ts +131 -0
- package/dist/src/carousel.d.ts.map +1 -0
- package/dist/src/characterCounter.d.ts +37 -0
- package/dist/src/characterCounter.d.ts.map +1 -0
- package/dist/src/chips.d.ts +131 -0
- package/dist/src/chips.d.ts.map +1 -0
- package/dist/src/collapsible.d.ts +74 -0
- package/dist/src/collapsible.d.ts.map +1 -0
- package/dist/src/component.d.ts +74 -0
- package/dist/src/component.d.ts.map +1 -0
- package/dist/src/datepicker.d.ts +248 -0
- package/dist/src/datepicker.d.ts.map +1 -0
- package/dist/src/dropdown.d.ts +148 -0
- package/dist/src/dropdown.d.ts.map +1 -0
- package/dist/src/edges.d.ts +7 -0
- package/dist/src/edges.d.ts.map +1 -0
- package/dist/src/forms.d.ts +12 -0
- package/dist/src/forms.d.ts.map +1 -0
- package/dist/src/global.d.ts +60 -0
- package/dist/src/global.d.ts.map +1 -0
- package/dist/src/index.d.ts +27 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/materialbox.d.ts +92 -0
- package/dist/src/materialbox.d.ts.map +1 -0
- package/dist/src/modal.d.ts +119 -0
- package/dist/src/modal.d.ts.map +1 -0
- package/dist/src/parallax.d.ts +40 -0
- package/dist/src/parallax.d.ts.map +1 -0
- package/dist/src/pushpin.d.ts +52 -0
- package/dist/src/pushpin.d.ts.map +1 -0
- package/dist/src/range.d.ts +41 -0
- package/dist/src/range.d.ts.map +1 -0
- package/dist/src/scrollspy.d.ts +62 -0
- package/dist/src/scrollspy.d.ts.map +1 -0
- package/dist/src/select.d.ts +77 -0
- package/dist/src/select.d.ts.map +1 -0
- package/dist/src/sidenav.d.ts +122 -0
- package/dist/src/sidenav.d.ts.map +1 -0
- package/dist/src/slider.d.ts +103 -0
- package/dist/src/slider.d.ts.map +1 -0
- package/dist/src/tabs.d.ts +80 -0
- package/dist/src/tabs.d.ts.map +1 -0
- package/dist/src/tapTarget.d.ts +59 -0
- package/dist/src/tapTarget.d.ts.map +1 -0
- package/dist/src/timepicker.d.ts +208 -0
- package/dist/src/timepicker.d.ts.map +1 -0
- package/dist/src/toasts.d.ts +90 -0
- package/dist/src/toasts.d.ts.map +1 -0
- package/dist/src/tooltip.d.ts +118 -0
- package/dist/src/tooltip.d.ts.map +1 -0
- package/dist/src/utils.d.ts +97 -0
- package/dist/src/utils.d.ts.map +1 -0
- package/dist/src/waves.d.ts +16 -0
- package/dist/src/waves.d.ts.map +1 -0
- package/package.json +4 -4
- package/sass/components/_buttons.scss +158 -73
- package/sass/components/_cards.scss +1 -1
- package/sass/components/_chips.scss +75 -28
- package/sass/components/_global.scss +56 -94
- package/sass/components/_grid.scss +28 -47
- package/sass/components/_navbar.scss +26 -26
- package/sass/components/_preloader.scss +85 -0
- package/sass/components/_pulse.scss +1 -0
- package/sass/components/_sidenav.scss +3 -14
- package/sass/components/_theme_variables.scss +27 -47
- package/sass/components/_variables.scss +5 -2
- package/sass/components/colors.module.scss +180 -0
- package/sass/components/forms/_range.scss +1 -1
- package/sass/components/forms/_switches.scss +44 -14
- package/sass/components/theme.dark.module.scss +32 -0
- package/sass/components/theme.light.module.scss +32 -0
- package/sass/components/tokens.module.scss +272 -0
- package/sass/components/typography.module.scss +150 -0
- package/sass/materialize.scss +7 -1
- package/src/carousel.ts +1 -1
- package/src/chips.ts +1 -1
- package/src/datepicker.ts +5 -5
- package/src/dropdown.ts +0 -3
- package/src/forms.ts +20 -11
- package/src/global.ts +21 -23
- package/src/index.ts +26 -0
- package/src/select.ts +1 -1
- package/src/timepicker.ts +1 -1
- package/src/tooltip.ts +28 -8
|
@@ -78,7 +78,6 @@ a {
|
|
|
78
78
|
|
|
79
79
|
.hoverable {
|
|
80
80
|
transition: box-shadow .25s;
|
|
81
|
-
|
|
82
81
|
&:hover {
|
|
83
82
|
box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
|
84
83
|
}
|
|
@@ -91,7 +90,6 @@ a {
|
|
|
91
90
|
background-color: $divider-color;
|
|
92
91
|
}
|
|
93
92
|
|
|
94
|
-
|
|
95
93
|
// Blockquote
|
|
96
94
|
blockquote {
|
|
97
95
|
margin: 20px 0;
|
|
@@ -102,29 +100,24 @@ blockquote {
|
|
|
102
100
|
// Icon Styles
|
|
103
101
|
i {
|
|
104
102
|
line-height: inherit;
|
|
105
|
-
|
|
106
103
|
&.left {
|
|
107
104
|
float: left;
|
|
108
|
-
margin-
|
|
105
|
+
margin-left: -8px;
|
|
106
|
+
// margin-right: 15px;
|
|
109
107
|
}
|
|
110
|
-
|
|
111
108
|
&.right {
|
|
112
109
|
float: right;
|
|
113
|
-
margin-left: 15px;
|
|
110
|
+
// margin-left: 15px;
|
|
114
111
|
}
|
|
115
|
-
|
|
116
112
|
&.tiny {
|
|
117
113
|
font-size: 1rem;
|
|
118
114
|
}
|
|
119
|
-
|
|
120
115
|
&.small {
|
|
121
116
|
font-size: 2rem;
|
|
122
117
|
}
|
|
123
|
-
|
|
124
118
|
&.medium {
|
|
125
119
|
font-size: 4rem;
|
|
126
120
|
}
|
|
127
|
-
|
|
128
121
|
&.large {
|
|
129
122
|
font-size: 6rem;
|
|
130
123
|
}
|
|
@@ -396,6 +389,11 @@ ul.staggered-list li {
|
|
|
396
389
|
}
|
|
397
390
|
}
|
|
398
391
|
|
|
392
|
+
.page-footer ul {
|
|
393
|
+
padding-left: 0;
|
|
394
|
+
list-style-type: none;
|
|
395
|
+
}
|
|
396
|
+
|
|
399
397
|
// Tables
|
|
400
398
|
table, th, td {
|
|
401
399
|
border: none;
|
|
@@ -520,10 +518,8 @@ td, th {
|
|
|
520
518
|
border-right: 1px solid $table-border-color;
|
|
521
519
|
}
|
|
522
520
|
}
|
|
523
|
-
|
|
524
521
|
}
|
|
525
522
|
|
|
526
|
-
|
|
527
523
|
// Responsive Videos
|
|
528
524
|
.video-container {
|
|
529
525
|
position: relative;
|
|
@@ -540,88 +536,6 @@ td, th {
|
|
|
540
536
|
}
|
|
541
537
|
}
|
|
542
538
|
|
|
543
|
-
// Progress Bar
|
|
544
|
-
.progress {
|
|
545
|
-
position: relative;
|
|
546
|
-
height: 4px;
|
|
547
|
-
display: block;
|
|
548
|
-
width: 100%;
|
|
549
|
-
background-color: $progress-bar-track-color;
|
|
550
|
-
border-radius: 2px;
|
|
551
|
-
margin: $element-top-margin 0 $element-bottom-margin 0;
|
|
552
|
-
overflow: hidden;
|
|
553
|
-
|
|
554
|
-
.determinate {
|
|
555
|
-
position: absolute;
|
|
556
|
-
top: 0;
|
|
557
|
-
left: 0;
|
|
558
|
-
bottom: 0;
|
|
559
|
-
background-color: $progress-bar-color;
|
|
560
|
-
transition: width .3s linear;
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
.indeterminate {
|
|
564
|
-
background-color: $progress-bar-color;
|
|
565
|
-
|
|
566
|
-
&:before {
|
|
567
|
-
content: '';
|
|
568
|
-
position: absolute;
|
|
569
|
-
background-color: inherit;
|
|
570
|
-
top: 0;
|
|
571
|
-
left: 0;
|
|
572
|
-
bottom: 0;
|
|
573
|
-
will-change: left, right;
|
|
574
|
-
// Custom bezier
|
|
575
|
-
animation: indeterminate 2.1s cubic-bezier(0.650, 0.815, 0.735, 0.395) infinite;
|
|
576
|
-
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
&:after {
|
|
580
|
-
content: '';
|
|
581
|
-
position: absolute;
|
|
582
|
-
background-color: inherit;
|
|
583
|
-
top: 0;
|
|
584
|
-
left: 0;
|
|
585
|
-
bottom: 0;
|
|
586
|
-
will-change: left, right;
|
|
587
|
-
// Custom bezier
|
|
588
|
-
animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.840, 0.440, 1.000) infinite;
|
|
589
|
-
animation-delay: 1.15s;
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
@keyframes indeterminate {
|
|
595
|
-
0% {
|
|
596
|
-
left: -35%;
|
|
597
|
-
right: 100%;
|
|
598
|
-
}
|
|
599
|
-
60% {
|
|
600
|
-
left: 100%;
|
|
601
|
-
right: -90%;
|
|
602
|
-
}
|
|
603
|
-
100% {
|
|
604
|
-
left: 100%;
|
|
605
|
-
right: -90%;
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
@keyframes indeterminate-short {
|
|
610
|
-
0% {
|
|
611
|
-
left: -200%;
|
|
612
|
-
right: 100%;
|
|
613
|
-
}
|
|
614
|
-
60% {
|
|
615
|
-
left: 107%;
|
|
616
|
-
right: -8%;
|
|
617
|
-
}
|
|
618
|
-
100% {
|
|
619
|
-
left: 107%;
|
|
620
|
-
right: -8%;
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
|
|
625
539
|
/*******************
|
|
626
540
|
Utility Classes
|
|
627
541
|
*******************/
|
|
@@ -639,12 +553,15 @@ td, th {
|
|
|
639
553
|
.center, .center-align {
|
|
640
554
|
text-align: center;
|
|
641
555
|
}
|
|
556
|
+
|
|
557
|
+
// TODO: Remove this
|
|
642
558
|
.left {
|
|
643
559
|
float: left !important;
|
|
644
560
|
}
|
|
645
561
|
.right {
|
|
646
562
|
float: right !important;
|
|
647
563
|
}
|
|
564
|
+
|
|
648
565
|
// No Text Select
|
|
649
566
|
.no-select {
|
|
650
567
|
user-select: none;
|
|
@@ -666,3 +583,48 @@ td, th {
|
|
|
666
583
|
.no-padding {
|
|
667
584
|
padding: 0 !important;
|
|
668
585
|
}
|
|
586
|
+
|
|
587
|
+
/**************************
|
|
588
|
+
Utility Spacing Classes
|
|
589
|
+
**************************/
|
|
590
|
+
|
|
591
|
+
$spacing-shortcuts: ("margin": "m", "padding": "p") !default;
|
|
592
|
+
$spacing-directions: ("top": "t", "right": "r", "bottom": "b", "left": "l") !default;
|
|
593
|
+
$spacing-horizontal: "x" !default;
|
|
594
|
+
$spacing-vertical: "y" !default;
|
|
595
|
+
$spacing-values: ("0": 0, "1": 0.25rem, "2": 0.5rem, "3": 0.75rem, "4": 1rem, "5": 1.5rem, "6": 3rem, "auto": auto) !default;
|
|
596
|
+
|
|
597
|
+
@each $property, $shortcut in $spacing-shortcuts{
|
|
598
|
+
@each $name, $value in $spacing-values{
|
|
599
|
+
// All direction spacing
|
|
600
|
+
|
|
601
|
+
.#{$shortcut}-#{$name}{
|
|
602
|
+
#{$property}: $value !important;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
// (t, b, r, l) spacing
|
|
606
|
+
@each $direction, $suffix in $spacing-directions{
|
|
607
|
+
.#{$shortcut}#{$suffix}-#{$name}{
|
|
608
|
+
#{$property}-#{$direction}: $value !important
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
// x spacing
|
|
613
|
+
@if $spacing-horizontal != null{
|
|
614
|
+
.#{$shortcut}#{$spacing-horizontal}-#{$name}{
|
|
615
|
+
#{$property}-left: $value !important;
|
|
616
|
+
#{$property}-right: $value !important;
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
// y spacing
|
|
621
|
+
@if $spacing-vertical != null{
|
|
622
|
+
.#{$shortcut}#{$spacing-vertical}-#{$name}{
|
|
623
|
+
#{$property}-top: $value !important;
|
|
624
|
+
#{$property}-bottom: $value !important;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
}
|
|
630
|
+
}
|
|
@@ -16,28 +16,9 @@
|
|
|
16
16
|
width: 70%;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
/*
|
|
20
|
-
.col .row {
|
|
21
|
-
margin-left: (-1 * $gutter-width * 0.5);
|
|
22
|
-
margin-right: (-1 * $gutter-width * 0.5);
|
|
23
|
-
}
|
|
24
|
-
*/
|
|
25
19
|
|
|
26
20
|
.section {
|
|
27
|
-
padding
|
|
28
|
-
padding-bottom: 1rem;
|
|
29
|
-
// No documented
|
|
30
|
-
/*
|
|
31
|
-
&.no-pad {
|
|
32
|
-
padding: 0;
|
|
33
|
-
}
|
|
34
|
-
&.no-pad-bot {
|
|
35
|
-
padding-bottom: 0;
|
|
36
|
-
}
|
|
37
|
-
&.no-pad-top {
|
|
38
|
-
padding-top: 0;
|
|
39
|
-
}
|
|
40
|
-
*/
|
|
21
|
+
padding: 1rem 0;
|
|
41
22
|
}
|
|
42
23
|
|
|
43
24
|
// Mixins to eliminate code repetition
|
|
@@ -80,15 +61,15 @@
|
|
|
80
61
|
.s11 { grid-column: auto / span 11; }
|
|
81
62
|
.s12 { grid-column: auto / span 12; }
|
|
82
63
|
|
|
83
|
-
.offset-s1
|
|
84
|
-
.offset-s2
|
|
85
|
-
.offset-s3
|
|
86
|
-
.offset-s4
|
|
87
|
-
.offset-s5
|
|
88
|
-
.offset-s6
|
|
89
|
-
.offset-s7
|
|
90
|
-
.offset-s8
|
|
91
|
-
.offset-s9
|
|
64
|
+
.offset-s1 { grid-column-start: 3; }
|
|
65
|
+
.offset-s2 { grid-column-start: 2; }
|
|
66
|
+
.offset-s3 { grid-column-start: 4; }
|
|
67
|
+
.offset-s4 { grid-column-start: 5; }
|
|
68
|
+
.offset-s5 { grid-column-start: 6; }
|
|
69
|
+
.offset-s6 { grid-column-start: 7; }
|
|
70
|
+
.offset-s7 { grid-column-start: 8; }
|
|
71
|
+
.offset-s8 { grid-column-start: 9; }
|
|
72
|
+
.offset-s9 { grid-column-start: 10; }
|
|
92
73
|
.offset-s10 { grid-column-start: 11; }
|
|
93
74
|
.offset-s11 { grid-column-start: 12; }
|
|
94
75
|
|
|
@@ -107,15 +88,15 @@
|
|
|
107
88
|
.m11 { grid-column: auto / span 11; }
|
|
108
89
|
.m12 { grid-column: auto / span 12; }
|
|
109
90
|
|
|
110
|
-
.offset-m1
|
|
111
|
-
.offset-m2
|
|
112
|
-
.offset-m3
|
|
113
|
-
.offset-m4
|
|
114
|
-
.offset-m5
|
|
115
|
-
.offset-m6
|
|
116
|
-
.offset-m7
|
|
117
|
-
.offset-m8
|
|
118
|
-
.offset-m9
|
|
91
|
+
.offset-m1 { grid-column-start: 2; }
|
|
92
|
+
.offset-m2 { grid-column-start: 3; }
|
|
93
|
+
.offset-m3 { grid-column-start: 4; }
|
|
94
|
+
.offset-m4 { grid-column-start: 5; }
|
|
95
|
+
.offset-m5 { grid-column-start: 6; }
|
|
96
|
+
.offset-m6 { grid-column-start: 7; }
|
|
97
|
+
.offset-m7 { grid-column-start: 8; }
|
|
98
|
+
.offset-m8 { grid-column-start: 9; }
|
|
99
|
+
.offset-m9 { grid-column-start: 10; }
|
|
119
100
|
.offset-m10 { grid-column-start: 11; }
|
|
120
101
|
.offset-m11 { grid-column-start: 12; }
|
|
121
102
|
}
|
|
@@ -163,15 +144,15 @@
|
|
|
163
144
|
.xl11 { grid-column: auto / span 11; }
|
|
164
145
|
.xl12 { grid-column: auto / span 12; }
|
|
165
146
|
|
|
166
|
-
.offset-xl1
|
|
167
|
-
.offset-xl2
|
|
168
|
-
.offset-xl3
|
|
169
|
-
.offset-xl4
|
|
170
|
-
.offset-xl5
|
|
171
|
-
.offset-xl6
|
|
172
|
-
.offset-xl7
|
|
173
|
-
.offset-xl8
|
|
174
|
-
.offset-xl9
|
|
147
|
+
.offset-xl1 { grid-column-start: 2; }
|
|
148
|
+
.offset-xl2 { grid-column-start: 3; }
|
|
149
|
+
.offset-xl3 { grid-column-start: 4; }
|
|
150
|
+
.offset-xl4 { grid-column-start: 5; }
|
|
151
|
+
.offset-xl5 { grid-column-start: 6; }
|
|
152
|
+
.offset-xl6 { grid-column-start: 7; }
|
|
153
|
+
.offset-xl7 { grid-column-start: 8; }
|
|
154
|
+
.offset-xl8 { grid-column-start: 9; }
|
|
155
|
+
.offset-xl9 { grid-column-start: 10; }
|
|
175
156
|
.offset-xl10 { grid-column-start: 11; }
|
|
176
157
|
.offset-xl11 { grid-column-start: 12; }
|
|
177
158
|
}
|
|
@@ -15,7 +15,7 @@ nav {
|
|
|
15
15
|
|
|
16
16
|
color: $navbar-font-color;
|
|
17
17
|
@extend .z-depth-1;
|
|
18
|
-
background-color: $
|
|
18
|
+
background-color: $secondary-container-color;
|
|
19
19
|
|
|
20
20
|
width: 100%;
|
|
21
21
|
height: $navbar-height-mobile;
|
|
@@ -119,38 +119,38 @@ nav {
|
|
|
119
119
|
list-style-type: none;
|
|
120
120
|
margin: 0;
|
|
121
121
|
|
|
122
|
-
li {
|
|
122
|
+
& > li {
|
|
123
123
|
transition: background-color .3s;
|
|
124
124
|
float: left;
|
|
125
125
|
padding: 0;
|
|
126
|
-
}
|
|
127
126
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
&.active {
|
|
137
|
-
background-color: $navbar-bg-color-focus;
|
|
138
|
-
}
|
|
127
|
+
& > a {
|
|
128
|
+
transition: background-color .3s;
|
|
129
|
+
font-size: $navbar-font-size;
|
|
130
|
+
color: $navbar-font-color;
|
|
131
|
+
display: block;
|
|
132
|
+
padding: 0 15px;
|
|
133
|
+
cursor: pointer;
|
|
139
134
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
135
|
+
&.active {
|
|
136
|
+
background-color: $navbar-bg-color-focus;
|
|
137
|
+
}
|
|
143
138
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
margin-right: 15px;
|
|
148
|
-
display: inline-block;
|
|
139
|
+
&:hover:not(.active) {
|
|
140
|
+
background-color: $navbar-bg-color-hover;
|
|
141
|
+
}
|
|
149
142
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
143
|
+
&.btn, &.btn-large, &.btn-flat, &.btn-floating {
|
|
144
|
+
margin-top: -2px;
|
|
145
|
+
margin-left: 15px;
|
|
146
|
+
margin-right: 15px;
|
|
147
|
+
display: inline-block;
|
|
148
|
+
|
|
149
|
+
& > .material-icons, & > .material-symbols-outlined,
|
|
150
|
+
& > .material-symbols-rounded, & > .material-symbols-sharp {
|
|
151
|
+
height: inherit;
|
|
152
|
+
line-height: inherit;
|
|
153
|
+
}
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
}
|
|
@@ -1,3 +1,88 @@
|
|
|
1
|
+
// Progress Bar
|
|
2
|
+
.progress {
|
|
3
|
+
position: relative;
|
|
4
|
+
height: 4px;
|
|
5
|
+
display: block;
|
|
6
|
+
width: 100%;
|
|
7
|
+
|
|
8
|
+
@extend .surface-variant;
|
|
9
|
+
|
|
10
|
+
border-radius: 2px;
|
|
11
|
+
margin: $element-top-margin 0 $element-bottom-margin 0;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
|
|
14
|
+
.determinate {
|
|
15
|
+
position: absolute;
|
|
16
|
+
top: 0;
|
|
17
|
+
left: 0;
|
|
18
|
+
bottom: 0;
|
|
19
|
+
background-color: $progress-bar-color;
|
|
20
|
+
transition: width .3s linear;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.indeterminate {
|
|
24
|
+
background-color: $progress-bar-color;
|
|
25
|
+
|
|
26
|
+
&:before {
|
|
27
|
+
content: '';
|
|
28
|
+
position: absolute;
|
|
29
|
+
background-color: inherit;
|
|
30
|
+
top: 0;
|
|
31
|
+
left: 0;
|
|
32
|
+
bottom: 0;
|
|
33
|
+
will-change: left, right;
|
|
34
|
+
// Custom bezier
|
|
35
|
+
animation: indeterminate 2.1s cubic-bezier(0.650, 0.815, 0.735, 0.395) infinite;
|
|
36
|
+
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&:after {
|
|
40
|
+
content: '';
|
|
41
|
+
position: absolute;
|
|
42
|
+
background-color: inherit;
|
|
43
|
+
top: 0;
|
|
44
|
+
left: 0;
|
|
45
|
+
bottom: 0;
|
|
46
|
+
will-change: left, right;
|
|
47
|
+
// Custom bezier
|
|
48
|
+
animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.840, 0.440, 1.000) infinite;
|
|
49
|
+
animation-delay: 1.15s;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@keyframes indeterminate {
|
|
55
|
+
0% {
|
|
56
|
+
left: -35%;
|
|
57
|
+
right: 100%;
|
|
58
|
+
}
|
|
59
|
+
60% {
|
|
60
|
+
left: 100%;
|
|
61
|
+
right: -90%;
|
|
62
|
+
}
|
|
63
|
+
100% {
|
|
64
|
+
left: 100%;
|
|
65
|
+
right: -90%;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@keyframes indeterminate-short {
|
|
70
|
+
0% {
|
|
71
|
+
left: -200%;
|
|
72
|
+
right: 100%;
|
|
73
|
+
}
|
|
74
|
+
60% {
|
|
75
|
+
left: 107%;
|
|
76
|
+
right: -8%;
|
|
77
|
+
}
|
|
78
|
+
100% {
|
|
79
|
+
left: 107%;
|
|
80
|
+
right: -8%;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
1
86
|
/*
|
|
2
87
|
@license
|
|
3
88
|
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
background-color: $button-flat-focus-background-color;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
li.active > a:not(.collapsible-header)
|
|
42
|
-
color: $font-on-
|
|
43
|
-
background-color: $
|
|
41
|
+
li.active > a:not(.collapsible-header):not(.btn):not(.btn-large):not(.btn-small):not(.btn-flat):not(.btn-large):not(.btn-floating) {
|
|
42
|
+
color: $font-on-secondary-container-color;
|
|
43
|
+
background-color: $secondary-container-color;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.collapsible-body > ul { padding-left: 10px; }
|
|
@@ -201,16 +201,6 @@
|
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
/*
|
|
205
|
-
.sidenav .collapsible-body > ul:not(.collapsible) > li.active,
|
|
206
|
-
.sidenav.sidenav-fixed .collapsible-body > ul:not(.collapsible) > li.active {
|
|
207
|
-
background-color: $primary-color;
|
|
208
|
-
a:not(.btn) {
|
|
209
|
-
color: $font-on-primary-color-main;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
*/
|
|
213
|
-
|
|
214
204
|
.sidenav .collapsible-body {
|
|
215
205
|
padding: 0;
|
|
216
206
|
}
|
|
@@ -239,6 +229,5 @@
|
|
|
239
229
|
}
|
|
240
230
|
.collapsible-body {
|
|
241
231
|
border: none;
|
|
242
|
-
background-color: $collapsible-bg-color;
|
|
243
232
|
}
|
|
244
233
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
:root, :host {
|
|
2
|
-
--surface-color:
|
|
3
|
-
--background-color:
|
|
2
|
+
--surface-color: var(--md-sys-color-surface);
|
|
3
|
+
--background-color: var(--md-sys-color-background);
|
|
4
4
|
|
|
5
|
-
--font-color-main:
|
|
6
|
-
--font-color-medium:
|
|
7
|
-
--font-color-disabled:
|
|
5
|
+
--font-color-main: var(--md-sys-color-on-background);
|
|
6
|
+
--font-color-medium: var(--md-sys-color-on-surface-variant);
|
|
7
|
+
--font-color-disabled: var(--md-sys-color-on-surface);
|
|
8
8
|
|
|
9
|
-
--font-on-primary-color-main:
|
|
10
|
-
--font-on-primary-color-dark-main:
|
|
11
|
-
--font-on-primary-color-dark-medium:
|
|
12
|
-
--font-on-primary-color-medium:
|
|
9
|
+
--font-on-primary-color-main: var(--md-sys-color-on-primary);
|
|
10
|
+
--font-on-primary-color-dark-main: var(--md-sys-color-on-primary-dark);
|
|
11
|
+
--font-on-primary-color-dark-medium: var(--md-sys-color-on-surface-variant-dark);
|
|
12
|
+
--font-on-primary-color-medium: var(--md-sys-color-on-surface-variant);
|
|
13
13
|
--font-on-primary-color-disabled: rgba(255, 255, 255, 0.38);
|
|
14
|
-
--font-on-secondary-color-main:
|
|
14
|
+
--font-on-secondary-color-main: var(--md-sys-color-on-secondary);
|
|
15
15
|
|
|
16
16
|
--hover-color: rgba(0, 0, 0, 0.04);
|
|
17
17
|
--focus-color: rgba(0, 0, 0, 0.12);
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
--background-color-disabled: rgba(0, 0, 0, 0.12);
|
|
21
21
|
--background-color-level-4dp: rgba(0, 0, 0, 0.09);
|
|
22
22
|
--background-color-level-16dp-solid: var(--surface-color);
|
|
23
|
-
--background-color-slight-emphasis: rgba(0, 0, 0, 0.
|
|
23
|
+
--background-color-slight-emphasis: rgba(0, 0, 0, 0.08);
|
|
24
24
|
--background-color-card: var(--surface-color);
|
|
25
25
|
|
|
26
26
|
--tooltip-background-color: #313033;
|
|
@@ -30,41 +30,32 @@
|
|
|
30
30
|
|
|
31
31
|
--error-color: #F44336;
|
|
32
32
|
|
|
33
|
-
--slider-track-color:
|
|
34
|
-
--switch-thumb-off-color:
|
|
33
|
+
--slider-track-color: var(--md-sys-color-shadow-light);
|
|
34
|
+
--switch-thumb-off-color: var(--md-ref-palette-primary100);
|
|
35
35
|
|
|
36
36
|
--carousel-indicator-color: rgba(255, 255, 255, 0.45);
|
|
37
|
-
--carousel-indicator-active-color:
|
|
37
|
+
--carousel-indicator-active-color: var(--md-ref-palette-primary100);
|
|
38
38
|
|
|
39
|
-
--primary-color:
|
|
40
|
-
--primary-color-dark:
|
|
41
|
-
--primary-color-
|
|
42
|
-
--primary-color-raised-
|
|
43
|
-
--primary-color-raised-focus-solid: #44C4B8;
|
|
39
|
+
--primary-color: var(--md-sys-color-primary);
|
|
40
|
+
--primary-color-dark: var(--md-sys-color-primary-dark);
|
|
41
|
+
--primary-color-raised-hover-solid: var(--md-ref-palette-primary70);
|
|
42
|
+
--primary-color-raised-focus-solid: var(--md-ref-palette-primary80);
|
|
44
43
|
--primary-color-font-medium-color: rgba(var(--primary-color-numeric), 0.7);
|
|
45
44
|
--primary-color-font-disabled-color: rgba(var(--primary-color-numeric), 0.4);
|
|
46
45
|
--primary-color-hover-opaque: rgba(var(--primary-color-numeric), 0.06);
|
|
47
46
|
--primary-color-focus-opaque: rgba(var(--primary-color-numeric), 0.18);
|
|
48
47
|
|
|
49
|
-
--secondary-color:
|
|
50
|
-
--secondary-color-hover-solid:
|
|
51
|
-
--secondary-color-focus-solid:
|
|
48
|
+
--secondary-color: var(--md-sys-color-secondary);
|
|
49
|
+
--secondary-color-hover-solid: var(--md-ref-palette-secondary70);
|
|
50
|
+
--secondary-color-focus-solid: var(--md-ref-palette-secondary80);
|
|
51
|
+
--secondary-container-color: var(--md-sys-color-secondary-container);
|
|
52
|
+
--font-on-secondary-container-color: var(--md-sys-color-on-secondary-container);
|
|
52
53
|
|
|
53
54
|
--md_sys_color_on-surface: 28, 27, 31;
|
|
54
55
|
}
|
|
55
56
|
|
|
56
|
-
:
|
|
57
|
-
|
|
58
|
-
--surface-color: #242424;
|
|
59
|
-
|
|
60
|
-
--font-color-main: rgba(255, 255, 255, 0.87);
|
|
61
|
-
--font-color-medium: rgba(255, 255, 255, 0.60);
|
|
62
|
-
--font-color-disabled: rgba(255, 255, 255, 0.38);
|
|
63
|
-
|
|
64
|
-
--font-on-primary-color-main: rgba(0, 0, 0, 0.87);
|
|
65
|
-
--font-on-primary-color-dark-main: rgba(255, 255, 255, 0.87);
|
|
66
|
-
--font-on-primary-color-dark-medium: rgba(255, 255, 255, 0.60);
|
|
67
|
-
--font-on-primary-color-medium: rgba(0, 0, 0, 0.56);
|
|
57
|
+
//important: when all variables are assigned this could be removed as will be no difference
|
|
58
|
+
:root[theme='dark'] {
|
|
68
59
|
--font-on-primary-color-disabled: rgba(0, 0, 0, 0.38);
|
|
69
60
|
|
|
70
61
|
--hover-color: rgba(255, 255, 255, 0.04);
|
|
@@ -73,26 +64,15 @@
|
|
|
73
64
|
|
|
74
65
|
--background-color-disabled: rgba(255, 255, 255, 0.12);
|
|
75
66
|
--background-color-level-4dp: rgba(255, 255, 255, 0.09);
|
|
76
|
-
--background-color-level-16dp-solid: #262626;
|
|
77
|
-
--background-color-card: var(--surface-color);
|
|
78
67
|
--background-color-slight-emphasis: rgba(255, 255, 255, 0.05);
|
|
79
68
|
|
|
80
69
|
--separator-color: #424242; /* borders between components */
|
|
81
70
|
|
|
82
71
|
--error-color: #CF6679;
|
|
83
72
|
|
|
84
|
-
--slider-track-color: rgba(255, 255, 255, 0.26);
|
|
85
73
|
--switch-thumb-off-color: #bababa;
|
|
86
74
|
|
|
87
|
-
--
|
|
88
|
-
|
|
89
|
-
--primary-color-numeric: 179, 157, 219;
|
|
90
|
-
--primary-color-raised-hover-solid: #C2ACEA;
|
|
91
|
-
--primary-color-raised-focus-solid: #DBC5FF;
|
|
75
|
+
--md_sys_color_on-surface: 230, 225, 229;
|
|
76
|
+
}
|
|
92
77
|
|
|
93
|
-
--secondary-color: #CDDC39;
|
|
94
|
-
--secondary-color-hover-solid: #DCEB48;
|
|
95
|
-
--secondary-color-focus-solid: #F5FF61;
|
|
96
78
|
|
|
97
|
-
--md_sys_color_on-surface: 230, 225, 229;
|
|
98
|
-
}
|
|
@@ -62,6 +62,8 @@ $font-on-secondary-color-main: var(--font-on-secondary-color-main) !default;
|
|
|
62
62
|
$secondary-color: var(--secondary-color) !default;
|
|
63
63
|
$secondary-color-when-hovered-solid: var(--secondary-color-hover-solid) !default;
|
|
64
64
|
$secondary-color-when-focused-solid: var(--secondary-color-focus-solid) !default;
|
|
65
|
+
$secondary-container-color: var(--secondary-container-color) !default;
|
|
66
|
+
$font-on-secondary-container-color: var(--font-on-secondary-container-color) !default;
|
|
65
67
|
|
|
66
68
|
$success-color: color("green", "base") !default;
|
|
67
69
|
$error-color: var(--error-color) !default;
|
|
@@ -95,7 +97,7 @@ $button-raised-color: $font-on-primary-color-main !default;
|
|
|
95
97
|
$button-border: none !default;
|
|
96
98
|
$button-background-focus: $button-raised-background-focus !default;
|
|
97
99
|
$button-font-size: 14px !default;
|
|
98
|
-
$button-icon-font-size:
|
|
100
|
+
$button-icon-font-size: 18px !default;
|
|
99
101
|
$button-height: 40px !default;
|
|
100
102
|
$button-padding: 0 16px !default;
|
|
101
103
|
$button-radius: 4px !default;
|
|
@@ -114,6 +116,7 @@ $button-floating-large-size: 56px !default;
|
|
|
114
116
|
$button-small-font-size: 13px !default;
|
|
115
117
|
$button-small-icon-font-size: 1.2rem !default;
|
|
116
118
|
$button-small-height: $button-height * .75 !default;
|
|
119
|
+
$button-small-padding: 0 8px !default;
|
|
117
120
|
$button-floating-small-size: $button-height * .75 !default;
|
|
118
121
|
|
|
119
122
|
// Flat buttons
|
|
@@ -128,7 +131,7 @@ $button-floating-background-hover: $secondary-color-when-hovered-solid !default;
|
|
|
128
131
|
$button-floating-background-focus: $secondary-color-when-focused-solid !default;
|
|
129
132
|
$button-floating-color: $font-on-secondary-color-main !default;
|
|
130
133
|
$button-floating-size: 40px !default;
|
|
131
|
-
$button-floating-radius:
|
|
134
|
+
$button-floating-radius: 16px !default;
|
|
132
135
|
|
|
133
136
|
|
|
134
137
|
// 4. Cards
|