Skip to content

Commit

Permalink
Version 2.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Brzek committed Nov 11, 2013
1 parent 5ad27b0 commit 5f0d9da
Show file tree
Hide file tree
Showing 14 changed files with 1,466 additions and 1,468 deletions.
5 changes: 2 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,13 @@ module.exports = function(grunt) {
}
}
}

});
});

/**
* Register tasks
*/

grunt.registerTask('version', ['prompt:version', 'iterate', 'build', 'mixins_update']);
grunt.registerTask('version', ['prompt:version', 'iterate', 'build', 'mixins_update', 'git']);
grunt.registerTask('dev', ['build', 'test']);
grunt.registerTask('generate', ['prompt:generate', 'generator']);
grunt.registerTask('contrib', ['build', 'test', 'mixins_update', 'prefix', 'documentation']);
Expand Down
2 changes: 1 addition & 1 deletion README-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ README.md file is automatically generated.

---
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;![LESS Hat 2.0](http://media.giphy.com/media/lI6nHr5hWXlu0/giphy.gif) ![LESS Hat 2.0](http://f.cl.ly/items/3R3014421y2x1w2s1v07/untitled-12.png)
## Current version: v{{ version }}
<br>
## 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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ README.md file is automatically generated.

---
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;![LESS Hat 2.0](http://media.giphy.com/media/lI6nHr5hWXlu0/giphy.gif) ![LESS Hat 2.0](http://f.cl.ly/items/3R3014421y2x1w2s1v07/untitled-12.png)
## Current version: v2.0.4 (2013-11-11)
<br>
## 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.3",
"version": "2.0.4",
"main": "./build/lesshat.less"
}
1,400 changes: 700 additions & 700 deletions build/lesshat-prefixed.less

Large diffs are not rendered by default.

1,400 changes: 700 additions & 700 deletions build/lesshat.less

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion mixins/background-image/background-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ backgroundImage.ms = function backgroundImageMs(value) {
// Glue it together
var syntax = [];
var passed = svg_gradients.every(function(element) {
//debugger;
for (var i in element) {
if (element[i] == false || (element[i].length == 0)) {
return false;
Expand Down
28 changes: 14 additions & 14 deletions mixins/calc/result.less
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
@state: 69; // Yeah totally random number

.inception (@arguments) when (@webkit_local = true) and (@moz_local = true) and (@w3c_local = true) and not (@process = 08121991) { @state: 1; -lh-property: @process; }
.inception (@arguments) when (@webkit_local = true) and (@moz_local = true) and (@w3c_local = true) and (@process = 08121991) {}
.inception (@arguments) when (@webkit_local = true) and (@moz_local = true) and not (@w3c_local = true) and not (@process = 08121991) { @state: 2; -lh-property: @process; }
.inception (@arguments) when (@webkit_local = true) and (@moz_local = true) and not (@w3c_local = true) and (@process = 08121991) {}
.inception (@arguments) when (@webkit_local = true) and not (@moz_local = true) and (@w3c_local = true) and not (@process = 08121991) { @state: 3; -lh-property: @process; }
.inception (@arguments) when (@webkit_local = true) and not (@moz_local = true) and (@w3c_local = true) and (@process = 08121991) {}
.inception (@arguments) when (@webkit_local = true) and not (@moz_local = true) and not (@w3c_local = true) and not (@process = 08121991) { @state: 4; -lh-property: @process; }
.inception (@arguments) when (@webkit_local = true) and not (@moz_local = true) and not (@w3c_local = true) and (@process = 08121991) {}
.inception (@arguments) when not (@webkit_local = true) and (@moz_local = true) and (@w3c_local = true) and not (@process = 08121991) { @state: 5; -lh-property: @process; }
.inception (@arguments) when not (@webkit_local = true) and (@moz_local = true) and (@w3c_local = true) and (@process = 08121991) {}
.inception (@arguments) when not (@webkit_local = true) and (@moz_local = true) and not (@w3c_local = true) and not (@process = 08121991) { @state: 6; -lh-property: @process; }
.inception (@arguments) when not (@webkit_local = true) and (@moz_local = true) and not (@w3c_local = true) and (@process = 08121991) {}
.inception (@arguments) when not (@webkit_local = true) and not (@moz_local = true) and (@w3c_local = true) and not (@process = 08121991) { @state: 7; -lh-property: @process; }
.inception (@arguments) when not (@webkit_local = true) and not (@moz_local = true) and (@w3c_local = true) and (@process = 08121991) {}
.inception (@arguments) when (@webkit_local = true) and (@moz_local = true) and (@w3c_local = true) and (isstring(@process)) and not (iscolor(@process)) and not (isnumber(@process)) and not (iskeyword(@process)) and not (isurl(@process)) and not (ispixel(@process)) and not (ispercentage(@process)) and not (isem(@process)) { @state: 1; -lh-property: @process; }
.inception (@arguments) when (@webkit_local = true) and (@moz_local = true) and (@w3c_local = true) and not (isstring(@process)) and not (iscolor(@process)) and not (isnumber(@process)) and not (iskeyword(@process)) and not (isurl(@process)) and not (ispixel(@process)) and not (ispercentage(@process)) and not (isem(@process)) {}
.inception (@arguments) when (@webkit_local = true) and (@moz_local = true) and not (@w3c_local = true) and (isstring(@process)) and not (iscolor(@process)) and not (isnumber(@process)) and not (iskeyword(@process)) and not (isurl(@process)) and not (ispixel(@process)) and not (ispercentage(@process)) and not (isem(@process)) { @state: 2; -lh-property: @process; }
.inception (@arguments) when (@webkit_local = true) and (@moz_local = true) and not (@w3c_local = true) and not (isstring(@process)) and not (iscolor(@process)) and not (isnumber(@process)) and not (iskeyword(@process)) and not (isurl(@process)) and not (ispixel(@process)) and not (ispercentage(@process)) and not (isem(@process)) {}
.inception (@arguments) when (@webkit_local = true) and not (@moz_local = true) and (@w3c_local = true) and (isstring(@process)) and not (iscolor(@process)) and not (isnumber(@process)) and not (iskeyword(@process)) and not (isurl(@process)) and not (ispixel(@process)) and not (ispercentage(@process)) and not (isem(@process)) { @state: 3; -lh-property: @process; }
.inception (@arguments) when (@webkit_local = true) and not (@moz_local = true) and (@w3c_local = true) and not (isstring(@process)) and not (iscolor(@process)) and not (isnumber(@process)) and not (iskeyword(@process)) and not (isurl(@process)) and not (ispixel(@process)) and not (ispercentage(@process)) and not (isem(@process)) {}
.inception (@arguments) when (@webkit_local = true) and not (@moz_local = true) and not (@w3c_local = true) and (isstring(@process)) and not (iscolor(@process)) and not (isnumber(@process)) and not (iskeyword(@process)) and not (isurl(@process)) and not (ispixel(@process)) and not (ispercentage(@process)) and not (isem(@process)) { @state: 4; -lh-property: @process; }
.inception (@arguments) when (@webkit_local = true) and not (@moz_local = true) and not (@w3c_local = true) and not (isstring(@process)) and not (iscolor(@process)) and not (isnumber(@process)) and not (iskeyword(@process)) and not (isurl(@process)) and not (ispixel(@process)) and not (ispercentage(@process)) and not (isem(@process)) {}
.inception (@arguments) when not (@webkit_local = true) and (@moz_local = true) and (@w3c_local = true) and (isstring(@process)) and not (iscolor(@process)) and not (isnumber(@process)) and not (iskeyword(@process)) and not (isurl(@process)) and not (ispixel(@process)) and not (ispercentage(@process)) and not (isem(@process)) { @state: 5; -lh-property: @process; }
.inception (@arguments) when not (@webkit_local = true) and (@moz_local = true) and (@w3c_local = true) and not (isstring(@process)) and not (iscolor(@process)) and not (isnumber(@process)) and not (iskeyword(@process)) and not (isurl(@process)) and not (ispixel(@process)) and not (ispercentage(@process)) and not (isem(@process)) {}
.inception (@arguments) when not (@webkit_local = true) and (@moz_local = true) and not (@w3c_local = true) and (isstring(@process)) and not (iscolor(@process)) and not (isnumber(@process)) and not (iskeyword(@process)) and not (isurl(@process)) and not (ispixel(@process)) and not (ispercentage(@process)) and not (isem(@process)) { @state: 6; -lh-property: @process; }
.inception (@arguments) when not (@webkit_local = true) and (@moz_local = true) and not (@w3c_local = true) and not (isstring(@process)) and not (iscolor(@process)) and not (isnumber(@process)) and not (iskeyword(@process)) and not (isurl(@process)) and not (ispixel(@process)) and not (ispercentage(@process)) and not (isem(@process)) {}
.inception (@arguments) when not (@webkit_local = true) and not (@moz_local = true) and (@w3c_local = true) and (isstring(@process)) and not (iscolor(@process)) and not (isnumber(@process)) and not (iskeyword(@process)) and not (isurl(@process)) and not (ispixel(@process)) and not (ispercentage(@process)) and not (isem(@process)) { @state: 7; -lh-property: @process; }
.inception (@arguments) when not (@webkit_local = true) and not (@moz_local = true) and (@w3c_local = true) and not (isstring(@process)) and not (iscolor(@process)) and not (isnumber(@process)) and not (iskeyword(@process)) and not (isurl(@process)) and not (ispixel(@process)) and not (ispercentage(@process)) and not (isem(@process)) {}
.inception (@arguments) when not (@webkit_local = true) and not (@moz_local = true) and not (@w3c_local = true) {}
.inception(@arguments);
20 changes: 10 additions & 10 deletions mixins/display/display.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

var display = function display(value) {

if (value != 'flex' || value != 'inline-flex') {
if (value != 'flex' && value != 'inline-flex') {
value = 08121991;
}

Expand All @@ -13,7 +13,7 @@ var display = function display(value) {

display.oldwebkit = function displayWebkit(value) {

if (value == 'flex' || value == 'inline-flex') {
if (value == 'flex' && value == 'inline-flex') {
value = '-webkit-box';
} else {
value = 08121991;
Expand All @@ -24,10 +24,8 @@ display.oldwebkit = function displayWebkit(value) {

display.moz = function displayWebkit(value) {

if (value == 'flex') {
value = '-ms-flexbox';
} else if (value == 'inline-flex') {
value = '-ms-inline-flexbox';
if (value == 'flex' && value == 'inline-flex') {
value = '-moz-box';
} else {
value = 08121991;
}
Expand All @@ -37,8 +35,10 @@ display.moz = function displayWebkit(value) {

display.ms = function displayWebkit(value) {

if (value == 'flex' || value == 'inline-flex') {
value = '-moz-box';
if (value == 'flex') {
value = '-ms-flexbox';
} else if (value == 'inline-flex') {
value = '-ms-inline-flexbox';
} else {
value = 08121991;
}
Expand All @@ -48,7 +48,7 @@ display.ms = function displayWebkit(value) {

display.webkit = function displayWebkit(value) {

if (value == 'flex' || value == 'inline-flex') {
if (value == 'flex' && value == 'inline-flex') {
value = '-webkit-' + value;
} else {
value = 08121991;
Expand All @@ -75,4 +75,4 @@ display.vendors = ['oldwebkit', 'moz', 'webkit', 'ms'];
* Export mixin
*/

module.exports = display;
module.exports = display;
6 changes: 3 additions & 3 deletions mixins/flex-direction/flex-direction.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var flexDirection = function flexDirection(value) {

flexDirection.oldestwebkit = function oldestwebkitFlexDirection(value) {

if (value == 'row'|| value == 'column') {
if (value == 'row' || value == 'column') {
value = 'normal';
}
else if (value == 'row-reverse' || value == 'column-reverse') {
Expand All @@ -25,7 +25,7 @@ flexDirection.oldestwebkit = function oldestwebkitFlexDirection(value) {

flexDirection.oldermoz = function oldermozFlexDirection(value) {

if (value == 'row'|| value == 'column') {
if (value == 'row' || value == 'column') {
value = 'normal';
}
else if (value == 'row-reverse' || value == 'column-reverse') {
Expand Down Expand Up @@ -101,4 +101,4 @@ flexDirection.vendors = ['oldestwebkit','oldermoz','olderwebkit','moz','webkit',
* Export mixin
*/

module.exports = flexDirection;
module.exports = flexDirection;
2 changes: 1 addition & 1 deletion mixins/justify-content/justify-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ justifyContent.vendors = ['oldestwebkit','moz','webkit','ms'];
* Export mixin
*/

module.exports = justifyContent;
module.exports = justifyContent;
Loading

0 comments on commit 5f0d9da

Please sign in to comment.