dae-material 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +3 -0
  5. data/CODE_OF_CONDUCT.md +13 -0
  6. data/Gemfile +4 -0
  7. data/README.md +39 -0
  8. data/Rakefile +1 -0
  9. data/app/assets/fonts/material-design-icons/LICENSE.txt +428 -0
  10. data/app/assets/fonts/material-design-icons/Material-Design-Icons.eot +0 -0
  11. data/app/assets/fonts/material-design-icons/Material-Design-Icons.svg +751 -0
  12. data/app/assets/fonts/material-design-icons/Material-Design-Icons.ttf +0 -0
  13. data/app/assets/fonts/material-design-icons/Material-Design-Icons.woff +0 -0
  14. data/app/assets/fonts/material-design-icons/Material-Design-Icons.woff2 +0 -0
  15. data/app/assets/fonts/roboto/Roboto-Bold.ttf +0 -0
  16. data/app/assets/fonts/roboto/Roboto-Bold.woff +0 -0
  17. data/app/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
  18. data/app/assets/fonts/roboto/Roboto-Light.ttf +0 -0
  19. data/app/assets/fonts/roboto/Roboto-Light.woff +0 -0
  20. data/app/assets/fonts/roboto/Roboto-Light.woff2 +0 -0
  21. data/app/assets/fonts/roboto/Roboto-Medium.ttf +0 -0
  22. data/app/assets/fonts/roboto/Roboto-Medium.woff +0 -0
  23. data/app/assets/fonts/roboto/Roboto-Medium.woff2 +0 -0
  24. data/app/assets/fonts/roboto/Roboto-Regular.ttf +0 -0
  25. data/app/assets/fonts/roboto/Roboto-Regular.woff +0 -0
  26. data/app/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
  27. data/app/assets/fonts/roboto/Roboto-Thin.ttf +0 -0
  28. data/app/assets/fonts/roboto/Roboto-Thin.woff +0 -0
  29. data/app/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
  30. data/app/assets/javascripts/materialize-sprockets.js +27 -0
  31. data/app/assets/javascripts/materialize.js +6023 -0
  32. data/app/assets/javascripts/materialize/animation.js +9 -0
  33. data/app/assets/javascripts/materialize/buttons.js +35 -0
  34. data/app/assets/javascripts/materialize/cards.js +27 -0
  35. data/app/assets/javascripts/materialize/character_counter.js +59 -0
  36. data/app/assets/javascripts/materialize/collapsible.js +139 -0
  37. data/app/assets/javascripts/materialize/date_picker/picker.date.js +1430 -0
  38. data/app/assets/javascripts/materialize/date_picker/picker.js +1123 -0
  39. data/app/assets/javascripts/materialize/dropdown.js +176 -0
  40. data/app/assets/javascripts/materialize/forms.js +397 -0
  41. data/app/assets/javascripts/materialize/global.js +31 -0
  42. data/app/assets/javascripts/materialize/hammer.min.js +1 -0
  43. data/app/assets/javascripts/materialize/init.js +137 -0
  44. data/app/assets/javascripts/materialize/jquery.easing.1.3.js +205 -0
  45. data/app/assets/javascripts/materialize/jquery.hammer.js +33 -0
  46. data/app/assets/javascripts/materialize/jquery.timeago.min.js +1 -0
  47. data/app/assets/javascripts/materialize/leanModal.js +139 -0
  48. data/app/assets/javascripts/materialize/materialbox.js +249 -0
  49. data/app/assets/javascripts/materialize/parallax.js +58 -0
  50. data/app/assets/javascripts/materialize/prism.js +8 -0
  51. data/app/assets/javascripts/materialize/pushpin.js +62 -0
  52. data/app/assets/javascripts/materialize/scrollFire.js +69 -0
  53. data/app/assets/javascripts/materialize/scrollspy.js +284 -0
  54. data/app/assets/javascripts/materialize/sideNav.js +335 -0
  55. data/app/assets/javascripts/materialize/slider.js +263 -0
  56. data/app/assets/javascripts/materialize/tabs.js +129 -0
  57. data/app/assets/javascripts/materialize/toasts.js +121 -0
  58. data/app/assets/javascripts/materialize/tooltip.js +166 -0
  59. data/app/assets/javascripts/materialize/transitions.js +145 -0
  60. data/app/assets/javascripts/materialize/velocity.min.js +4 -0
  61. data/app/assets/javascripts/materialize/waves.js +338 -0
  62. data/app/assets/stylesheets/materialize.scss +38 -0
  63. data/app/assets/stylesheets/materialize/components/_buttons.scss +151 -0
  64. data/app/assets/stylesheets/materialize/components/_cards.scss +150 -0
  65. data/app/assets/stylesheets/materialize/components/_collapsible.scss +88 -0
  66. data/app/assets/stylesheets/materialize/components/_color.scss +412 -0
  67. data/app/assets/stylesheets/materialize/components/_dropdown.scss +38 -0
  68. data/app/assets/stylesheets/materialize/components/_form.scss +850 -0
  69. data/app/assets/stylesheets/materialize/components/_global.scss +682 -0
  70. data/app/assets/stylesheets/materialize/components/_grid.scss +118 -0
  71. data/app/assets/stylesheets/materialize/components/_icons-material-design.scss +783 -0
  72. data/app/assets/stylesheets/materialize/components/_materialbox.scss +41 -0
  73. data/app/assets/stylesheets/materialize/components/_mixins.scss +5 -0
  74. data/app/assets/stylesheets/materialize/components/_modal.scss +89 -0
  75. data/app/assets/stylesheets/materialize/components/_navbar.scss +143 -0
  76. data/app/assets/stylesheets/materialize/components/_normalize.scss +427 -0
  77. data/app/assets/stylesheets/materialize/components/_prefixer.scss +376 -0
  78. data/app/assets/stylesheets/materialize/components/_preloader.scss +332 -0
  79. data/app/assets/stylesheets/materialize/components/_roboto.scss +38 -0
  80. data/app/assets/stylesheets/materialize/components/_sideNav.scss +111 -0
  81. data/app/assets/stylesheets/materialize/components/_slider.scss +92 -0
  82. data/app/assets/stylesheets/materialize/components/_table_of_contents.scss +33 -0
  83. data/app/assets/stylesheets/materialize/components/_tabs.scss +42 -0
  84. data/app/assets/stylesheets/materialize/components/_toast.scss +63 -0
  85. data/app/assets/stylesheets/materialize/components/_tooltip.scss +34 -0
  86. data/app/assets/stylesheets/materialize/components/_typography.scss +56 -0
  87. data/app/assets/stylesheets/materialize/components/_variables.scss +143 -0
  88. data/app/assets/stylesheets/materialize/components/_waves.scss +167 -0
  89. data/app/assets/stylesheets/materialize/components/date_picker/_default.date.scss +435 -0
  90. data/app/assets/stylesheets/materialize/components/date_picker/_default.scss +201 -0
  91. data/app/assets/stylesheets/materialize/components/date_picker/_default.time.scss +125 -0
  92. data/bin/console +14 -0
  93. data/bin/setup +7 -0
  94. data/dae-material.gemspec +23 -0
  95. data/lib/dae/material.rb +7 -0
  96. data/lib/dae/material/version.rb +8 -0
  97. metadata +166 -0
