material-sass 4.0.0.alpha6 → 4.0.0.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/README.md +36 -8
  4. data/Rakefile +16 -3
  5. data/app/assets/javascripts/material-sprockets.js +6 -1
  6. data/app/assets/javascripts/material.js +654 -417
  7. data/app/assets/javascripts/material.min.js +1 -0
  8. data/app/assets/javascripts/material/addons/picker.date.js +234 -0
  9. data/app/assets/javascripts/material/addons/picker.js +172 -0
  10. data/app/assets/javascripts/material/addons/textarea-autosize.js +20 -2
  11. data/app/assets/javascripts/material/addons/waves.js +127 -0
  12. data/app/assets/javascripts/material/components/floating-label.js +92 -0
  13. data/app/assets/javascripts/material/components/navdrawer.js +353 -0
  14. data/app/assets/javascripts/material/components/selection-control-focus.js +47 -0
  15. data/app/assets/javascripts/material/components/tab-switch.js +148 -0
  16. data/app/assets/javascripts/material/components/util.js +133 -0
  17. data/app/assets/javascripts/material/initializers/picker.js +171 -0
  18. data/app/assets/javascripts/material/initializers/textarea-autosize.js +10 -0
  19. data/app/assets/javascripts/material/initializers/waves.js +13 -0
  20. data/app/assets/stylesheets/material/_colours.scss +324 -0
  21. data/app/assets/stylesheets/material/_functions.scss +65 -0
  22. data/app/assets/stylesheets/material/_mixins.scss +23 -23
  23. data/app/assets/stylesheets/material/_print.scss +102 -0
  24. data/app/assets/stylesheets/material/_utilities.scss +21 -17
  25. data/app/assets/stylesheets/material/_variables.scss +13 -42
  26. data/app/assets/stylesheets/material/base/_base.scss +420 -5
  27. data/app/assets/stylesheets/material/base/_grid.scss +34 -33
  28. data/app/assets/stylesheets/material/base/_typography.scss +165 -174
  29. data/app/assets/stylesheets/material/bootstrap/_alert.scss +32 -39
  30. data/app/assets/stylesheets/material/bootstrap/_badge.scss +34 -0
  31. data/app/assets/stylesheets/material/bootstrap/_breadcrumb.scss +18 -18
  32. data/app/assets/stylesheets/material/bootstrap/_carousel.scss +127 -142
  33. data/app/assets/stylesheets/material/bootstrap/_close.scss +18 -19
  34. data/app/assets/stylesheets/material/bootstrap/_code.scss +10 -7
  35. data/app/assets/stylesheets/material/bootstrap/_custom-form.scss +50 -56
  36. data/app/assets/stylesheets/material/bootstrap/_form.scss +159 -129
  37. data/app/assets/stylesheets/material/bootstrap/_image.scss +19 -16
  38. data/app/assets/stylesheets/material/bootstrap/_jumbotron.scss +10 -7
  39. data/app/assets/stylesheets/material/bootstrap/_nav.scss +71 -69
  40. data/app/assets/stylesheets/material/bootstrap/_pagination.scss +34 -26
  41. data/app/assets/stylesheets/material/bootstrap/_popover.scss +26 -59
  42. data/app/assets/stylesheets/material/bootstrap/_responsive-embed.scss +4 -4
  43. data/app/assets/stylesheets/material/bootstrap/_transition.scss +10 -8
  44. data/app/assets/stylesheets/material/material.scss +75 -62
  45. data/app/assets/stylesheets/material/material/_button-flat.scss +26 -39
  46. data/app/assets/stylesheets/material/material/_button-float.scss +10 -14
  47. data/app/assets/stylesheets/material/material/_button-group.scss +268 -0
  48. data/app/assets/stylesheets/material/material/_button.scss +133 -189
  49. data/app/assets/stylesheets/material/material/_card.scss +300 -248
  50. data/app/assets/stylesheets/material/material/_chip.scss +65 -64
  51. data/app/assets/stylesheets/material/material/_data-table.scss +135 -45
  52. data/app/assets/stylesheets/material/material/_dialog.scss +141 -110
  53. data/app/assets/stylesheets/material/material/_expansion-panel.scss +86 -119
  54. data/app/assets/stylesheets/material/material/_menu.scss +308 -228
  55. data/app/assets/stylesheets/material/material/_navdrawer.scss +239 -234
  56. data/app/assets/stylesheets/material/material/_picker.scss +157 -155
  57. data/app/assets/stylesheets/material/material/_progress-circular.scss +80 -80
  58. data/app/assets/stylesheets/material/material/_progress.scss +180 -115
  59. data/app/assets/stylesheets/material/material/_selection-control.scss +132 -139
  60. data/app/assets/stylesheets/material/material/_stepper.scss +94 -93
  61. data/app/assets/stylesheets/material/material/_tab.scss +74 -93
  62. data/app/assets/stylesheets/material/material/_text-field-floating-label.scss +29 -20
  63. data/app/assets/stylesheets/material/material/_text-field-input-group.scss +94 -24
  64. data/app/assets/stylesheets/material/material/_text-field-textarea.scss +13 -26
  65. data/app/assets/stylesheets/material/material/_text-field.scss +127 -118
  66. data/app/assets/stylesheets/material/material/_toolbar.scss +308 -313
  67. data/app/assets/stylesheets/material/material/_tooltip.scss +23 -62
  68. data/app/assets/stylesheets/material/mixins/_background-variant.scss +6 -6
  69. data/app/assets/stylesheets/material/mixins/_border-radius.scss +17 -17
  70. data/app/assets/stylesheets/material/mixins/_breakpoint.scss +32 -2
  71. data/app/assets/stylesheets/material/mixins/_clearfix.scss +1 -1
  72. data/app/assets/stylesheets/material/mixins/_form.scss +62 -25
  73. data/app/assets/stylesheets/material/mixins/_grid-framework.scss +8 -16
  74. data/app/assets/stylesheets/material/mixins/_grid.scss +40 -64
  75. data/app/assets/stylesheets/material/mixins/_material-icons.scss +36 -0
  76. data/app/assets/stylesheets/material/mixins/_nav-divider.scss +1 -1
  77. data/app/assets/stylesheets/material/mixins/_reset-text.scss +2 -21
  78. data/app/assets/stylesheets/material/mixins/_screenreader.scss +14 -12
  79. data/app/assets/stylesheets/material/mixins/_text-alignment.scss +23 -0
  80. data/app/assets/stylesheets/material/mixins/_text-emphasis.scss +6 -6
  81. data/app/assets/stylesheets/material/mixins/_transition.scss +42 -10
  82. data/app/assets/stylesheets/material/utilities/_background.scss +18 -18
  83. data/app/assets/stylesheets/material/utilities/_border.scss +88 -41
  84. data/app/assets/stylesheets/material/utilities/_display.scss +63 -30
  85. data/app/assets/stylesheets/material/utilities/_flex.scss +139 -134
  86. data/app/assets/stylesheets/material/utilities/_material-icons.scss +3 -5
  87. data/app/assets/stylesheets/material/utilities/_position.scss +19 -22
  88. data/app/assets/stylesheets/material/utilities/_sizing.scss +11 -12
  89. data/app/assets/stylesheets/material/utilities/_spacing.scss +51 -56
  90. data/app/assets/stylesheets/material/utilities/_text.scss +80 -75
  91. data/app/assets/stylesheets/material/utilities/_visibility.scss +5 -46
  92. data/app/assets/stylesheets/material/utilities/_waves.scss +11 -18
  93. data/app/assets/stylesheets/material/variables/_elevation-shadow.scss +89 -82
  94. data/app/assets/stylesheets/material/variables/_grid.scss +29 -26
  95. data/app/assets/stylesheets/material/variables/_palette.scss +45 -0
  96. data/app/assets/stylesheets/material/variables/_spacer.scss +34 -88
  97. data/app/assets/stylesheets/material/variables/_transition.scss +29 -0
  98. data/app/assets/stylesheets/material/variables/_typography.scss +88 -74
  99. data/app/assets/stylesheets/material/variables/_variable-bootstrap.scss +196 -133
  100. data/app/assets/stylesheets/material/variables/_variable-material.scss +481 -429
  101. data/lib/material-sass/version.rb +1 -1
  102. data/material-sass.gemspec +3 -3
  103. metadata +26 -21
  104. data/app/assets/javascripts/material/addons-materialise/pickadate.js +0 -139
  105. data/app/assets/javascripts/material/addons-materialise/textarea-autosize.js +0 -11
  106. data/app/assets/javascripts/material/addons-materialise/wave.js +0 -15
  107. data/app/assets/javascripts/material/addons/pickadate.js +0 -7
  108. data/app/assets/javascripts/material/addons/wave.js +0 -5
  109. data/app/assets/javascripts/material/src/floating-label.js +0 -91
  110. data/app/assets/javascripts/material/src/navdrawer.js +0 -352
  111. data/app/assets/javascripts/material/src/tab-switch.js +0 -133
  112. data/app/assets/javascripts/material/src/util.js +0 -138
  113. data/app/assets/stylesheets/material/base/_normalize.scss +0 -253
  114. data/app/assets/stylesheets/material/base/_reboot.scss +0 -239
  115. data/app/assets/stylesheets/material/bootstrap/_button-group.scss +0 -134
  116. data/app/assets/stylesheets/material/mixins/_tab-focus.scss +0 -5
  117. data/app/assets/stylesheets/material/mixins/_transform.scss +0 -9
  118. data/app/assets/stylesheets/material/variables/_animation.scss +0 -22
  119. data/app/assets/stylesheets/material/variables/_colour.scss +0 -389
