mdb-ui-kit/sass/_mixins.scss

42 lines
1.2 KiB
SCSS
Raw Normal View History

2015-11-04 23:49:03 +03:00
// This file is NOT automatically converted and must be manually merged
@import 'mixins-shared';
2014-10-03 15:58:24 +04:00
@mixin generic-variations-colors($args) {
$mdb-colors: (
"red": $red,
"pink": $pink,
"purple": $purple,
"deep-purple": $deep-purple,
"indigo": $indigo,
"blue": $blue,
"light-blue": $light-blue,
"cyan": $cyan,
"teal": $teal,
"green": $green,
"light-green": $light-green,
"lime": $lime,
"yellow": $yellow,
"amber": $amber,
"orange": $orange,
"deep-orange": $deep-orange,
"brown": $brown,
"grey": $grey,
"blue-grey": $blue-grey
);
@each $mdb-color-name, $mdb-color in $mdb-colors {
// build a single depth color palette
$args-variation-color: map-merge($args, (
material-color-name: $mdb-color-name,
material-color: $mdb-color,
material-color-number: ""
));
@include generic-variations-color($args-variation-color)
}
2014-10-08 16:52:08 +04:00
}
// http://hugogiraudel.com/2014/01/27/casting-types-in-sass/
// https://github.com/HugoGiraudel/SassyJSON/blob/master/stylesheets/decode/helpers/color/_color.scss