2015-11-04 23:49:03 +03:00
|
|
|
// This file is NOT automatically converted and must be manually merged
|
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
|
2015-11-05 02:36:36 +03:00
|
|
|
// FIXME: in sass, this needs to be changed to get a permutation as an actual variable object.
|
2015-11-04 21:03:16 +03:00
|
|
|
// FIXME: http://krasimirtsonev.com/blog/article/SASS-interpolation-in-a-name-of-variable-nest-variables-within-variables
|
|
|
|
|
2015-11-05 02:36:36 +03:00
|
|
|
// FIXME: The following shows a valid approach and adds a color lookup function from a map, but would require changes in the less files:
|
|
|
|
// FIXME: https://github.com/darrenkopp/libsass-net/issues/12
|
2015-11-04 21:03:16 +03:00
|
|
|
@include generic-variations-color($args-variation-color)
|
2015-11-03 17:21:39 +03:00
|
|
|
}
|
|
|
|
}
|
2015-11-02 23:39:13 +03:00
|
|
|
}
|