Comparing version 0.4.13 to 0.4.14
{ | ||
"name": "more-css", | ||
"version": "0.4.13", | ||
"version": "0.4.14", | ||
"description": "a css pre-compiler & agressive compressor", | ||
@@ -5,0 +5,0 @@ "maintainers": [ |
@@ -62,4 +62,5 @@ var Class = require('../util/Class'), | ||
EXTEND: 'extend', | ||
FORMAT: 'format' | ||
FORMAT: 'format', | ||
KEYFRAMES: 'keyframes' | ||
}); | ||
module.exports = Node; |
@@ -55,3 +55,17 @@ var Class = require('../util/Class'), | ||
head: function() { | ||
switch(this.look.content()) { | ||
var s = this.look.content(); | ||
var i = -1; | ||
if((i = s.indexOf('-webkit-')) > -1) { | ||
s = s.slice(0, i) + s.slice(i + 8); | ||
} | ||
else if((i = s.indexOf('-moz-')) > -1) { | ||
s = s.slice(0, i) + s.slice(i + 5); | ||
} | ||
else if((i = s.indexOf('-ms-')) > -1) { | ||
s = s.slice(0, i) + s.slice(i + 4); | ||
} | ||
else if((i = s.indexOf('-o-')) > -1) { | ||
s = s.slice(0, i) + s.slice(i + 3); | ||
} | ||
switch(s) { | ||
case '@import': | ||
@@ -58,0 +72,0 @@ return this.impt(); |
@@ -63,5 +63,6 @@ define(function(require, exports, module) { | ||
EXTEND: 'extend', | ||
FORMAT: 'format' | ||
FORMAT: 'format', | ||
KEYFRAMES: 'keyframes' | ||
}); | ||
module.exports = Node; | ||
}); |
@@ -56,3 +56,17 @@ define(function(require, exports, module) { | ||
head: function() { | ||
switch(this.look.content()) { | ||
var s = this.look.content(); | ||
var i = -1; | ||
if((i = s.indexOf('-webkit-')) > -1) { | ||
s = s.slice(0, i) + s.slice(i + 8); | ||
} | ||
else if((i = s.indexOf('-moz-')) > -1) { | ||
s = s.slice(0, i) + s.slice(i + 5); | ||
} | ||
else if((i = s.indexOf('-ms-')) > -1) { | ||
s = s.slice(0, i) + s.slice(i + 4); | ||
} | ||
else if((i = s.indexOf('-o-')) > -1) { | ||
s = s.slice(0, i) + s.slice(i + 3); | ||
} | ||
switch(s) { | ||
case '@import': | ||
@@ -59,0 +73,0 @@ return this.impt(); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
425026
9939