@materializecss/materialize 1.2.0 → 1.2.2

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 (82) hide show
  1. package/Gruntfile.js +722 -712
  2. package/LICENSE +21 -21
  3. package/README.md +91 -91
  4. package/dist/css/materialize.css +78 -137
  5. package/dist/css/materialize.min.css +12 -12
  6. package/dist/js/materialize.js +1502 -1378
  7. package/dist/js/materialize.min.js +6 -6
  8. package/extras/noUiSlider/nouislider.css +403 -403
  9. package/extras/noUiSlider/nouislider.js +2147 -2147
  10. package/js/anime.min.js +34 -34
  11. package/js/autocomplete.js +479 -479
  12. package/js/buttons.js +354 -354
  13. package/js/cards.js +40 -40
  14. package/js/carousel.js +732 -732
  15. package/js/cash.js +960 -960
  16. package/js/characterCounter.js +136 -136
  17. package/js/chips.js +486 -486
  18. package/js/collapsible.js +275 -275
  19. package/js/component.js +44 -44
  20. package/js/datepicker.js +983 -983
  21. package/js/dropdown.js +669 -669
  22. package/js/forms.js +285 -285
  23. package/js/global.js +428 -428
  24. package/js/materialbox.js +453 -453
  25. package/js/modal.js +382 -382
  26. package/js/parallax.js +138 -138
  27. package/js/pushpin.js +148 -148
  28. package/js/range.js +263 -263
  29. package/js/scrollspy.js +295 -295
  30. package/js/select.js +391 -391
  31. package/js/sidenav.js +583 -583
  32. package/js/slider.js +497 -359
  33. package/js/tabs.js +402 -402
  34. package/js/tapTarget.js +315 -315
  35. package/js/timepicker.js +712 -712
  36. package/js/toasts.js +325 -325
  37. package/js/tooltip.js +320 -320
  38. package/js/waves.js +614 -614
  39. package/package.json +87 -84
  40. package/sass/components/_badges.scss +55 -55
  41. package/sass/components/_buttons.scss +322 -322
  42. package/sass/components/_cards.scss +195 -195
  43. package/sass/components/_carousel.scss +90 -90
  44. package/sass/components/_chips.scss +96 -96
  45. package/sass/components/_collapsible.scss +91 -91
  46. package/sass/components/_collection.scss +106 -106
  47. package/sass/components/_color-classes.scss +32 -32
  48. package/sass/components/_color-variables.scss +370 -370
  49. package/sass/components/_datepicker.scss +191 -191
  50. package/sass/components/_dropdown.scss +84 -84
  51. package/sass/components/_global.scss +646 -646
  52. package/sass/components/_grid.scss +158 -158
  53. package/sass/components/_icons-material-design.scss +5 -5
  54. package/sass/components/_materialbox.scss +42 -42
  55. package/sass/components/_modal.scss +97 -97
  56. package/sass/components/_navbar.scss +208 -208
  57. package/sass/components/_normalize.scss +447 -447
  58. package/sass/components/_preloader.scss +334 -334
  59. package/sass/components/_pulse.scss +34 -34
  60. package/sass/components/_sidenav.scss +214 -214
  61. package/sass/components/_slider.scss +100 -91
  62. package/sass/components/_table_of_contents.scss +33 -33
  63. package/sass/components/_tabs.scss +99 -99
  64. package/sass/components/_tapTarget.scss +103 -103
  65. package/sass/components/_timepicker.scss +199 -199
  66. package/sass/components/_toast.scss +58 -58
  67. package/sass/components/_tooltip.scss +32 -32
  68. package/sass/components/_transitions.scss +12 -12
  69. package/sass/components/_typography.scss +62 -62
  70. package/sass/components/_variables.scss +352 -352
  71. package/sass/components/_waves.scss +187 -187
  72. package/sass/components/forms/_checkboxes.scss +200 -200
  73. package/sass/components/forms/_file-input.scss +44 -44
  74. package/sass/components/forms/_forms.scss +22 -22
  75. package/sass/components/forms/_input-fields.scss +388 -388
  76. package/sass/components/forms/_radio-buttons.scss +115 -115
  77. package/sass/components/forms/_range.scss +161 -161
  78. package/sass/components/forms/_select.scss +199 -199
  79. package/sass/components/forms/_switches.scss +91 -91
  80. package/sass/materialize.scss +42 -42
  81. package/sass/_style.scss +0 -929
  82. package/sass/ghpages-materialize.scss +0 -7
