From 9b605fee491247cd0b67a2fbbeaed447562f7a35 Mon Sep 17 00:00:00 2001 From: Korgan Date: Fri, 19 Dec 2014 20:22:11 +0100 Subject: [PATCH] explanation added --- less/_mixins.less | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/less/_mixins.less b/less/_mixins.less index 4c7b9a88..fd794e7a 100644 --- a/less/_mixins.less +++ b/less/_mixins.less @@ -18,6 +18,17 @@ }); } +/** + * To use this mixin u should pass a function as final parameter to define + * the style. In that definition u can use the following variables to define it. + * + * @material-color-name ---> "red", "green", "indigo" ... + * @material-color-full-name ---> "red", "green-50", "indigo-400" ... + * @material-color ---> #f44336, #e8f5e9, #5c6bc0 ... + * @text-color ---> rgba(255,255,255,0.84), rgba(0,0,0,0.84), rgba(255,255,255,0.84) ... + * + */ + .generic-variations(@extra, @default, @func) { @contrast-factor: 40%;