File tree 3 files changed +9
-4
lines changed
3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change
1
+ # 1.3.0 - 2015-06-13
2
+
3
+ - Changed: upgrade to PostCSS 4.1.x
4
+
1
5
# 1.2.0 - 2015-03-12
2
6
3
7
- Added: contrast() adjuster
Original file line number Diff line number Diff line change 1
1
/**
2
2
* Module dependencies.
3
3
*/
4
+ var postcss = require ( "postcss" )
4
5
var balanced = require ( "balanced-match" )
5
6
var colorFn = require ( "css-color-function" )
6
7
var helpers = require ( "postcss-message-helpers" )
7
8
8
9
/**
9
10
* PostCSS plugin to transform color()
10
11
*/
11
- module . exports = function plugin ( ) {
12
+ module . exports = postcss . plugin ( "postcss-color- function" , function ( ) {
12
13
return function ( style ) {
13
14
style . eachDecl ( function transformDecl ( decl ) {
14
15
if ( ! decl . value || decl . value . indexOf ( "color(" ) === - 1 ) {
@@ -20,7 +21,7 @@ module.exports = function plugin() {
20
21
} , decl . source )
21
22
} )
22
23
}
23
- }
24
+ } )
24
25
25
26
/**
26
27
* Transform color() to rgb()
Original file line number Diff line number Diff line change 5
5
"keywords" : [
6
6
" css" ,
7
7
" postcss" ,
8
- " postcss-plugins " ,
8
+ " postcss-plugin " ,
9
9
" color" ,
10
10
" colour" ,
11
11
" function"
24
24
"dependencies" : {
25
25
"balanced-match" : " ^0.1.0" ,
26
26
"css-color-function" : " ^1.2.0" ,
27
+ "postcss" : " ^4.1.11" ,
27
28
"postcss-message-helpers" : " ^1.1.0"
28
29
},
29
30
"devDependencies" : {
30
31
"jscs" : " ^1.6.2" ,
31
32
"jshint" : " ^2.5.6" ,
32
- "postcss" : " ^4.0.2" ,
33
33
"tape" : " ^3.0.0"
34
34
},
35
35
"scripts" : {
You can’t perform that action at this time.
0 commit comments