Skip to content

Commit

Permalink
Version 2.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Brzek committed Nov 26, 2013
1 parent a5c9f4a commit c79350f
Show file tree
Hide file tree
Showing 24 changed files with 75 additions and 67 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ README.md file is automatically generated.
**[Documentation](#documentation) |**

---
### Current version: v2.0.9 (2013-11-25)
### Current version: v2.0.10 (2013-11-26)
## Intro
Why LESS Hat? In August 2012, while we were developing and extending [CSS Hat](www.csshat.com) for LESS we needed universal mixins. Unfortunately, none of available were good enough that would satisfy our needs and that’s why we created new custom ones on our own, which have become the most popular mixin library for the whole LESS CSS.

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "lesshat",
"version": "2.0.9",
"version": "2.0.10",
"main": "./build/lesshat.less"
}
42 changes: 21 additions & 21 deletions build/lesshat-prefixed.less

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions build/lesshat.less

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion mixins/animation/animation.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
var animation = function animation(value) {
value = value || 'none';

if (/^[-a-zA-Z0-9().\/]*,/.test(value)) {
if (/^[^, ]*,/.test(value)) {
value = value.replace(/(?:,)(?![^(]*\))/g, '');
}

Expand Down
2 changes: 1 addition & 1 deletion mixins/background-size/background-size.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var backgroundSize = function backgroundSize(value) {
var numRegex = /\d/gi;
var numWithoutValue = /(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;

if (/^[-a-zA-Z0-9().\/]*,/.test(value)) {
if (/^[^, ]*,/.test(value)) {
value = value.replace(/(?:,)(?![^(]*\))/g, '');
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var borderBottomLeftRadius = function borderBottomLeftRadius(value) {
var numRegex = /\d/gi;
var numWithoutValue = /(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;

if (/^[-a-zA-Z0-9().\/]*,/.test(value)) {
if (/^[^, ]*,/.test(value)) {
value = value.replace(/(?:,)(?![^(]*\))/g, '');
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var borderBottomRightRadius = function borderBottomRightRadius(value) {
var numRegex = /\d/gi;
var numWithoutValue = /(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;

if (/^[-a-zA-Z0-9().\/]*,/.test(value)) {
if (/^[^, ]*,/.test(value)) {
value = value.replace(/(?:,)(?![^(]*\))/g, '');
}

Expand Down
2 changes: 1 addition & 1 deletion mixins/border-image/border-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
var borderImage = function borderImage(value) {
value = value || 08121991;

if (/^[-a-zA-Z0-9().\/]*,/.test(value)) {
if (/^[^, ]*,/.test(value)) {
value = value.replace(/(?:,)(?![^(]*\))/g, '');
}

Expand Down
2 changes: 1 addition & 1 deletion mixins/border-radius/border-radius.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var borderRadius = function borderRadius(value) {
var numRegex = /\d/gi;
var numWithoutValue = /(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;

if (/^[-a-zA-Z0-9().\/]*,/.test(value)) {
if (/^[^, ]*,/.test(value)) {
value = value.replace(/(?:,)(?![^(]*\))/g, '');
}

Expand Down
2 changes: 1 addition & 1 deletion mixins/border-top-left-radius/border-top-left-radius.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var borderTopLeftRadius = function borderTopLeftRadius(value) {
var numRegex = /\d/gi;
var numWithoutValue = /(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;

if (/^[-a-zA-Z0-9().\/]*,/.test(value)) {
if (/^[^, ]*,/.test(value)) {
value = value.replace(/(?:,)(?![^(]*\))/g, '');
}

Expand Down
2 changes: 1 addition & 1 deletion mixins/border-top-right-radius/border-top-right-radius.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var borderTopRightRadius = function borderTopRightRadius(value) {
var numRegex = /\d/gi;
var numWithoutValue = /(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;

if (/^[-a-zA-Z0-9().\/]*,/.test(value)) {
if (/^[^, ]*,/.test(value)) {
value = value.replace(/(?:,)(?![^(]*\))/g, '');
}

Expand Down
2 changes: 1 addition & 1 deletion mixins/box-shadow/box-shadow.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ boxShadow = function boxShadow(value) {
var numRegex = /\d/gi;
var numWithoutValue = /(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;

if (/^[-a-zA-Z0-9().\/]*,/.test(value)) {
if (/^[^, ]*,/.test(value)) {
value = value.replace(/(?:,)(?![^(]*\))/g, '');
}

Expand Down
2 changes: 1 addition & 1 deletion mixins/column-rule/column-rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var columnRule = function columnRule(value) {
var numRegex = /\d/gi;
var numWithoutValue = /(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;

if (/^[-a-zA-Z0-9().\/]*,/.test(value)) {
if (/^[^, ]*,/.test(value)) {
value = value.replace(/(?:,)(?![^(]*\))/g, '');
}

Expand Down
2 changes: 1 addition & 1 deletion mixins/columns/columns.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var columns = function columns(value) {
value = value || 'auto auto';
var numRegex = /^\d+$/;

if (/^[-a-zA-Z0-9().\/]*,/.test(value)) {
if (/^[^, ]*,/.test(value)) {
value = value.replace(/(?:,)(?![^(]*\))/g, '');
value = value.split(' ');
}
Expand Down
2 changes: 1 addition & 1 deletion mixins/drop-shadow/drop-shadow.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var dropShadow = function dropShadow(value) {
var numRegex = /\d/gi;
var numWithoutValue = /(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;

if (/^[-a-zA-Z0-9().\/]*,/.test(value)) {
if (/^[^, ]*,/.test(value)) {
value = value.replace(/(?:,)(?![^(]*\))/g, '');
}

Expand Down
2 changes: 1 addition & 1 deletion mixins/filter/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
var filter = function filter(value) {
value = value || 'none';

if (/^[-a-zA-Z0-9().\/]*,/.test(value)) {
if (/^[^, ]*,/.test(value)) {
value = value.replace(/(?:,)(?![^(]*\))/g, '');
}

Expand Down
2 changes: 1 addition & 1 deletion mixins/flex/flex.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
var flex = function flex(value) {
value = value || '0 1 auto';

if (/^[-a-zA-Z0-9().\/]*,/.test(value)) {
if (/^[^, ]*,/.test(value)) {
value = value.replace(/(?:,)(?![^(]*\))/g, '');
}

Expand Down
2 changes: 1 addition & 1 deletion mixins/perspective-origin/perspective-origin.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var perspectiveOrigin = function perspectiveOrigin(value) {
var numRegex = /\d/gi;
var numWithoutValue = /(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;

if (/^[-a-zA-Z0-9().\/]*,/.test(value)) {
if (/^[^, ]*,/.test(value)) {
value = value.replace(/(?:,)(?![^(]*\))/g, '');
}

Expand Down
6 changes: 5 additions & 1 deletion mixins/perspective-origin/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ describe('perspective-origin', function() {
test.perspectiveOrigin('50 50', '50% 50%', done);
});

});
it('should return the same value', function(done) {
test.perspectiveOrigin('50% 50%', '50% 50%', done);
});

});
6 changes: 5 additions & 1 deletion mixins/transform-origin/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ describe('transform-origin', function() {
test.transformOrigin('50 50', '50% 50%', done);
});

});
it('should return the same value', function(done) {
test.transformOrigin('50% 50%', '50% 50%', done);
});

});
2 changes: 1 addition & 1 deletion mixins/transform-origin/transform-origin.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var transformOrigin = function transformOrigin(value) {
var numRegex = /\d/gi;
var numWithoutValue = /(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;

if (/^[-a-zA-Z0-9().\/]*,/.test(value)) {
if (/^[^, ]*,/.test(value)) {
value = value.replace(/(?:,)(?![^(]*\))/g, '');
}

Expand Down
8 changes: 4 additions & 4 deletions mixins/transition/transition.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var transition = function transition(value) {
var valueRegex = /(?:\d)(?:ms|s)/gi;
var numWithoutValue = /(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%)/gi;

if (/^[-a-zA-Z0-9().\/]*,/.test(value)) {
if (/^[^, ]*,/.test(value)) {
value = value.replace(/(?:,)(?![^(]*\))/g, '');
}

Expand Down Expand Up @@ -56,7 +56,7 @@ transition.webkit = function transition(value) {
var valueRegex = /(?:\d)(?:ms|s)/gi;
var numWithoutValue = /(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%)/gi;

if (/^[-a-zA-Z0-9().\/]*,/.test(value)) {
if (/^[^, ]*,/.test(value)) {
value = value.replace(/(?:,)(?![^(]*\))/g, '');
}

Expand Down Expand Up @@ -91,7 +91,7 @@ transition.moz = function transition(value) {
var valueRegex = /(?:\d)(?:ms|s)/gi;
var numWithoutValue = /(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%)/gi;

if (/^[-a-zA-Z0-9().\/]*,/.test(value)) {
if (/^[^, ]*,/.test(value)) {
value = value.replace(/(?:,)(?![^(]*\))/g, '');
}

Expand Down Expand Up @@ -126,7 +126,7 @@ transition.opera = function transition(value) {
var valueRegex = /(?:\d)(?:ms|s)/gi;
var numWithoutValue = /(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%)/gi;

if (/^[-a-zA-Z0-9().\/]*,/.test(value)) {
if (/^[^, ]*,/.test(value)) {
value = value.replace(/(?:,)(?![^(]*\))/g, '');
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "lesshat",
"description": "Most advanced LESS CSS mixins library",
"version": "2.0.9",
"version": "2.0.10",
"homepage": "http://lesshat.com/",
"author": {
"name": "Petr Brzek",
Expand Down

0 comments on commit c79350f

Please sign in to comment.