mirror of
https://github.com/less/less.js.git
synced 2026-01-25 07:08:17 -05:00
ability to insert uppercase color names
This commit is contained in:
@@ -151,6 +151,8 @@ tree.Color.prototype = {
|
||||
};
|
||||
|
||||
tree.Color.fromKeyword = function(keyword) {
|
||||
keyword = keyword.toLowerCase();
|
||||
|
||||
if (tree.colors.hasOwnProperty(keyword)) {
|
||||
// detect named color
|
||||
return new(tree.Color)(tree.colors[keyword].slice(1));
|
||||
|
||||
Reference in New Issue
Block a user