Skip to content

Commit

Permalink
Version 2.0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Brzek committed Dec 11, 2013
1 parent 32cf57f commit e7dc667
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 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.11 (2013-12-04)
### Current version: v2.0.12 (2013-12-11)
## 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.11",
"version": "2.0.12",
"main": "./build/lesshat.less"
}
10 changes: 5 additions & 5 deletions build/lesshat-prefixed.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Handcrafted by Petr Brzek, lesshat.com
// Works great with CSS Hat csshat.com

// version: v2.0.11 (2013-12-04)
// version: v2.0.12 (2013-12-11)

// TABLE OF MIXINS:
// align-content
Expand Down Expand Up @@ -1102,11 +1102,11 @@
@ms_local: true;
@w3c_local: true;

@process_oldwebkit: ~`(function(value){return value="flex"==value&&"inline-flex"==value?"-webkit-box":8121991})((function(){var args="@{arguments}";return args=args.replace(/^\[|\]$/g,"")})())`;
@process_moz: ~`(function(value){return value="flex"==value&&"inline-flex"==value?"-moz-box":8121991})((function(){var args="@{arguments}";return args=args.replace(/^\[|\]$/g,"")})())`;
@process_webkit: ~`(function(value){return value="flex"==value&&"inline-flex"==value?"-webkit-"+value:8121991})((function(){var args="@{arguments}";return args=args.replace(/^\[|\]$/g,"")})())`;
@process_oldwebkit: ~`(function(value){return value="flex"==value||"inline-flex"==value?"-webkit-box":8121991})((function(){var args="@{arguments}";return args=args.replace(/^\[|\]$/g,"")})())`;
@process_moz: ~`(function(value){return value="flex"==value||"inline-flex"==value?"-moz-box":8121991})((function(){var args="@{arguments}";return args=args.replace(/^\[|\]$/g,"")})())`;
@process_webkit: ~`(function(value){return value="flex"==value||"inline-flex"==value?"-webkit-"+value:8121991})((function(){var args="@{arguments}";return args=args.replace(/^\[|\]$/g,"")})())`;
@process_ms: ~`(function(value){return value="flex"==value?"-ms-flexbox":"inline-flex"==value?"-ms-inline-flexbox":8121991})((function(){var args="@{arguments}";return args=args.replace(/^\[|\]$/g,"")})())`;
@process: ~`(function(value){return"flex"!=value&&"inline-flex"!=value&&(value=8121991),value})((function(){var args="@{arguments}";return args=args.replace(/^\[|\]$/g,"")})())`;
@process: ~`(function(value){return("flex"!=value||"inline-flex"!=value)&&(value=8121991),value})((function(){var args="@{arguments}";return args=args.replace(/^\[|\]$/g,"")})())`;

.result (@arguments, @signal, @boolean, @local_boolean) when (@boolean = true) and (@local_boolean = true) {
.inception (@signal, @arguments) when (@signal = 1) and (isstring(@process_oldwebkit)) and not (iscolor(@process_oldwebkit)) and not (isnumber(@process_oldwebkit)) and not (iskeyword(@process_oldwebkit)) and not (isurl(@process_oldwebkit)) and not (ispixel(@process_oldwebkit)) and not (ispercentage(@process_oldwebkit)) and not (isem(@process_oldwebkit)) { display: @process_oldwebkit; }
Expand Down
10 changes: 5 additions & 5 deletions build/lesshat.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Handcrafted by Petr Brzek, lesshat.com
// Works great with CSS Hat csshat.com

// version: v2.0.11 (2013-12-04)
// version: v2.0.12 (2013-12-11)

// TABLE OF MIXINS:
// align-content
Expand Down Expand Up @@ -1102,11 +1102,11 @@
@ms_local: true;
@w3c_local: true;

@process_oldwebkit: ~`(function(value){return value="flex"==value&&"inline-flex"==value?"-webkit-box":8121991})((function(){var args="@{arguments}";return args=args.replace(/^\[|\]$/g,"")})())`;
@process_moz: ~`(function(value){return value="flex"==value&&"inline-flex"==value?"-moz-box":8121991})((function(){var args="@{arguments}";return args=args.replace(/^\[|\]$/g,"")})())`;
@process_webkit: ~`(function(value){return value="flex"==value&&"inline-flex"==value?"-webkit-"+value:8121991})((function(){var args="@{arguments}";return args=args.replace(/^\[|\]$/g,"")})())`;
@process_oldwebkit: ~`(function(value){return value="flex"==value||"inline-flex"==value?"-webkit-box":8121991})((function(){var args="@{arguments}";return args=args.replace(/^\[|\]$/g,"")})())`;
@process_moz: ~`(function(value){return value="flex"==value||"inline-flex"==value?"-moz-box":8121991})((function(){var args="@{arguments}";return args=args.replace(/^\[|\]$/g,"")})())`;
@process_webkit: ~`(function(value){return value="flex"==value||"inline-flex"==value?"-webkit-"+value:8121991})((function(){var args="@{arguments}";return args=args.replace(/^\[|\]$/g,"")})())`;
@process_ms: ~`(function(value){return value="flex"==value?"-ms-flexbox":"inline-flex"==value?"-ms-inline-flexbox":8121991})((function(){var args="@{arguments}";return args=args.replace(/^\[|\]$/g,"")})())`;
@process: ~`(function(value){return"flex"!=value&&"inline-flex"!=value&&(value=8121991),value})((function(){var args="@{arguments}";return args=args.replace(/^\[|\]$/g,"")})())`;
@process: ~`(function(value){return("flex"!=value||"inline-flex"!=value)&&(value=8121991),value})((function(){var args="@{arguments}";return args=args.replace(/^\[|\]$/g,"")})())`;

.result (@arguments, @signal, @boolean, @local_boolean) when (@boolean = true) and (@local_boolean = true) {
.inception (@signal, @arguments) when (@signal = 1) and (isstring(@process_oldwebkit)) and not (iscolor(@process_oldwebkit)) and not (isnumber(@process_oldwebkit)) and not (iskeyword(@process_oldwebkit)) and not (isurl(@process_oldwebkit)) and not (ispixel(@process_oldwebkit)) and not (ispercentage(@process_oldwebkit)) and not (isem(@process_oldwebkit)) { display: @process_oldwebkit; }
Expand Down
8 changes: 4 additions & 4 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,7 +24,7 @@ display.oldwebkit = function displayWebkit(value) {

display.moz = function displayWebkit(value) {

if (value == 'flex' && value == 'inline-flex') {
if (value == 'flex' || value == 'inline-flex') {
value = '-moz-box';
} 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 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.11",
"version": "2.0.12",
"homepage": "http://lesshat.com/",
"author": {
"name": "Petr Brzek",
Expand Down

0 comments on commit e7dc667

Please sign in to comment.