@materializecss/materialize 2.0.3-alpha → 2.0.3
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/README.md +1 -1
- package/dist/css/materialize.css +345 -236
- package/dist/css/materialize.min.css +2 -2
- package/dist/js/materialize.js +518 -1979
- package/dist/js/materialize.min.js +2 -2
- package/dist/js/materialize.min.js.map +1 -1
- package/dist/src/buttons.d.ts.map +1 -1
- package/dist/src/cards.d.ts.map +1 -1
- package/dist/src/collapsible.d.ts +1 -0
- package/dist/src/collapsible.d.ts.map +1 -1
- package/dist/src/dropdown.d.ts.map +1 -1
- package/dist/src/global.d.ts.map +1 -1
- package/dist/src/materialbox.d.ts +14 -10
- package/dist/src/materialbox.d.ts.map +1 -1
- package/dist/src/modal.d.ts.map +1 -1
- package/dist/src/range.d.ts.map +1 -1
- package/dist/src/scrollspy.d.ts.map +1 -1
- package/dist/src/sidenav.d.ts +25 -25
- package/dist/src/sidenav.d.ts.map +1 -1
- package/dist/src/slider.d.ts +12 -12
- package/dist/src/slider.d.ts.map +1 -1
- package/dist/src/tabs.d.ts +1 -1
- package/dist/src/tabs.d.ts.map +1 -1
- package/dist/src/toasts.d.ts +7 -2
- package/dist/src/toasts.d.ts.map +1 -1
- package/dist/src/tooltip.d.ts +8 -2
- package/dist/src/tooltip.d.ts.map +1 -1
- package/package.json +14 -13
- package/sass/components/_buttons.scss +158 -73
- package/sass/components/_chips.scss +75 -28
- package/sass/components/_collapsible.scss +14 -2
- package/sass/components/_global.scss +6 -94
- package/sass/components/_materialbox.scss +2 -2
- package/sass/components/_modal.scss +0 -1
- package/sass/components/_preloader.scss +85 -0
- package/sass/components/_tooltip.scss +18 -8
- package/sass/components/_variables.scss +5 -4
- package/sass/components/forms/_range.scss +1 -1
- package/sass/components/forms/_switches.scss +44 -14
- package/Gruntfile.js +0 -480
- package/src/autocomplete.ts +0 -553
- package/src/bounding.ts +0 -6
- package/src/buttons.ts +0 -260
- package/src/cards.ts +0 -53
- package/src/carousel.ts +0 -676
- package/src/characterCounter.ts +0 -117
- package/src/chips.ts +0 -439
- package/src/collapsible.ts +0 -249
- package/src/component.ts +0 -120
- package/src/datepicker.ts +0 -1076
- package/src/dropdown.ts +0 -644
- package/src/edges.ts +0 -6
- package/src/forms.ts +0 -132
- package/src/global.ts +0 -114
- package/src/index.ts +0 -26
- package/src/materialbox.ts +0 -404
- package/src/modal.ts +0 -341
- package/src/parallax.ts +0 -149
- package/src/pushpin.ts +0 -165
- package/src/range.ts +0 -198
- package/src/scrollspy.ts +0 -263
- package/src/select.ts +0 -484
- package/src/sidenav.ts +0 -543
- package/src/slider.ts +0 -474
- package/src/tabs.ts +0 -347
- package/src/tapTarget.ts +0 -273
- package/src/timepicker.ts +0 -832
- package/src/toasts.ts +0 -290
- package/src/tooltip.ts +0 -346
- package/src/utils.ts +0 -271
- package/src/waves.ts +0 -70
|
@@ -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.
|
|
@@ -1,21 +1,31 @@
|
|
|
1
1
|
.material-tooltip {
|
|
2
|
-
padding:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
padding: 0 8px;
|
|
3
|
+
border-radius: 4px;
|
|
4
|
+
|
|
5
|
+
background-color: $tooltip-bg-color;
|
|
6
6
|
color: $tooltip-font-color;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
|
|
8
|
+
font-family: var(--md-sys-typescale-body-small-font-family-name);
|
|
9
|
+
font-size: var(--md-sys-typescale-body-small-font-size);
|
|
10
|
+
line-height: var(--md-sys-typescale-body-small-line-height);
|
|
11
|
+
font-weight: var(--md-sys-typescale-body-small-font-weight);
|
|
12
|
+
|
|
13
|
+
min-height: 24px;
|
|
9
14
|
opacity: 0;
|
|
10
|
-
position: absolute;
|
|
11
15
|
text-align: center;
|
|
16
|
+
|
|
17
|
+
position: absolute;
|
|
12
18
|
max-width: calc(100% - 4px);
|
|
13
19
|
overflow: hidden;
|
|
14
20
|
left: 0;
|
|
15
21
|
top: 0;
|
|
16
22
|
pointer-events: none;
|
|
23
|
+
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
|
|
17
27
|
visibility: hidden;
|
|
18
|
-
|
|
28
|
+
z-index: 2000;
|
|
19
29
|
}
|
|
20
30
|
|
|
21
31
|
.backdrop {
|
|
@@ -97,7 +97,7 @@ $button-raised-color: $font-on-primary-color-main !default;
|
|
|
97
97
|
$button-border: none !default;
|
|
98
98
|
$button-background-focus: $button-raised-background-focus !default;
|
|
99
99
|
$button-font-size: 14px !default;
|
|
100
|
-
$button-icon-font-size:
|
|
100
|
+
$button-icon-font-size: 18px !default;
|
|
101
101
|
$button-height: 40px !default;
|
|
102
102
|
$button-padding: 0 16px !default;
|
|
103
103
|
$button-radius: 4px !default;
|
|
@@ -116,6 +116,7 @@ $button-floating-large-size: 56px !default;
|
|
|
116
116
|
$button-small-font-size: 13px !default;
|
|
117
117
|
$button-small-icon-font-size: 1.2rem !default;
|
|
118
118
|
$button-small-height: $button-height * .75 !default;
|
|
119
|
+
$button-small-padding: 0 8px !default;
|
|
119
120
|
$button-floating-small-size: $button-height * .75 !default;
|
|
120
121
|
|
|
121
122
|
// Flat buttons
|
|
@@ -130,7 +131,7 @@ $button-floating-background-hover: $secondary-color-when-hovered-solid !default;
|
|
|
130
131
|
$button-floating-background-focus: $secondary-color-when-focused-solid !default;
|
|
131
132
|
$button-floating-color: $font-on-secondary-color-main !default;
|
|
132
133
|
$button-floating-size: 40px !default;
|
|
133
|
-
$button-floating-radius:
|
|
134
|
+
$button-floating-radius: 16px !default;
|
|
134
135
|
|
|
135
136
|
|
|
136
137
|
// 4. Cards
|
|
@@ -358,8 +359,8 @@ $toast-action-color: #eeff41;
|
|
|
358
359
|
// 20. Tooltips
|
|
359
360
|
// ==========================================================================
|
|
360
361
|
|
|
361
|
-
$tooltip-bg-color: var(--
|
|
362
|
-
$tooltip-font-color: var(--
|
|
362
|
+
$tooltip-bg-color: var(--md-sys-color-inverse-surface) !default;
|
|
363
|
+
$tooltip-font-color: var(--md-sys-color-inverse-on-surface) !default;
|
|
363
364
|
|
|
364
365
|
|
|
365
366
|
// 21. Typography
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
/* Switch
|
|
2
2
|
========================================================================== */
|
|
3
3
|
|
|
4
|
+
.switch {
|
|
5
|
+
--track-height: 32px;
|
|
6
|
+
--track-width: 52px;
|
|
7
|
+
--border-width: 2px;
|
|
8
|
+
--size-off: 16px;
|
|
9
|
+
--size-on: 24px;
|
|
10
|
+
--icon-size: 16px;
|
|
11
|
+
--gap-on: calc(((var(--track-height) - var(--size-on)) / 2) - var(--border-width));
|
|
12
|
+
--gap-off: calc(((var(--track-height) - var(--size-off)) / 2) - var(--border-width));
|
|
13
|
+
}
|
|
14
|
+
|
|
4
15
|
.switch,
|
|
5
16
|
.switch * {
|
|
6
17
|
-webkit-tap-highlight-color: transparent;
|
|
@@ -16,17 +27,22 @@
|
|
|
16
27
|
width: 0;
|
|
17
28
|
height: 0;
|
|
18
29
|
|
|
30
|
+
// CHECKED
|
|
31
|
+
// Track
|
|
19
32
|
&:checked + .lever{
|
|
20
|
-
background-color:
|
|
33
|
+
background-color: var(--primary-color);
|
|
34
|
+
border-color: var(--primary-color);
|
|
21
35
|
}
|
|
22
|
-
|
|
36
|
+
// Dot
|
|
23
37
|
&:checked + .lever {
|
|
24
38
|
&:before, &:after {
|
|
25
|
-
|
|
39
|
+
top: var(--gap-on);
|
|
40
|
+
left: calc(var(--track-width) - var(--size-on) - var(--gap-on) - 2 * var(--border-width));
|
|
41
|
+
width: var(--size-on);
|
|
42
|
+
height: var(--size-on);
|
|
26
43
|
}
|
|
27
|
-
|
|
28
44
|
&:after {
|
|
29
|
-
|
|
45
|
+
@extend .surface;
|
|
30
46
|
}
|
|
31
47
|
}
|
|
32
48
|
}
|
|
@@ -35,30 +51,44 @@
|
|
|
35
51
|
content: "";
|
|
36
52
|
display: inline-block;
|
|
37
53
|
position: relative;
|
|
38
|
-
width:
|
|
39
|
-
height:
|
|
40
|
-
|
|
54
|
+
width: var(--track-width);
|
|
55
|
+
height: var(--track-height);
|
|
56
|
+
border-style: solid;
|
|
57
|
+
border-width: 2px;
|
|
58
|
+
border-color: var(--md-sys-color-outline);
|
|
59
|
+
|
|
60
|
+
//background-color: $switch-track-unchecked-bg;
|
|
61
|
+
@extend .surface-variant;
|
|
62
|
+
|
|
41
63
|
border-radius: $switch-radius;
|
|
42
64
|
margin-right: 10px;
|
|
43
65
|
transition: background 0.3s ease;
|
|
44
66
|
vertical-align: middle;
|
|
45
67
|
margin: 0 16px;
|
|
46
68
|
|
|
69
|
+
// DOT
|
|
47
70
|
&:before, &:after {
|
|
48
71
|
content: "";
|
|
49
72
|
position: absolute;
|
|
50
73
|
display: inline-block;
|
|
51
|
-
width:
|
|
52
|
-
height:
|
|
74
|
+
width: var(--size-off);
|
|
75
|
+
height: var(--size-off);
|
|
53
76
|
border-radius: 50%;
|
|
54
|
-
|
|
55
|
-
|
|
77
|
+
|
|
78
|
+
left: var(--gap-off);
|
|
79
|
+
top: var(--gap-off);
|
|
80
|
+
|
|
56
81
|
transition: left 0.3s ease, background .3s ease, box-shadow 0.1s ease, transform .1s ease;
|
|
57
82
|
}
|
|
58
83
|
|
|
84
|
+
// NOT CHECKED [DOT]
|
|
59
85
|
&:after {
|
|
60
|
-
|
|
61
|
-
|
|
86
|
+
@extend .outline;
|
|
87
|
+
height: var(--size-off);
|
|
88
|
+
width: var(--size-off);
|
|
89
|
+
|
|
90
|
+
//@extend .surface-variant;
|
|
91
|
+
//box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
|
|
62
92
|
}
|
|
63
93
|
}
|
|
64
94
|
|