@@ -0,0 +1,10 @@
1
+ /*
2
+ * activate textarea-autosize for material
3
+ * requires addons/textarea-autosize.js
4
+ */
5
+
6
+ $(function () {
7
+ if ($('.textarea-autosize').length && typeof $.fn.textareaAutoSize !== 'undefined') {
8
+ $('.textarea-autosize').textareaAutoSize();
9
+ }
10
+ });
@@ -0,0 +1,13 @@
1
+ /*
2
+ * activate waves for material
3
+ * requires addons/waves.js
4
+ */
5
+
6
+ $(function () {
7
+ if ($('.waves-attach').length && typeof Waves !== 'undefined') {
8
+ Waves.attach('.waves-attach');
9
+ Waves.init({
10
+ duration: 300
11
+ });
12
+ }
13
+ });
@@ -0,0 +1,324 @@
1
+ // Material colour palette
2
+ // Based on https://material.google.com/style/color.html#color-color-palette
3
+
4
+ $material-color-amber-050: #fff8e1 !default;
5
+ $material-color-amber-100: #ffecb3 !default;
6
+ $material-color-amber-200: #ffe082 !default;
7
+ $material-color-amber-300: #ffd54f !default;
8
+ $material-color-amber-400: #ffca28 !default;
9
+ $material-color-amber-500: #ffc107 !default;
10
+ $material-color-amber-600: #ffb300 !default;
11
+ $material-color-amber-700: #ffa000 !default;
12
+ $material-color-amber-800: #ff8f00 !default;
13
+ $material-color-amber-900: #ff6f00 !default;
14
+ $material-color-amber-a100: #ffe57f !default;
15
+ $material-color-amber-a200: #ffd740 !default;
16
+ $material-color-amber-a400: #ffc400 !default;
17
+ $material-color-amber-a700: #ffab00 !default;
18
+
19
+ $material-color-blue-050: #e3f2fd !default;
20
+ $material-color-blue-100: #bbdefb !default;
21
+ $material-color-blue-200: #90caf9 !default;
22
+ $material-color-blue-300: #64b5f6 !default;
23
+ $material-color-blue-400: #42a5f5 !default;
24
+ $material-color-blue-500: #2196f3 !default;
25
+ $material-color-blue-600: #1e88e5 !default;
26
+ $material-color-blue-700: #1976d2 !default;
27
+ $material-color-blue-800: #1565c0 !default;
28
+ $material-color-blue-900: #0d47a1 !default;
29
+ $material-color-blue-a100: #82b1ff !default;
30
+ $material-color-blue-a200: #448aff !default;
31
+ $material-color-blue-a400: #2979ff !default;
32
+ $material-color-blue-a700: #2962ff !default;
33
+
34
+ $material-color-blue-grey-050: #eceff1 !default;
35
+ $material-color-blue-grey-100: #cfd8dc !default;
36
+ $material-color-blue-grey-200: #b0bec5 !default;
37
+ $material-color-blue-grey-300: #90a4ae !default;
38
+ $material-color-blue-grey-400: #78909c !default;
39
+ $material-color-blue-grey-500: #607d8b !default;
40
+ $material-color-blue-grey-600: #546e7a !default;
41
+ $material-color-blue-grey-700: #455a64 !default;
42
+ $material-color-blue-grey-800: #37474f !default;
43
+ $material-color-blue-grey-900: #263238 !default;
44
+
45
+ $material-color-brown-050: #efebe9 !default;
46
+ $material-color-brown-100: #d7ccc8 !default;
47
+ $material-color-brown-200: #bcaaa4 !default;
48
+ $material-color-brown-300: #a1887f !default;
49
+ $material-color-brown-400: #8d6e63 !default;
50
+ $material-color-brown-500: #795548 !default;
51
+ $material-color-brown-600: #6d4c41 !default;
52
+ $material-color-brown-700: #5d4037 !default;
53
+ $material-color-brown-800: #4e342e !default;
54
+ $material-color-brown-900: #3e2723 !default;
55
+
56
+ $material-color-cyan-050: #e0f7fa !default;
57
+ $material-color-cyan-100: #b2ebf2 !default;
58
+ $material-color-cyan-200: #80deea !default;
59
+ $material-color-cyan-300: #4dd0e1 !default;
60
+ $material-color-cyan-400: #26c6da !default;
61
+ $material-color-cyan-500: #00bcd4 !default;
62
+ $material-color-cyan-600: #00acc1 !default;
63
+ $material-color-cyan-700: #0097a7 !default;
64
+ $material-color-cyan-800: #00838f !default;
65
+ $material-color-cyan-900: #006064 !default;
66
+ $material-color-cyan-a100: #84ffff !default;
67
+ $material-color-cyan-a200: #18ffff !default;
68
+ $material-color-cyan-a400: #00e5ff !default;
69
+ $material-color-cyan-a700: #00b8d4 !default;
70
+
71
+ $material-color-deep-orange-050: #fbe9e7 !default;
72
+ $material-color-deep-orange-100: #ffccbc !default;
73
+ $material-color-deep-orange-200: #ffab91 !default;
74
+ $material-color-deep-orange-300: #ff8a65 !default;
75
+ $material-color-deep-orange-400: #ff7043 !default;
76
+ $material-color-deep-orange-500: #ff5722 !default;
77
+ $material-color-deep-orange-600: #f4511e !default;
78
+ $material-color-deep-orange-700: #e64a19 !default;
79
+ $material-color-deep-orange-800: #d84315 !default;
80
+ $material-color-deep-orange-900: #bf360c !default;
81
+ $material-color-deep-orange-a100: #ff9e80 !default;
82
+ $material-color-deep-orange-a200: #ff6e40 !default;
83
+ $material-color-deep-orange-a400: #ff3d00 !default;
84
+ $material-color-deep-orange-a700: #ee2c00 !default;
85
+
86
+ $material-color-deep-purple-050: #ede7f6 !default;
87
+ $material-color-deep-purple-100: #d1c4e9 !default;
88
+ $material-color-deep-purple-200: #b39ddb !default;
89
+ $material-color-deep-purple-300: #9575cd !default;
90
+ $material-color-deep-purple-400: #7e57c2 !default;
91
+ $material-color-deep-purple-500: #673ab7 !default;
92
+ $material-color-deep-purple-600: #5e35b1 !default;
93
+ $material-color-deep-purple-700: #512da8 !default;
94
+ $material-color-deep-purple-800: #4527a0 !default;
95
+ $material-color-deep-purple-900: #311b92 !default;
96
+ $material-color-deep-purple-a100: #b388ff !default;
97
+ $material-color-deep-purple-a200: #7c4dff !default;
98
+ $material-color-deep-purple-a400: #651fff !default;
99
+ $material-color-deep-purple-a700: #6200ea !default;
100
+
101
+ $material-color-green-050: #e8f5e9 !default;
102
+ $material-color-green-100: #c8e6c9 !default;
103
+ $material-color-green-200: #a5d6a7 !default;
104
+ $material-color-green-300: #81c784 !default;
105
+ $material-color-green-400: #66bb6a !default;
106
+ $material-color-green-500: #4caf50 !default;
107
+ $material-color-green-600: #43a047 !default;
108
+ $material-color-green-700: #388e3c !default;
109
+ $material-color-green-800: #2e7d32 !default;
110
+ $material-color-green-900: #1b5e20 !default;
111
+ $material-color-green-a100: #b9f6ca !default;
112
+ $material-color-green-a200: #69f0ae !default;
113
+ $material-color-green-a400: #00e676 !default;
114
+ $material-color-green-a700: #00c853 !default;
115
+
116
+ $material-color-grey-050: #fafafa !default;
117
+ $material-color-grey-100: #f5f5f5 !default;
118
+ $material-color-grey-200: #eeeeee !default;
119
+ $material-color-grey-300: #e0e0e0 !default;
120
+ $material-color-grey-400: #bdbdbd !default;
121
+ $material-color-grey-500: #9e9e9e !default;
122
+ $material-color-grey-600: #757575 !default;
123
+ $material-color-grey-700: #616161 !default;
124
+ $material-color-grey-800: #424242 !default;
125
+ $material-color-grey-900: #212121 !default;
126
+
127
+ $material-color-indigo-050: #e8eaf6 !default;
128
+ $material-color-indigo-100: #c5cae9 !default;
129
+ $material-color-indigo-200: #9fa8da !default;
130
+ $material-color-indigo-300: #7986cb !default;
131
+ $material-color-indigo-400: #5c6bc0 !default;
132
+ $material-color-indigo-500: #3f51b5 !default;
133
+ $material-color-indigo-600: #3949ab !default;
134
+ $material-color-indigo-700: #303f9f !default;
135
+ $material-color-indigo-800: #283593 !default;
136
+ $material-color-indigo-900: #1a237e !default;
137
+ $material-color-indigo-a100: #8c9eff !default;
138
+ $material-color-indigo-a200: #536dfe !default;
139
+ $material-color-indigo-a400: #3d5afe !default;
140
+ $material-color-indigo-a700: #304ffe !default;
141
+
142
+ $material-color-light-blue-050: #e1f5fe !default;
143
+ $material-color-light-blue-100: #b3e5fc !default;
144
+ $material-color-light-blue-200: #81d4fa !default;
145
+ $material-color-light-blue-300: #4fc3f7 !default;
146
+ $material-color-light-blue-400: #29b6f6 !default;
147
+ $material-color-light-blue-500: #03a9f4 !default;
148
+ $material-color-light-blue-600: #039be5 !default;
149
+ $material-color-light-blue-700: #0288d1 !default;
150
+ $material-color-light-blue-800: #0277bd !default;
151
+ $material-color-light-blue-900: #01579b !default;
152
+ $material-color-light-blue-a100: #80d8ff !default;
153
+ $material-color-light-blue-a200: #40c4ff !default;
154
+ $material-color-light-blue-a400: #00b0ff !default;
155
+ $material-color-light-blue-a700: #0091ea !default;
156
+
157
+ $material-color-light-green-050: #f1f8e9 !default;
158
+ $material-color-light-green-100: #dcedc8 !default;
159
+ $material-color-light-green-200: #c5e1a5 !default;
160
+ $material-color-light-green-300: #aed581 !default;
161
+ $material-color-light-green-400: #9ccc65 !default;
162
+ $material-color-light-green-500: #8bc34a !default;
163
+ $material-color-light-green-600: #7cb342 !default;
164
+ $material-color-light-green-700: #689f38 !default;
165
+ $material-color-light-green-800: #558b2f !default;
166
+ $material-color-light-green-900: #33691e !default;
167
+ $material-color-light-green-a100: #ccff90 !default;
168
+ $material-color-light-green-a200: #b2ff59 !default;
169
+ $material-color-light-green-a400: #76ff03 !default;
170
+ $material-color-light-green-a700: #64dd17 !default;
171
+
172
+ $material-color-lime-050: #f9fbe7 !default;
173
+ $material-color-lime-100: #f0f4c3 !default;
174
+ $material-color-lime-200: #e6ee9c !default;
175
+ $material-color-lime-300: #dce775 !default;
176
+ $material-color-lime-400: #d4e157 !default;
177
+ $material-color-lime-500: #cddc39 !default;
178
+ $material-color-lime-600: #c0ca33 !default;
179
+ $material-color-lime-700: #afb42b !default;
180
+ $material-color-lime-800: #9e9d24 !default;
181
+ $material-color-lime-900: #827717 !default;
182
+ $material-color-lime-a100: #f4ff81 !default;
183
+ $material-color-lime-a200: #eeff41 !default;
184
+ $material-color-lime-a400: #c6ff00 !default;
185
+ $material-color-lime-a700: #aeea00 !default;
186
+
187
+ $material-color-orange-050: #fff3e0 !default;
188
+ $material-color-orange-100: #ffe0b2 !default;
189
+ $material-color-orange-200: #ffcc80 !default;
190
+ $material-color-orange-300: #ffb74d !default;
191
+ $material-color-orange-400: #ffa726 !default;
192
+ $material-color-orange-500: #ff9800 !default;
193
+ $material-color-orange-600: #fb8c00 !default;
194
+ $material-color-orange-700: #f57c00 !default;
195
+ $material-color-orange-800: #ef6c00 !default;
196
+ $material-color-orange-900: #e65100 !default;
197
+ $material-color-orange-a100: #ffd180 !default;
198
+ $material-color-orange-a200: #ffab40 !default;
199
+ $material-color-orange-a400: #ff9100 !default;
200
+ $material-color-orange-a700: #ff6d00 !default;
201
+
202
+ $material-color-pink-050: #fce4ec !default;
203
+ $material-color-pink-100: #f8bbd0 !default;
204
+ $material-color-pink-200: #f48fb1 !default;
205
+ $material-color-pink-300: #f06292 !default;
206
+ $material-color-pink-400: #ec407a !default;
207
+ $material-color-pink-500: #e91e63 !default;
208
+ $material-color-pink-600: #d81b60 !default;
209
+ $material-color-pink-700: #c2185b !default;
210
+ $material-color-pink-800: #ad1457 !default;
211
+ $material-color-pink-900: #880e4f !default;
212
+ $material-color-pink-a100: #ff80ab !default;
213
+ $material-color-pink-a200: #ff4081 !default;
214
+ $material-color-pink-a400: #f50057 !default;
215
+ $material-color-pink-a700: #c51162 !default;
216
+
217
+ $material-color-purple-050: #f3e5f5 !default;
218
+ $material-color-purple-100: #e1bee7 !default;
219
+ $material-color-purple-200: #ce93d8 !default;
220
+ $material-color-purple-300: #ba68c8 !default;
221
+ $material-color-purple-400: #ab47bc !default;
222
+ $material-color-purple-500: #9c27b0 !default;
223
+ $material-color-purple-600: #8e24aa !default;
224
+ $material-color-purple-700: #7b1fa2 !default;
225
+ $material-color-purple-800: #6a1b9a !default;
226
+ $material-color-purple-900: #4a148c !default;
227
+ $material-color-purple-a100: #ea80fc !default;
228
+ $material-color-purple-a200: #e040fb !default;
229
+ $material-color-purple-a400: #d500f9 !default;
230
+ $material-color-purple-a700: #aa00ff !default;
231
+
232
+ $material-color-red-050: #ffebee !default;
233
+ $material-color-red-100: #ffcdd2 !default;
234
+ $material-color-red-200: #ef9a9a !default;
235
+ $material-color-red-300: #e57373 !default;
236
+ $material-color-red-400: #ef5350 !default;
237
+ $material-color-red-500: #f44336 !default;
238
+ $material-color-red-600: #e53935 !default;
239
+ $material-color-red-700: #d32f2f !default;
240
+ $material-color-red-800: #c62828 !default;
241
+ $material-color-red-900: #b71c1c !default;
242
+ $material-color-red-a100: #ff8a80 !default;
243
+ $material-color-red-a200: #ff5252 !default;
244
+ $material-color-red-a400: #ff1744 !default;
245
+ $material-color-red-a700: #d50000 !default;
246
+
247
+ $material-color-teal-050: #e0f2f1 !default;
248
+ $material-color-teal-100: #b2dfdb !default;
249
+ $material-color-teal-200: #80cbc4 !default;
250
+ $material-color-teal-300: #4db6ac !default;
251
+ $material-color-teal-400: #26a69a !default;
252
+ $material-color-teal-500: #009688 !default;
253
+ $material-color-teal-600: #00897b !default;
254
+ $material-color-teal-700: #00796b !default;
255
+ $material-color-teal-800: #00695c !default;
256
+ $material-color-teal-900: #004d40 !default;
257
+ $material-color-teal-a100: #a7ffeb !default;
258
+ $material-color-teal-a200: #64ffda !default;
259
+ $material-color-teal-a400: #1de9b6 !default;
260
+ $material-color-teal-a700: #00bfa5 !default;
261
+
262
+ $material-color-yellow-050: #fffde7 !default;
263
+ $material-color-yellow-100: #fff9c4 !default;
264
+ $material-color-yellow-200: #fff59d !default;
265
+ $material-color-yellow-300: #fff176 !default;
266
+ $material-color-yellow-400: #ffee58 !default;
267
+ $material-color-yellow-500: #ffeb3b !default;
268
+ $material-color-yellow-600: #fdd835 !default;
269
+ $material-color-yellow-700: #fbc02d !default;
270
+ $material-color-yellow-800: #f9a825 !default;
271
+ $material-color-yellow-900: #f57f17 !default;
272
+ $material-color-yellow-a100: #ffff8d !default;
273
+ $material-color-yellow-a200: #ffff00 !default;
274
+ $material-color-yellow-a400: #ffea00 !default;
275
+ $material-color-yellow-a700: #ffd600 !default;
276
+
277
+
278
+
279
+ // Black and white
280
+ // Based on https://material.google.com/style/color.html#color-text-background-colors
281
+
282
+ $black: #000000 !default;
283
+
284
+ $black-primary-opacity: .87 !default;
285
+ $black-secondary-opacity: .54 !default;
286
+ $black-hint-opacity: .38 !default;
287
+ $black-divider-opacity: .12 !default;
288
+
289
+ $black-primary-solid: #212121 !default;
290
+ $black-secondary-solid: #757575 !default;
291
+ $black-hint-solid: #9e9e9e !default;
292
+ $black-divider-solid: #e1e1e1 !default;
293
+
294
+ $black-primary: rgba(red($black), green($black), blue($black), $black-primary-opacity) !default;
295
+ $black-secondary: rgba(red($black), green($black), blue($black), $black-secondary-opacity) !default;
296
+ $black-hint: rgba(red($black), green($black), blue($black), $black-hint-opacity) !default;
297
+ $black-divider: rgba(red($black), green($black), blue($black), $black-divider-opacity) !default;
298
+
299
+ $white: #ffffff !default;
300
+
301
+ $white-primary-opacity: 1 !default;
302
+ $white-secondary-opacity: .7 !default;
303
+ $white-hint-opacity: .5 !default;
304
+ $white-divider-opacity: .12 !default;
305
+
306
+ $white-primary: rgba(red($white), green($white), blue($white), $white-primary-opacity) !default;
307
+ $white-secondary: rgba(red($white), green($white), blue($white), $white-secondary-opacity) !default;
308
+ $white-hint: rgba(red($white), green($white), blue($white), $white-hint-opacity) !default;
309
+ $white-divider: rgba(red($white), green($white), blue($white), $white-divider-opacity) !default;
310
+
311
+
312
+
313
+ // Theme
314
+ // Based on https://material.google.com/style/color.html#color-themes
315
+
316
+ $dark-theme-1: #000000 !default;
317
+ $dark-theme-2: $material-color-grey-900 !default;
318
+ $dark-theme-3: #303030 !default;
319
+ $dark-theme-4: $material-color-grey-800 !default;
320
+
321
+ $light-theme-1: $material-color-grey-300 !default;
322
+ $light-theme-2: $material-color-grey-100 !default;
323
+ $light-theme-3: $material-color-grey-050 !default;
324
+ $light-theme-4: #ffffff !default;
@@ -0,0 +1,65 @@
1
+ @mixin _assert-ascending($map, $map-name) {
2
+ $prev-key: null;
3
+ $prev-num: null;
4
+
5
+ @each $key, $num in $map {
6
+ @if $prev-num == null {
7
+ // Do nothing
8
+ } @else if not comparable($num, $prev-num) {
9
+ @warn 'Potentially invalid value for #{$map-name}: This map must be in ascending order, but key "#{$key}"" has value #{$num} whose unit makes it incomparable to #{$prev-num}, the value of the previous key "#{$prev-key}"!';
10
+ } @else if $num <= $prev-num {
11
+ @warn 'Invalid value for #{$map-name}: This map must be in ascending order, but key "#{$key}" has value #{$num} which isn\'t greater than #{$prev-num}, the value of the previous key "#{$prev-key}"!';
12
+ }
13
+
14
+ $prev-key: $key;
15
+ $prev-num: $num;
16
+ }
17
+ }
18
+
19
+ @mixin _assert-starts-at-zero($map) {
20
+ $first-value: nth(map-values($map), 1);
21
+
22
+ @if $first-value != 0 {
23
+ @warn 'First breakpoint in `$grid-breakpoints` must start at 0, but starts at #{$first-value}.';
24
+ }
25
+ }
26
+
27
+
28
+
29
+ // Colour contrast
30
+
31
+ @mixin color-yiq($color) {
32
+ $r: red($color);
33
+ $g: green($color);
34
+ $b: blue($color);
35
+
36
+ $yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;
37
+
38
+ @if ($yiq >= 150) {
39
+ color: $black-primary;
40
+ } @else {
41
+ color: $white-primary;
42
+ }
43
+ }
44
+
45
+
46
+
47
+ // Replace `$key` with `$replace` in `$content`
48
+
49
+ @function str-replace($content, $key, $replace: '') {
50
+ $index: str-index($content, $key);
51
+
52
+ @if $index {
53
+ @return str-slice($content, 1, $index - 1) + $replace + str-replace(str-slice($content, $index + str-length($key)), $key, $replace);
54
+ }
55
+
56
+ @return $content;
57
+ }
58
+
59
+
60
+
61
+ // Return a theme colour palette
62
+
63
+ @function theme-color($key: 'primary') {
64
+ @return map-get($theme-colors , $key);
65
+ }
@@ -1,23 +1,23 @@
1
- @import "mixins/background-variant";
2
- @import "mixins/border-radius";
3
- @import "mixins/breakpoint";
4
- @import "mixins/clearfix";
5
- @import "mixins/form";
6
- @import "mixins/grid";
7
- @import "mixins/grid-framework";
8
- @import "mixins/hex-to-rgba";
9
- @import "mixins/hover";
10
- @import "mixins/image";
11
- @import "mixins/list";
12
- @import "mixins/nav-divider";
13
- @import "mixins/pull";
14
- @import "mixins/reset-text";
15
- @import "mixins/screenreader";
16
- @import "mixins/strip-unit";
17
- @import "mixins/tab-focus";
18
- @import "mixins/text-emphasis";
19
- @import "mixins/text-hide";
20
- @import "mixins/text-truncate";
21
- @import "mixins/transform";
22
- @import "mixins/transition";
23
- @import "mixins/typography";
1
+ @import 'mixins/background-variant';
2
+ @import 'mixins/border-radius';
3
+ @import 'mixins/breakpoint';
4
+ @import 'mixins/clearfix';
5
+ @import 'mixins/form';
6
+ @import 'mixins/grid';
7
+ @import 'mixins/grid-framework';
8
+ @import 'mixins/hex-to-rgba';
9
+ @import 'mixins/hover';
10
+ @import 'mixins/image';
11
+ @import 'mixins/list';
12
+ @import 'mixins/material-icons';
13
+ @import 'mixins/nav-divider';
14
+ @import 'mixins/pull';
15
+ @import 'mixins/reset-text';
16
+ @import 'mixins/screenreader';
17
+ @import 'mixins/strip-unit';
18
+ @import 'mixins/text-alignment';
19
+ @import 'mixins/text-emphasis';
20
+ @import 'mixins/text-hide';
21
+ @import 'mixins/text-truncate';
22
+ @import 'mixins/transition';
23
+ @import 'mixins/typography';