@@ -0,0 +1,38 @@
1
+ @charset "UTF-8";
2
+
3
+ // Mixins
4
+ @import "materialize/components/prefixer";
5
+ @import "materialize/components/mixins";
6
+ @import "materialize/components/color";
7
+
8
+ // Variables;
9
+ @import "materialize/components/variables";
10
+
11
+ // Reset
12
+ @import "materialize/components/normalize";
13
+
14
+ // materialize/components
15
+ @import "materialize/components/global";
16
+ @import "materialize/components/icons-material-design";
17
+ @import "materialize/components/grid";
18
+ @import "materialize/components/navbar";
19
+ @import "materialize/components/roboto";
20
+ @import "materialize/components/typography";
21
+ @import "materialize/components/cards";
22
+ @import "materialize/components/toast";
23
+ @import "materialize/components/tabs";
24
+ @import "materialize/components/tooltip";
25
+ @import "materialize/components/buttons";
26
+ @import "materialize/components/dropdown";
27
+ @import "materialize/components/waves";
28
+ @import "materialize/components/modal";
29
+ @import "materialize/components/collapsible";
30
+ @import "materialize/components/materialbox";
31
+ @import "materialize/components/form";
32
+ @import "materialize/components/table_of_contents";
33
+ @import "materialize/components/sideNav";
34
+ @import "materialize/components/preloader";
35
+ @import "materialize/components/slider";
36
+ @import "materialize/components/date_picker/default.scss";
37
+ @import "materialize/components/date_picker/default.date.scss";
38
+ @import "materialize/components/date_picker/default.time.scss";
@@ -0,0 +1,151 @@
1
+ // shared styles
2
+ .btn, .btn-flat {
3
+ border: none;
4
+ border-radius: 2px;
5
+ display: inline-block;
6
+ height: $button-height;
7
+ line-height: $button-line-height;
8
+ // margin-bottom: 15px;
9
+ outline: 0;
10
+ padding: 0 2rem;
11
+ text-transform: uppercase;
12
+ vertical-align: middle;
13
+ // Gets rid of tap active state
14
+ -webkit-tap-highlight-color: transparent;
15
+ }
16
+ // Disabled shared style
17
+ .btn.disabled, .btn-floating.disabled, .btn-large.disabled, .btn:disabled, .btn-large:disabled, .btn-floating:disabled {
18
+ background-color: $button-bg-color-disabled;
19
+ box-shadow: none;
20
+ color: $button-color-disabled;
21
+ cursor: default;
22
+ * {
23
+ pointer-events: none;
24
+ }
25
+
26
+ &:hover {
27
+ background-color: $button-bg-color-disabled;
28
+ color: $button-color-disabled;
29
+ }
30
+ }
31
+ // Shared icon styles
32
+ .btn, .btn-floating, .btn-large, .btn-flat {
33
+ i {
34
+ font-size: $button-font-size-shared;
35
+ line-height: inherit;
36
+ }
37
+ }
38
+
39
+ // Raised Button
40
+ .btn {
41
+ text-decoration:none;
42
+ color: $button-color-raised;
43
+ background-color: $button-color;
44
+ text-align: center;
45
+ letter-spacing: .5px;
46
+ @extend .z-depth-1;
47
+ @include transition(.2s ease-out);
48
+ cursor: pointer;
49
+
50
+ &:hover {
51
+ background-color: lighten($button-color, 5%);
52
+ @extend .z-depth-1-half;
53
+ }
54
+ }
55
+
56
+ // Floating button
57
+ .btn-floating {
58
+ display: inline-block;
59
+ color: $button-color-raised;
60
+ position: relative;
61
+ overflow: hidden;
62
+ z-index: 1;
63
+ width: $button-floating-size;
64
+ height: $button-floating-size;
65
+ line-height: $button-floating-size;
66
+ padding: 0;
67
+ background-color: $button-color;
68
+ border-radius: 50%;
69
+ @extend .z-depth-1;
70
+ transition: .3s;
71
+ cursor: pointer;
72
+ vertical-align: middle;
73
+
74
+ i {
75
+ width: inherit;
76
+ display: inline-block;
77
+ text-align: center;
78
+ color: $button-color-raised;
79
+ font-size: 1.6rem;
80
+ line-height: $button-floating-size;
81
+ }
82
+
83
+ &:hover {
84
+ @extend .z-depth-1-half;
85
+ }
86
+ &:before {
87
+ border-radius: 0;
88
+ }
89
+ &.btn-large {
90
+ width: $button-floating-size * 1.5;
91
+ height: $button-floating-size * 1.5;
92
+ i{
93
+ line-height: $button-floating-size * 1.5;
94
+ }
95
+ }
96
+
97
+ }
98
+ // button fix
99
+ button.btn-floating {
100
+ border: none;
101
+ }
102
+
103
+ // Fixed Action Button
104
+ .fixed-action-btn {
105
+ position: fixed;
106
+ right: 23px;
107
+ bottom: 23px;
108
+ padding-top: 15px;
109
+ margin-bottom: 0;
110
+ z-index: 998;
111
+
112
+ ul {
113
+ left: 0;
114
+ right: 0;
115
+ text-align: center;
116
+ position: absolute;
117
+ bottom: 64px;
118
+
119
+ li {
120
+ margin-bottom: 15px;
121
+ }
122
+
123
+ a.btn-floating {
124
+ opacity: 0;
125
+ }
126
+ }
127
+ }
128
+
129
+ // Flat button
130
+ .btn-flat {
131
+ box-shadow: none;
132
+ background-color: transparent;
133
+ color: $button-color-flat;
134
+ cursor: pointer;
135
+
136
+ &.disabled {
137
+ color: lighten(#999, 10%);
138
+ cursor: default;
139
+ }
140
+ }
141
+
142
+ // Large button
143
+ .btn-large {
144
+ @extend .btn;
145
+ height: $button-height * 1.5;
146
+ line-height: 56px;
147
+
148
+ i {
149
+ font-size: 1.6rem;
150
+ }
151
+ }
@@ -0,0 +1,150 @@
1
+
2
+
3
+ .card-panel {
4
+ padding: $card-padding;
5
+ margin: $element-top-margin 0 $element-bottom-margin 0;
6
+ border-radius: 2px;
7
+ @extend .z-depth-1;
8
+ background-color: $card-bg-color;
9
+ }
10
+
11
+ .card {
12
+ position: relative;
13
+ overflow: hidden;
14
+ margin: $element-top-margin 0 $element-bottom-margin 0;
15
+ background-color: $card-bg-color;
16
+ border-radius: 2px;
17
+ @extend .z-depth-1;
18
+
19
+
20
+ .card-title {
21
+ color: #fff;
22
+ font-size: 24px;
23
+ font-weight: 300;
24
+ &.activator {
25
+ cursor: pointer;
26
+ }
27
+ }
28
+
29
+ // Card Sizes
30
+ &.small, &.medium, &.large {
31
+ position: relative;
32
+
33
+ .card-image {
34
+ overflow: hidden;
35
+ }
36
+ .card-content {
37
+ overflow: hidden;
38
+ }
39
+ .card-action {
40
+ position: absolute;
41
+ bottom: 0;
42
+ left: 0;
43
+ right: 0;
44
+ }
45
+ }
46
+
47
+ &.small {
48
+ height: 300px;
49
+
50
+ .card-image {
51
+ height: 150px;
52
+ }
53
+ .card-content {
54
+ height: 150px;
55
+ }
56
+
57
+ }
58
+
59
+ &.medium {
60
+ height: 400px;
61
+
62
+ .card-image {
63
+ height: 250px;
64
+ }
65
+ .card-content {
66
+ height: 150px;
67
+ }
68
+ }
69
+
70
+ &.large {
71
+ height: 500px;
72
+
73
+ .card-image {
74
+ height: 330px;
75
+ }
76
+ .card-content {
77
+ height: 170px;
78
+ }
79
+ }
80
+
81
+
82
+ .card-image {
83
+ position: relative;
84
+
85
+ // Image background for content
86
+ img {
87
+ border-radius: 2px 2px 0 0;
88
+ position: relative;
89
+ left: 0;
90
+ right: 0;
91
+ top: 0;
92
+ bottom: 0;
93
+ width: 100%;
94
+ }
95
+
96
+ .card-title {
97
+ position: absolute;
98
+ bottom: 0;
99
+ left: 0;
100
+ padding: $card-padding;
101
+ }
102
+
103
+ }
104
+
105
+ .card-content {
106
+ padding: $card-padding;
107
+ border-radius: 0 0 2px 2px;
108
+
109
+
110
+ p {
111
+ margin: 0;
112
+ color: inherit;
113
+ }
114
+ .card-title {
115
+ line-height: 48px;
116
+ }
117
+ }
118
+
119
+ .card-action {
120
+ border-top: 1px solid rgba(160,160,160,.2);
121
+ padding: $card-padding;
122
+
123
+ a {
124
+ color: color("orange", "accent-2");
125
+ margin-right: $card-padding;
126
+ @include transition(color .3s ease);
127
+ text-transform: uppercase;
128
+
129
+ &:hover { color: lighten(color("orange", "accent-2"), 20%); }
130
+ }
131
+ }
132
+
133
+ .card-reveal {
134
+ padding: $card-padding;
135
+ position: absolute;
136
+ background-color: #FFF;
137
+ width: 100%;
138
+ overflow-y: auto;
139
+ top: 100%;
140
+ height: 100%;
141
+ z-index: 1;
142
+ display: none;
143
+
144
+ .card-title {
145
+ cursor: pointer;
146
+ display: block;
147
+ }
148
+
149
+ }
150
+ }
@@ -0,0 +1,88 @@
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
+ display: block;
11
+ cursor: pointer;
12
+ height: $collapsible-height;
13
+ line-height: $collapsible-height;
14
+ padding: 0 1rem;
15
+ background-color: $collapsible-header-color;
16
+ border-bottom: 1px solid $collapsible-border-color;
17
+
18
+ i {
19
+ width: 2rem;
20
+ font-size: 1.6rem;
21
+ line-height: $collapsible-height;
22
+ display: block;
23
+ float: left;
24
+ text-align: center;
25
+ margin-right: 1rem;
26
+ }
27
+ }
28
+
29
+ .collapsible-body {
30
+ overflow: hidden;
31
+ display: none;
32
+ border-bottom: 1px solid $collapsible-border-color;
33
+ @include box-sizing(border-box);
34
+
35
+ p {
36
+ margin: 0;
37
+ padding: 2rem;
38
+ }
39
+ }
40
+
41
+ // sideNav collapsible styling
42
+ .side-nav {
43
+
44
+ .collapsible {
45
+ border: none;
46
+ box-shadow: none;
47
+
48
+ li { padding: 0; }
49
+ }
50
+
51
+ .collapsible-header {
52
+ background-color: transparent;
53
+ border: none;
54
+ line-height: inherit;
55
+ height: inherit;
56
+ margin: 0 1rem;
57
+
58
+ i { line-height: inherit; }
59
+ }
60
+
61
+ .collapsible-body {
62
+ border: 0;
63
+ background-color: #FFF;
64
+
65
+ li a { margin: 0 1rem 0 2rem; }
66
+ }
67
+
68
+ }
69
+
70
+ // Popout Collapsible
71
+
72
+ .collapsible.popout {
73
+ border: none;
74
+ box-shadow: none;
75
+ > li {
76
+ &:hover {
77
+ will-change: margin, transform;
78
+ }
79
+ box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
80
+ transform: scaleX(.92) translate3d(0,0,0);
81
+ transition: margin .35s cubic-bezier(0.250, 0.460, 0.450, 0.940), transform .35s cubic-bezier(0.250, 0.460, 0.450, 0.940);
82
+ }
83
+ > li.active {
84
+ box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
85
+ margin: 16px 0;
86
+ transform: scaleX(1) translate3d(0,0,0);
87
+ }
88
+ }
@@ -0,0 +1,412 @@
1
+ // Utility Color Classes
2
+
3
+ //.success {
4
+ //
5
+ //}
6
+
7
+ // Google Color Palette defined: http://www.google.com/design/spec/style/color.html
8
+
9
+
10
+ $materialize-red: (
11
+ "lighten-5": #fdeaeb,
12
+ "lighten-4": #f8c1c3,
13
+ "lighten-3": #f3989b,
14
+ "lighten-2": #ee6e73,
15
+ "lighten-1": #ea454b,
16
+ "base": #e51c23,
17
+ "darken-1": #d0181e,
18
+ "darken-2": #b9151b,
19
+ "darken-3": #a21318,
20
+ "darken-4": #8b1014,
21
+ );
22
+
23
+ $red: (
24
+ "lighten-5": #FFEBEE,
25
+ "lighten-4": #FFCDD2,
26
+ "lighten-3": #EF9A9A,
27
+ "lighten-2": #E57373,
28
+ "lighten-1": #EF5350,
29
+ "base": #F44336,
30
+ "darken-1": #E53935,
31
+ "darken-2": #D32F2F,
32
+ "darken-3": #C62828,
33
+ "darken-4": #B71C1C,
34
+ "accent-1": #FF8A80,
35
+ "accent-2": #FF5252,
36
+ "accent-3": #FF1744,
37
+ "accent-4": #D50000
38
+ );
39
+
40
+ $pink: (
41
+ "lighten-5": #fce4ec,
42
+ "lighten-4": #f8bbd0,
43
+ "lighten-3": #f48fb1,
44
+ "lighten-2": #f06292,
45
+ "lighten-1": #ec407a,
46
+ "base": #e91e63,
47
+ "darken-1": #d81b60,
48
+ "darken-2": #c2185b,
49
+ "darken-3": #ad1457,
50
+ "darken-4": #880e4f,
51
+ "accent-1": #ff80ab,
52
+ "accent-2": #ff4081,
53
+ "accent-3": #f50057,
54
+ "accent-4": #c51162
55
+ );
56
+
57
+ $purple: (
58
+ "lighten-5": #f3e5f5,
59
+ "lighten-4": #e1bee7,
60
+ "lighten-3": #ce93d8,
61
+ "lighten-2": #ba68c8,
62
+ "lighten-1": #ab47bc,
63
+ "base": #9c27b0,
64
+ "darken-1": #8e24aa,
65
+ "darken-2": #7b1fa2,
66
+ "darken-3": #6a1b9a,
67
+ "darken-4": #4a148c,
68
+ "accent-1": #ea80fc,
69
+ "accent-2": #e040fb,
70
+ "accent-3": #d500f9,
71
+ "accent-4": #aa00ff
72
+ );
73
+
74
+ $deep-purple: (
75
+ "lighten-5": #ede7f6,
76
+ "lighten-4": #d1c4e9,
77
+ "lighten-3": #b39ddb,
78
+ "lighten-2": #9575cd,
79
+ "lighten-1": #7e57c2,
80
+ "base": #673ab7,
81
+ "darken-1": #5e35b1,
82
+ "darken-2": #512da8,
83
+ "darken-3": #4527a0,
84
+ "darken-4": #311b92,
85
+ "accent-1": #b388ff,
86
+ "accent-2": #7c4dff,
87
+ "accent-3": #651fff,
88
+ "accent-4": #6200ea
89
+ );
90
+
91
+ $indigo: (
92
+ "lighten-5": #e8eaf6,
93
+ "lighten-4": #c5cae9,
94
+ "lighten-3": #9fa8da,
95
+ "lighten-2": #7986cb,
96
+ "lighten-1": #5c6bc0,
97
+ "base": #3f51b5,
98
+ "darken-1": #3949ab,
99
+ "darken-2": #303f9f,
100
+ "darken-3": #283593,
101
+ "darken-4": #1a237e,
102
+ "accent-1": #8c9eff,
103
+ "accent-2": #536dfe,
104
+ "accent-3": #3d5afe,
105
+ "accent-4": #304ffe
106
+ );
107
+
108
+ $blue: (
109
+ "lighten-5": #E3F2FD,
110
+ "lighten-4": #BBDEFB,
111
+ "lighten-3": #90CAF9,
112
+ "lighten-2": #64B5F6,
113
+ "lighten-1": #42A5F5,
114
+ "base": #2196F3,
115
+ "darken-1": #1E88E5,
116
+ "darken-2": #1976D2,
117
+ "darken-3": #1565C0,
118
+ "darken-4": #0D47A1,
119
+ "accent-1": #82B1FF,
120
+ "accent-2": #448AFF,
121
+ "accent-3": #2979FF,
122
+ "accent-4": #2962FF
123
+ );
124
+
125
+ $light-blue: (
126
+ "lighten-5": #e1f5fe,
127
+ "lighten-4": #b3e5fc,
128
+ "lighten-3": #81d4fa,
129
+ "lighten-2": #4fc3f7,
130
+ "lighten-1": #29b6f6,
131
+ "base": #03a9f4,
132
+ "darken-1": #039be5,
133
+ "darken-2": #0288d1,
134
+ "darken-3": #0277bd,
135
+ "darken-4": #01579b,
136
+ "accent-1": #80d8ff,
137
+ "accent-2": #40c4ff,
138
+ "accent-3": #00b0ff,
139
+ "accent-4": #0091ea
140
+ );
141
+
142
+ $cyan: (
143
+ "lighten-5": #e0f7fa,
144
+ "lighten-4": #b2ebf2,
145
+ "lighten-3": #80deea,
146
+ "lighten-2": #4dd0e1,
147
+ "lighten-1": #26c6da,
148
+ "base": #00bcd4,
149
+ "darken-1": #00acc1,
150
+ "darken-2": #0097a7,
151
+ "darken-3": #00838f,
152
+ "darken-4": #006064,
153
+ "accent-1": #84ffff,
154
+ "accent-2": #18ffff,
155
+ "accent-3": #00e5ff,
156
+ "accent-4": #00b8d4
157
+ );
158
+
159
+ $teal: (
160
+ "lighten-5": #e0f2f1,
161
+ "lighten-4": #b2dfdb,
162
+ "lighten-3": #80cbc4,
163
+ "lighten-2": #4db6ac,
164
+ "lighten-1": #26a69a,
165
+ "base": #009688,
166
+ "darken-1": #00897b,
167
+ "darken-2": #00796b,
168
+ "darken-3": #00695c,
169
+ "darken-4": #004d40,
170
+ "accent-1": #a7ffeb,
171
+ "accent-2": #64ffda,
172
+ "accent-3": #1de9b6,
173
+ "accent-4": #00bfa5
174
+ );
175
+
176
+ $green: (
177
+ "lighten-5": #E8F5E9,
178
+ "lighten-4": #C8E6C9,
179
+ "lighten-3": #A5D6A7,
180
+ "lighten-2": #81C784,
181
+ "lighten-1": #66BB6A,
182
+ "base": #4CAF50,
183
+ "darken-1": #43A047,
184
+ "darken-2": #388E3C,
185
+ "darken-3": #2E7D32,
186
+ "darken-4": #1B5E20,
187
+ "accent-1": #B9F6CA,
188
+ "accent-2": #69F0AE,
189
+ "accent-3": #00E676,
190
+ "accent-4": #00C853
191
+ );
192
+
193
+ $light-green: (
194
+ "lighten-5": #f1f8e9,
195
+ "lighten-4": #dcedc8,
196
+ "lighten-3": #c5e1a5,
197
+ "lighten-2": #aed581,
198
+ "lighten-1": #9ccc65,
199
+ "base": #8bc34a,
200
+ "darken-1": #7cb342,
201
+ "darken-2": #689f38,
202
+ "darken-3": #558b2f,
203
+ "darken-4": #33691e,
204
+ "accent-1": #ccff90,
205
+ "accent-2": #b2ff59,
206
+ "accent-3": #76ff03,
207
+ "accent-4": #64dd17
208
+ );
209
+
210
+ $lime: (
211
+ "lighten-5": #f9fbe7,
212
+ "lighten-4": #f0f4c3,
213
+ "lighten-3": #e6ee9c,
214
+ "lighten-2": #dce775,
215
+ "lighten-1": #d4e157,
216
+ "base": #cddc39,
217
+ "darken-1": #c0ca33,
218
+ "darken-2": #afb42b,
219
+ "darken-3": #9e9d24,
220
+ "darken-4": #827717,
221
+ "accent-1": #f4ff81,
222
+ "accent-2": #eeff41,
223
+ "accent-3": #c6ff00,
224
+ "accent-4": #aeea00
225
+ );
226
+
227
+ $yellow: (
228
+ "lighten-5": #fffde7,
229
+ "lighten-4": #fff9c4,
230
+ "lighten-3": #fff59d,
231
+ "lighten-2": #fff176,
232
+ "lighten-1": #ffee58,
233
+ "base": #ffeb3b,
234
+ "darken-1": #fdd835,
235
+ "darken-2": #fbc02d,
236
+ "darken-3": #f9a825,
237
+ "darken-4": #f57f17,
238
+ "accent-1": #ffff8d,
239
+ "accent-2": #ffff00,
240
+ "accent-3": #ffea00,
241
+ "accent-4": #ffd600
242
+ );
243
+
244
+ $amber: (
245
+ "lighten-5": #fff8e1,
246
+ "lighten-4": #ffecb3,
247
+ "lighten-3": #ffe082,
248
+ "lighten-2": #ffd54f,
249
+ "lighten-1": #ffca28,
250
+ "base": #ffc107,
251
+ "darken-1": #ffb300,
252
+ "darken-2": #ffa000,
253
+ "darken-3": #ff8f00,
254
+ "darken-4": #ff6f00,
255
+ "accent-1": #ffe57f,
256
+ "accent-2": #ffd740,
257
+ "accent-3": #ffc400,
258
+ "accent-4": #ffab00
259
+ );
260
+
261
+ $orange: (
262
+ "lighten-5": #fff3e0,
263
+ "lighten-4": #ffe0b2,
264
+ "lighten-3": #ffcc80,
265
+ "lighten-2": #ffb74d,
266
+ "lighten-1": #ffa726,
267
+ "base": #ff9800,
268
+ "darken-1": #fb8c00,
269
+ "darken-2": #f57c00,
270
+ "darken-3": #ef6c00,
271
+ "darken-4": #e65100,
272
+ "accent-1": #ffd180,
273
+ "accent-2": #ffab40,
274
+ "accent-3": #ff9100,
275
+ "accent-4": #ff6d00
276
+ );
277
+
278
+ $deep-orange: (
279
+ "lighten-5": #fbe9e7,
280
+ "lighten-4": #ffccbc,
281
+ "lighten-3": #ffab91,
282
+ "lighten-2": #ff8a65,
283
+ "lighten-1": #ff7043,
284
+ "base": #ff5722,
285
+ "darken-1": #f4511e,
286
+ "darken-2": #e64a19,
287
+ "darken-3": #d84315,
288
+ "darken-4": #bf360c,
289
+ "accent-1": #ff9e80,
290
+ "accent-2": #ff6e40,
291
+ "accent-3": #ff3d00,
292
+ "accent-4": #dd2c00
293
+ );
294
+
295
+ $brown: (
296
+ "lighten-5": #efebe9,
297
+ "lighten-4": #d7ccc8,
298
+ "lighten-3": #bcaaa4,
299
+ "lighten-2": #a1887f,
300
+ "lighten-1": #8d6e63,
301
+ "base": #795548,
302
+ "darken-1": #6d4c41,
303
+ "darken-2": #5d4037,
304
+ "darken-3": #4e342e,
305
+ "darken-4": #3e2723
306
+ );
307
+
308
+ $blue-grey: (
309
+ "lighten-5": #eceff1,
310
+ "lighten-4": #cfd8dc,
311
+ "lighten-3": #b0bec5,
312
+ "lighten-2": #90a4ae,
313
+ "lighten-1": #78909c,
314
+ "base": #607d8b,
315
+ "darken-1": #546e7a,
316
+ "darken-2": #455a64,
317
+ "darken-3": #37474f,
318
+ "darken-4": #263238
319
+ );
320
+
321
+ $grey: (
322
+ "lighten-5": #fafafa,
323
+ "lighten-4": #f5f5f5,
324
+ "lighten-3": #eeeeee,
325
+ "lighten-2": #e0e0e0,
326
+ "lighten-1": #bdbdbd,
327
+ "base": #9e9e9e,
328
+ "darken-1": #757575,
329
+ "darken-2": #616161,
330
+ "darken-3": #424242,
331
+ "darken-4": #212121
332
+ );
333
+
334
+ $shades: (
335
+ "black": #000000,
336
+ "white": #FFFFFF,
337
+ "transparent": transparent
338
+ );
339
+
340
+ $colors: (
341
+ "materialize-red": $materialize-red,
342
+ "red": $red,
343
+ "pink": $pink,
344
+ "purple": $purple,
345
+ "deep-purple": $deep-purple,
346
+ "indigo": $indigo,
347
+ "blue": $blue,
348
+ "light-blue": $light-blue,
349
+ "cyan": $cyan,
350
+ "teal": $teal,
351
+ "green": $green,
352
+ "light-green": $light-green,
353
+ "lime": $lime,
354
+ "yellow": $yellow,
355
+ "amber": $amber,
356
+ "orange": $orange,
357
+ "deep-orange": $deep-orange,
358
+ "brown": $brown,
359
+ "blue-grey": $blue-grey,
360
+ "grey": $grey,
361
+ "shades": $shades
362
+ );
363
+
364
+
365
+ // Color Classes
366
+
367
+ @each $color_name, $color in $colors {
368
+ @each $color_type, $color_value in $color {
369
+ @if $color_type == "base" {
370
+ .#{$color_name} {
371
+ background-color: $color_value !important;
372
+ }
373
+ .#{$color_name}-text {
374
+ color: $color_value !important;
375
+ }
376
+ }
377
+ @else {
378
+ .#{$color_name}.#{$color_type} {
379
+ background-color: $color_value !important;
380
+ }
381
+ .#{$color_name}-text.text-#{$color_type} {
382
+ color: $color_value !important;
383
+ }
384
+ }
385
+ }
386
+ }
387
+
388
+ // Shade classes
389
+ @each $color, $color_value in $shades {
390
+ .#{$color} {
391
+ background-color: $color_value !important;
392
+ }
393
+ .#{$color}-text {
394
+ color: $color_value !important;
395
+ }
396
+ }
397
+
398
+
399
+ // usage: color("name_of_color", "type_of_color")
400
+ // to avoid to repeating map-get($colors, ...)
401
+
402
+ @function color($color, $type) {
403
+ @if map-has-key($colors, $color) {
404
+ $curr_color: map-get($colors, $color);
405
+ @if map-has-key($curr_color, $type) {
406
+ @return map-get($curr_color, $type);
407
+ }
408
+ }
409
+ @warn "Unknown `#{name}` in $colors.";
410
+ @return null;
411
+ }
412
+