@@ -1,96 +1,96 @@
1
- .chip {
2
- &:focus {
3
- outline: none;
4
- background-color: $chip-selected-color;
5
- color: #fff;
6
- }
7
-
8
- display: inline-block;
9
- height: 32px;
10
- font-size: 13px;
11
- font-weight: 500;
12
- color: rgba(0,0,0,.6);
13
- line-height: 32px;
14
- padding: 0 12px;
15
- border-radius: 16px;
16
- background-color: $chip-bg-color;
17
- margin-bottom: $chip-margin;
18
- margin-right: $chip-margin;
19
-
20
- > img {
21
- float: left;
22
- margin: 0 8px 0 -12px;
23
- height: 32px;
24
- width: 32px;
25
- border-radius: 50%;
26
- }
27
-
28
- .close {
29
- cursor: pointer;
30
- float: right;
31
- font-size: 16px;
32
- line-height: 32px;
33
- padding-left: 8px;
34
- }
35
- }
36
-
37
- .chips {
38
- border: none;
39
- border-bottom: 1px solid $chip-border-color;
40
- box-shadow: none;
41
- margin: $input-margin;
42
- min-height: 45px;
43
- outline: none;
44
- transition: all .3s;
45
-
46
- &.focus {
47
- border-bottom: 1px solid $chip-selected-color;
48
- box-shadow: 0 1px 0 0 $chip-selected-color;
49
- }
50
-
51
- &:hover {
52
- cursor: text;
53
- }
54
-
55
- input:not([type]):not(.browser-default).input {
56
- background: none;
57
- border: 0;
58
- color: rgba(0,0,0,.6);
59
- display: inline-block;
60
- font-size: $input-font-size;
61
- height: $input-height;
62
- line-height: 32px;
63
- outline: 0;
64
- margin: 0;
65
- padding: 0;
66
- width: 120px;
67
-
68
- &:focus {
69
- border: 0;
70
- box-shadow: none;
71
- }
72
- }
73
-
74
- // Autocomplete
75
- .autocomplete-content {
76
- margin-top: 0;
77
- margin-bottom: 0;
78
- }
79
- }
80
-
81
- // Form prefix
82
- .prefix ~ .chips {
83
- margin-left: 3rem;
84
- width: 92%;
85
- width: calc(100% - 3rem);
86
- }
87
- // Form suffix
88
- .suffix ~ .chips {
89
- margin-right: 3rem;
90
- width: 92%;
91
- width: calc(100% - 3rem);
92
- }
93
- .chips:empty ~ label {
94
- font-size: 0.8rem;
95
- transform: translateY(-140%);
96
- }
1
+ .chip {
2
+ &:focus {
3
+ outline: none;
4
+ background-color: $chip-selected-color;
5
+ color: #fff;
6
+ }
7
+
8
+ display: inline-block;
9
+ height: 32px;
10
+ font-size: 13px;
11
+ font-weight: 500;
12
+ color: rgba(0,0,0,.6);
13
+ line-height: 32px;
14
+ padding: 0 12px;
15
+ border-radius: 16px;
16
+ background-color: $chip-bg-color;
17
+ margin-bottom: $chip-margin;
18
+ margin-right: $chip-margin;
19
+
20
+ > img {
21
+ float: left;
22
+ margin: 0 8px 0 -12px;
23
+ height: 32px;
24
+ width: 32px;
25
+ border-radius: 50%;
26
+ }
27
+
28
+ .close {
29
+ cursor: pointer;
30
+ float: right;
31
+ font-size: 16px;
32
+ line-height: 32px;
33
+ padding-left: 8px;
34
+ }
35
+ }
36
+
37
+ .chips {
38
+ border: none;
39
+ border-bottom: 1px solid $chip-border-color;
40
+ box-shadow: none;
41
+ margin: $input-margin;
42
+ min-height: 45px;
43
+ outline: none;
44
+ transition: all .3s;
45
+
46
+ &.focus {
47
+ border-bottom: 1px solid $chip-selected-color;
48
+ box-shadow: 0 1px 0 0 $chip-selected-color;
49
+ }
50
+
51
+ &:hover {
52
+ cursor: text;
53
+ }
54
+
55
+ input:not([type]):not(.browser-default).input {
56
+ background: none;
57
+ border: 0;
58
+ color: rgba(0,0,0,.6);
59
+ display: inline-block;
60
+ font-size: $input-font-size;
61
+ height: $input-height;
62
+ line-height: 32px;
63
+ outline: 0;
64
+ margin: 0;
65
+ padding: 0;
66
+ width: 120px;
67
+
68
+ &:focus {
69
+ border: 0;
70
+ box-shadow: none;
71
+ }
72
+ }
73
+
74
+ // Autocomplete
75
+ .autocomplete-content {
76
+ margin-top: 0;
77
+ margin-bottom: 0;
78
+ }
79
+ }
80
+
81
+ // Form prefix
82
+ .prefix ~ .chips {
83
+ margin-left: 3rem;
84
+ width: 92%;
85
+ width: calc(100% - 3rem);
86
+ }
87
+ // Form suffix
88
+ .suffix ~ .chips {
89
+ margin-right: 3rem;
90
+ width: 92%;
91
+ width: calc(100% - 3rem);
92
+ }
93
+ .chips:empty ~ label {
94
+ font-size: 0.8rem;
95
+ transform: translateY(-140%);
96
+ }
@@ -1,91 +1,91 @@
1
- .collapsible {
2
- border-top: 1px solid $collapsible-border-color;
3
- border-right: 1px solid $collapsible-border-color;
4
- border-left: 1px solid $collapsible-border-color;
5
- margin: $element-top-margin 0 $element-bottom-margin 0;
6
- @extend .z-depth-1;
7
- }
8
-
9
- .collapsible-header {
10
- &:focus {
11
- outline: 0
12
- }
13
-
14
- display: flex;
15
- cursor: pointer;
16
- -webkit-tap-highlight-color: transparent;
17
- line-height: 1.5;
18
- padding: 1rem;
19
- background-color: $collapsible-header-color;
20
- border-bottom: 1px solid $collapsible-border-color;
21
-
22
- i {
23
- width: 2rem;
24
- font-size: 1.6rem;
25
- display: inline-block;
26
- text-align: center;
27
- margin-right: 1rem;
28
- }
29
- }
30
- .keyboard-focused .collapsible-header:focus {
31
- background-color: #eee;
32
- }
33
-
34
- .collapsible-body {
35
- display: none;
36
- border-bottom: 1px solid $collapsible-border-color;
37
- box-sizing: border-box;
38
- padding: 2rem;
39
- }
40
-
41
- // Sidenav collapsible styling
42
- .sidenav,
43
- .sidenav.sidenav-fixed {
44
-
45
- .collapsible {
46
- border: none;
47
- box-shadow: none;
48
-
49
- li { padding: 0; }
50
- }
51
-
52
- .collapsible-header {
53
- background-color: transparent;
54
- border: none;
55
- line-height: inherit;
56
- height: inherit;
57
- padding: 0 $sidenav-padding;
58
-
59
- &:hover { background-color: rgba(0,0,0,.05); }
60
- i { line-height: inherit; }
61
- }
62
-
63
- .collapsible-body {
64
- border: 0;
65
- background-color: $collapsible-header-color;
66
-
67
- li a {
68
- padding: 0 (7.5px + $sidenav-padding)
69
- 0 (15px + $sidenav-padding);
70
- }
71
- }
72
-
73
- }
74
-
75
- // Popout Collapsible
76
-
77
- .collapsible.popout {
78
- border: none;
79
- box-shadow: none;
80
- > li {
81
- box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
82
- // transform: scaleX(.92);
83
- margin: 0 24px;
84
- transition: margin .35s cubic-bezier(0.250, 0.460, 0.450, 0.940);
85
- }
86
- > li.active {
87
- box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
88
- margin: 16px 0;
89
- // transform: scaleX(1);
90
- }
91
- }
1
+ .collapsible {
2
+ border-top: 1px solid $collapsible-border-color;
3
+ border-right: 1px solid $collapsible-border-color;
4
+ border-left: 1px solid $collapsible-border-color;
5
+ margin: $element-top-margin 0 $element-bottom-margin 0;
6
+ @extend .z-depth-1;
7
+ }
8
+
9
+ .collapsible-header {
10
+ &:focus {
11
+ outline: 0
12
+ }
13
+
14
+ display: flex;
15
+ cursor: pointer;
16
+ -webkit-tap-highlight-color: transparent;
17
+ line-height: 1.5;
18
+ padding: 1rem;
19
+ background-color: $collapsible-header-color;
20
+ border-bottom: 1px solid $collapsible-border-color;
21
+
22
+ i {
23
+ width: 2rem;
24
+ font-size: 1.6rem;
25
+ display: inline-block;
26
+ text-align: center;
27
+ margin-right: 1rem;
28
+ }
29
+ }
30
+ .keyboard-focused .collapsible-header:focus {
31
+ background-color: #eee;
32
+ }
33
+
34
+ .collapsible-body {
35
+ display: none;
36
+ border-bottom: 1px solid $collapsible-border-color;
37
+ box-sizing: border-box;
38
+ padding: 2rem;
39
+ }
40
+
41
+ // Sidenav collapsible styling
42
+ .sidenav,
43
+ .sidenav.sidenav-fixed {
44
+
45
+ .collapsible {
46
+ border: none;
47
+ box-shadow: none;
48
+
49
+ li { padding: 0; }
50
+ }
51
+
52
+ .collapsible-header {
53
+ background-color: transparent;
54
+ border: none;
55
+ line-height: inherit;
56
+ height: inherit;
57
+ padding: 0 $sidenav-padding;
58
+
59
+ &:hover { background-color: rgba(0,0,0,.05); }
60
+ i { line-height: inherit; }
61
+ }
62
+
63
+ .collapsible-body {
64
+ border: 0;
65
+ background-color: $collapsible-header-color;
66
+
67
+ li a {
68
+ padding: 0 (7.5px + $sidenav-padding)
69
+ 0 (15px + $sidenav-padding);
70
+ }
71
+ }
72
+
73
+ }
74
+
75
+ // Popout Collapsible
76
+
77
+ .collapsible.popout {
78
+ border: none;
79
+ box-shadow: none;
80
+ > li {
81
+ box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
82
+ // transform: scaleX(.92);
83
+ margin: 0 24px;
84
+ transition: margin .35s cubic-bezier(0.250, 0.460, 0.450, 0.940);
85
+ }
86
+ > li.active {
87
+ box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
88
+ margin: 16px 0;
89
+ // transform: scaleX(1);
90
+ }
91
+ }
@@ -1,107 +1,107 @@
1
-
2
- // Collections
3
- .collection {
4
- margin: $element-top-margin 0 $element-bottom-margin 0;
5
- border: 1px solid $collection-border-color;
6
- border-radius: $collection-border-radius;
7
- overflow: hidden;
8
- position: relative;
9
-
10
- .collection-item {
11
- background-color: $collection-bg-color;
12
- line-height: $collection-line-height;
13
- padding: 10px 20px;
14
- margin: 0;
15
- border-bottom: 1px solid $collection-border-color;
16
-
17
- // Avatar Collection
18
- &.avatar {
19
- min-height: 84px;
20
- padding-left: 72px;
21
- position: relative;
22
-
23
- // Don't style circles inside preloader classes.
24
- &:not(.circle-clipper) > .circle,
25
- :not(.circle-clipper) > .circle {
26
- position: absolute;
27
- width: 42px;
28
- height: 42px;
29
- overflow: hidden;
30
- left: 15px;
31
- display: inline-block;
32
- vertical-align: middle;
33
- }
34
- i.circle {
35
- font-size: 18px;
36
- line-height: 42px;
37
- color: #fff;
38
- background-color: #999;
39
- text-align: center;
40
- }
41
-
42
-
43
- .title {
44
- font-size: 16px;
45
- }
46
-
47
- p {
48
- margin: 0;
49
- }
50
-
51
- .secondary-content {
52
- position: absolute;
53
- top: 16px;
54
- right: 16px;
55
- }
56
-
57
- }
58
-
59
-
60
- &:last-child {
61
- border-bottom: none;
62
- }
63
-
64
- &.active {
65
- background-color: $collection-active-bg-color;
66
- color: $collection-active-color;
67
-
68
- .secondary-content {
69
- color: #fff;
70
- }
71
- }
72
- }
73
- a.collection-item{
74
- display: block;
75
- transition: .25s;
76
- color: $collection-link-color;
77
- &:not(.active) {
78
- &:hover {
79
- background-color: $collection-hover-bg-color;
80
- }
81
- }
82
- }
83
-
84
- &.with-header {
85
- .collection-header {
86
- background-color: $collection-bg-color;
87
- border-bottom: 1px solid $collection-border-color;
88
- padding: 10px 20px;
89
- }
90
- .collection-item {
91
- padding-left: 30px;
92
- }
93
- .collection-item.avatar {
94
- padding-left: 72px;
95
- }
96
- }
97
-
98
- }
99
- // Made less specific to allow easier overriding
100
- .secondary-content {
101
- float: right;
102
- color: $secondary-color;
103
- }
104
- .collapsible .collection {
105
- margin: 0;
106
- border: none;
1
+
2
+ // Collections
3
+ .collection {
4
+ margin: $element-top-margin 0 $element-bottom-margin 0;
5
+ border: 1px solid $collection-border-color;
6
+ border-radius: $collection-border-radius;
7
+ overflow: hidden;
8
+ position: relative;
9
+
10
+ .collection-item {
11
+ background-color: $collection-bg-color;
12
+ line-height: $collection-line-height;
13
+ padding: 10px 20px;
14
+ margin: 0;
15
+ border-bottom: 1px solid $collection-border-color;
16
+
17
+ // Avatar Collection
18
+ &.avatar {
19
+ min-height: 84px;
20
+ padding-left: 72px;
21
+ position: relative;
22
+
23
+ // Don't style circles inside preloader classes.
24
+ &:not(.circle-clipper) > .circle,
25
+ :not(.circle-clipper) > .circle {
26
+ position: absolute;
27
+ width: 42px;
28
+ height: 42px;
29
+ overflow: hidden;
30
+ left: 15px;
31
+ display: inline-block;
32
+ vertical-align: middle;
33
+ }
34
+ i.circle {
35
+ font-size: 18px;
36
+ line-height: 42px;
37
+ color: #fff;
38
+ background-color: #999;
39
+ text-align: center;
40
+ }
41
+
42
+
43
+ .title {
44
+ font-size: 16px;
45
+ }
46
+
47
+ p {
48
+ margin: 0;
49
+ }
50
+
51
+ .secondary-content {
52
+ position: absolute;
53
+ top: 16px;
54
+ right: 16px;
55
+ }
56
+
57
+ }
58
+
59
+
60
+ &:last-child {
61
+ border-bottom: none;
62
+ }
63
+
64
+ &.active {
65
+ background-color: $collection-active-bg-color;
66
+ color: $collection-active-color;
67
+
68
+ .secondary-content {
69
+ color: #fff;
70
+ }
71
+ }
72
+ }
73
+ a.collection-item{
74
+ display: block;
75
+ transition: .25s;
76
+ color: $collection-link-color;
77
+ &:not(.active) {
78
+ &:hover {
79
+ background-color: $collection-hover-bg-color;
80
+ }
81
+ }
82
+ }
83
+
84
+ &.with-header {
85
+ .collection-header {
86
+ background-color: $collection-bg-color;
87
+ border-bottom: 1px solid $collection-border-color;
88
+ padding: 10px 20px;
89
+ }
90
+ .collection-item {
91
+ padding-left: 30px;
92
+ }
93
+ .collection-item.avatar {
94
+ padding-left: 72px;
95
+ }
96
+ }
97
+
98
+ }
99
+ // Made less specific to allow easier overriding
100
+ .secondary-content {
101
+ float: right;
102
+ color: $secondary-color;
103
+ }
104
+ .collapsible .collection {
105
+ margin: 0;
106
+ border: none;
107
107
  }
@@ -1,32 +1,32 @@
1
- // Color Classes
2
-
3
- @each $color_name, $color in $colors {
4
- @each $color_type, $color_value in $color {
5
- @if $color_type == "base" {
6
- .#{$color_name} {
7
- background-color: $color_value !important;
8
- }
9
- .#{$color_name}-text {
10
- color: $color_value !important;
11
- }
12
- }
13
- @else if $color_name != "shades" {
14
- .#{$color_name}.#{$color_type} {
15
- background-color: $color_value !important;
16
- }
17
- .#{$color_name}-text.text-#{$color_type} {
18
- color: $color_value !important;
19
- }
20
- }
21
- }
22
- }
23
-
24
- // Shade classes
25
- @each $color, $color_value in $shades {
26
- .#{$color} {
27
- background-color: $color_value !important;
28
- }
29
- .#{$color}-text {
30
- color: $color_value !important;
31
- }
32
- }
1
+ // Color Classes
2
+
3
+ @each $color_name, $color in $colors {
4
+ @each $color_type, $color_value in $color {
5
+ @if $color_type == "base" {
6
+ .#{$color_name} {
7
+ background-color: $color_value !important;
8
+ }
9
+ .#{$color_name}-text {
10
+ color: $color_value !important;
11
+ }
12
+ }
13
+ @else if $color_name != "shades" {
14
+ .#{$color_name}.#{$color_type} {
15
+ background-color: $color_value !important;
16
+ }
17
+ .#{$color_name}-text.text-#{$color_type} {
18
+ color: $color_value !important;
19
+ }
20
+ }
21
+ }
22
+ }
23
+
24
+ // Shade classes
25
+ @each $color, $color_value in $shades {
26
+ .#{$color} {
27
+ background-color: $color_value !important;
28
+ }
29
+ .#{$color}-text {
30
+ color: $color_value !important;
31
+ }
32
+ }