Comparing version 1.5.0 to 1.5.1
@@ -85,3 +85,3 @@ function main(configuration) { | ||
"replace": /(\-?(\d?\.\d+|\d+))/i, | ||
"other": /#[^\s]*|hsl(a?)\(.*?\)|rgb(a?)\(.*?\)/ig, | ||
"other": /hsl(a?)\(.*?\)|rgb(a?)\(.*?\)/ig, | ||
"others": [], | ||
@@ -97,3 +97,3 @@ "saveOthers": function (value) { | ||
"action": function (prop, value) { | ||
var parts = this.saveOthers(value).split(",");; | ||
var parts = this.saveOthers(value).split(","); | ||
for (var x = 0; x < parts.length; x++) | ||
@@ -185,3 +185,3 @@ parts[x] = util.negate(parts[x]); | ||
"percent": /%/, | ||
"other": /url\([^]*?\)|#[^\s]*|hsl(a?)\([^]*?\)|rgb(a?)\([^]*?\)|color-stop\([^]*?\)|\b.*?gradient\([^]*\)/ig, | ||
"other": /url\([^]*?\)|#[0-9a-f]{3,6}|hsl(a?)\([^]*?\)|rgb(a?)\([^]*?\)|color-stop\([^]*?\)|\b.*?gradient\([^]*\)/ig, | ||
"others": [], | ||
@@ -188,0 +188,0 @@ "saveOthers": function (value) { |
{ | ||
"author": "Mohammad Younes", | ||
"name": "rtlcss", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Framework for transforming cascading style sheets (CSS) from left-to-right (LTR) to right-to-left (RTL)", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/MohammadYounes/rtlcss/issues?state=open", |
@@ -1,2 +0,2 @@ | ||
<img title="RTL CSS" src="https://cloud.githubusercontent.com/assets/4712046/5889219/190f366a-a425-11e4-8ef5-8b5f60a9e903.png"> | ||
<img title="RTL CSS" src="https://cloud.githubusercontent.com/assets/4712046/5889219/190f366a-a425-11e4-8ef5-8b5f60a9e903.png" align="right"/> | ||
[![GitHub version](https://badge.fury.io/gh/MohammadYounes%2Frtlcss.svg)](http://badge.fury.io/gh/MohammadYounes%2Frtlcss) | ||
@@ -365,2 +365,5 @@ [![NPM version](https://badge.fury.io/js/rtlcss.svg)](http://badge.fury.io/js/rtlcss) | ||
## Release Notes | ||
* **v1.5.1** [14 Feb. 2015] | ||
* Fix flipping multiple shadows when a hex color was used. **Thanks @ocean90** | ||
* **v1.5.0** [30 Jan. 2015] | ||
@@ -367,0 +370,0 @@ * CLI: New option `-e,--ext` to set output files extension when processing a directory. |
@@ -348,10 +348,16 @@ var assert = require("assert"); | ||
'should': 'Should mirror property value: box-shadow', | ||
'expected': 'div { box-shadow: -60px -16px teal, -10px 5px 5px red,inset -5em 1em 0 white; }', | ||
'input': 'div { box-shadow: 60px -16px teal, 10px 5px 5px red,inset 5em 1em 0 white; }', | ||
'expected': 'div { box-shadow: -60px -16px rgba(0, 128, 128, 0.98), -10px 5px 5px #ff0, inset -5em 1em 0 white; }', | ||
'input': 'div { box-shadow: 60px -16px rgba(0, 128, 128, 0.98), 10px 5px 5px #ff0, inset 5em 1em 0 white; }', | ||
'reversable': true | ||
}, | ||
{ | ||
'should': 'Should mirror property value: box-shadow', | ||
'expected': 'div { box-shadow: -60px -16px rgba(0, 128, 128, 0.98), -10px 5px 5px #ff0, inset -5em 1em 0 white; }', | ||
'input': 'div { box-shadow: 60px -16px rgba(0, 128, 128, 0.98), 10px 5px 5px #ff0, inset 5em 1em 0 white; }', | ||
'reversable': true | ||
}, | ||
{ | ||
'should': 'Should mirror property value: text-shadow', | ||
'expected': 'div { text-shadow: -60px -16px teal, -10px 5px 5px red,inset -5em 1em 0 white; }', | ||
'input': 'div { text-shadow: 60px -16px teal, 10px 5px 5px red,inset 5em 1em 0 white; }', | ||
'expected': 'div { text-shadow: -60px -16px rgba(0, 128, 128, 0.98), -10px 5px 5px #ff0, inset -5em 1em 0 white; }', | ||
'input': 'div { text-shadow: 60px -16px rgba(0, 128, 128, 0.98), 10px 5px 5px #ff0, inset 5em 1em 0 white; }', | ||
'reversable': true | ||
@@ -358,0 +364,0 @@ }, |
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
104031
2072
453