2015-11-03 18:57:40 +03:00
|
|
|
@import 'mixins-shared';
|
2015-11-02 23:39:13 +03:00
|
|
|
|
2015-11-04 19:57:10 +03:00
|
|
|
@mixin generic-variations-colors($args) {
|
2015-11-02 23:39:13 +03:00
|
|
|
|
2015-11-04 21:03:16 +03:00
|
|
|
// FIXME: see _mixins.scss regarding variable names and the below FIXME
|
2015-11-03 17:21:39 +03:00
|
|
|
$material-color-names: "red" "pink" "purple" "deep-purple" "indigo" "blue" "light-blue" "cyan" "teal" "green" "light-green" "lime" "yellow" "amber" "orange" "deep-orange" "brown" "grey" "blue-grey";
|
|
|
|
@each $material-color-name in $material-color-names {
|
|
|
|
// given a color build multiples depths
|
2015-11-03 03:29:40 +03:00
|
|
|
$material-color-numbers: "" "-50" "-100" "-200" "-300" "-400" "-500" "-600" "-700" "-800" "-900" "-A100" "-A200" "-A400" "-A700";
|
2015-11-03 17:21:39 +03:00
|
|
|
@each $material-color-number in $material-color-numbers {
|
2015-11-04 19:57:10 +03:00
|
|
|
|
2015-11-04 21:03:16 +03:00
|
|
|
$args-variation-color: map-merge($args, (
|
|
|
|
material-color-name: $material-color-name,
|
2015-11-04 19:57:10 +03:00
|
|
|
material-color-number: $material-color-number
|
|
|
|
));
|
|
|
|
|
2015-11-04 21:03:16 +03:00
|
|
|
// FIXME: these colors are defined in _colors.scss. Since there is no way to access a variable as a string
|
|
|
|
// FIXME: in sass, this needs to be changed to get a permutation as an actual variable.
|
|
|
|
// FIXME: http://krasimirtsonev.com/blog/article/SASS-interpolation-in-a-name-of-variable-nest-variables-within-variables
|
|
|
|
|
|
|
|
// FIXME: this shows a valid approach and adds a color function: https://github.com/darrenkopp/libsass-net/issues/12
|
|
|
|
@include generic-variations-color($args-variation-color)
|
2015-11-03 17:21:39 +03:00
|
|
|
}
|
|
|
|
}
|
2015-11-02 23:39:13 +03:00
|
|
|
}
|