Comparing version 0.2.6 to 0.2.7
@@ -39,2 +39,22 @@ #!/usr/bin/env node | ||
break | ||
case 'font-face': | ||
var key = '@' + rule.type | ||
var value = {} | ||
rule.declarations.forEach(function (decl) { | ||
value[decl.property] = decl.value | ||
}) | ||
jssRules[key] = value | ||
break | ||
case 'keyframes': | ||
var key = '@' + rule.type + ' ' + rule.name | ||
var value = {} | ||
rule.keyframes.forEach(function (keyframe) { | ||
var frameKey = keyframe.values.join(', ') | ||
var frameValue = {} | ||
keyframe.declarations.forEach(function (decl) { | ||
frameValue[decl.property] = decl.value | ||
}) | ||
value[frameKey] = frameValue | ||
}) | ||
jssRules[key] = value | ||
} | ||
@@ -41,0 +61,0 @@ }) |
{ | ||
"name": "jss", | ||
"description": "Dynamic stylesheets for web components.", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Oleg Slobodskoi", |
@@ -1,3 +0,8 @@ | ||
## 0.2.5 / 2014-11-02 | ||
## 0.2.7 / 2014-11-02 | ||
- add @font-face to cli converter | ||
- add @keyframes to cli converter | ||
## 0.2.6 / 2014-11-02 | ||
- create perf comparence for bootstrap #13 | ||
@@ -4,0 +9,0 @@ |
{ | ||
"name": "jss", | ||
"description": "Dynamic stylesheets for web components.", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Oleg Slobodskoi", |
Sorry, the diff of this file is not supported yet
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
328314
7712