Skip to content

Commit

Permalink
Version 2.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Brzek committed Dec 4, 2013
1 parent 701fcab commit 373ade1
Show file tree
Hide file tree
Showing 8 changed files with 507 additions and 493 deletions.
5 changes: 3 additions & 2 deletions 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.10 (2013-12-02)
### Current version: v2.0.11 (2013-12-04)
## 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 Expand Up @@ -1759,7 +1759,8 @@ Resources: **[WebPlatform](http://docs.webplatform.org/wiki/css/atrules/@keyfram

**Tips and tricks:**

Properties inside `<keyframes-definition>` are automatically prefixed, if it's needed.
Properties inside `<keyframes-definition>` are automatically prefixed, if it's needed.
Keyframes mixin supports prefix configuration but it's computationally demanding so it is commented out and all prefixes are rendered. Feel free to uncommented that if you need it.

**Example:**

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.10",
"version": "2.0.11",
"main": "./build/lesshat.less"
}
330 changes: 167 additions & 163 deletions build/lesshat-prefixed.less

Large diffs are not rendered by default.

330 changes: 167 additions & 163 deletions build/lesshat.less

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion mixins/keyframes/keyframes.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ Resources: **[WebPlatform](http://docs.webplatform.org/wiki/css/atrules/@keyfram

**Tips and tricks:**

Properties inside `<keyframes-definition>` are automatically prefixed, if it's needed.
Properties inside `<keyframes-definition>` are automatically prefixed, if it's needed.
Keyframes mixin supports prefix configuration but it's computationally demanding so it is commented out and all prefixes are rendered. Feel free to uncommented that if you need it.

**Example:**

Expand Down
312 changes: 158 additions & 154 deletions mixins/keyframes/result.less

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions mixins/size/size.less
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
.size(@square) {
.size(@square:auto) {
@unit: 'px';
.process(@square) when (ispixel(@square)), (isem(@square)), (ispercentage(@square)) {
.process(@square) when (ispixel(@square)), (isem(@square)), (ispercentage(@square)), (iskeyword(@square)) {
width: @square;
height: @square;
}

.process(@square) when not (ispixel(@square)) and not (isem(@square)) and not (ispercentage(@square)) {
.process(@square) when not (ispixel(@square)) and not (isem(@square)) and not (ispercentage(@square)) and not (isstring(@square)) and not (iskeyword(@square)) {
width: ~`@{square} + @{unit}`;
height: ~`@{square} + @{unit}`;
}
Expand All @@ -14,24 +14,24 @@

}

.size(@width, @height) {
.size(@width:auto, @height:auto) {
@unit: 'px';
.process(@width, @height) when (ispixel(@width)) and (ispixel(@height)), (isem(@width)) and (isem(@height)), (ispercentage(@width)) and (ispercentage(@height)), (ispixel(@width)) and (ispercentage(@height)), (ispixel(@width)) and (isem(@height)), (ispercentage(@width)) and (ispixel(@height)), (ispercentage(@width)) and (isem(@height)), (isem(@width)) and (ispixel(@height)), (isem(@width)) and (ispercentage(@height)) {
.process(@width, @height) when (ispixel(@width)) and (ispixel(@height)), (isem(@width)) and (isem(@height)), (ispercentage(@width)) and (ispercentage(@height)), (iskeyword(@width)) and (iskeyword(@height)) {
width: @width;
height: @height;
}

.process(@width, @height) when not (ispixel(@width)) and not (ispixel(@height)) and not (ispercentage(@width)) and not (ispercentage(@height)) and not (isem(@width)) and not (isem(@height)) {
.process(@width, @height) when not (ispixel(@width)) and not (ispixel(@height)) and not (isem(@width)) and not (isem(@height)) and not (ispercentage(@width)) and not (ispercentage(@height)) and not (iskeyword(@width)) and not (iskeyword(@height)) {
width: ~`@{width} + @{unit}`;
height: ~`@{height} + @{unit}`;
}

.process(@width, @height) when not (ispixel(@width)) and not (ispercentage(@width)) and not (isem(@width)) {
.process(@width, @height) when not (ispixel(@width)) and (ispixel(@height)), not (isem(@width)) and (isem(@height)), not (ispercentage(@width)) and (ispercentage(@height)), not (iskeyword(@width)) and (iskeyword(@height)) {
width: ~`@{width} + @{unit}`;
height: @height;
}

.process(@width, @height) when not (ispixel(@height)) and not (ispercentage(@height)) and not (isem(@height)) {
.process(@width, @height) when (ispixel(@width)) and not (ispixel(@height)), (isem(@width)) and not (isem(@height)), (ispercentage(@width)) and not (ispercentage(@height)), (iskeyword(@width)) and not (iskeyword(@height)) {
width: @width;
height: ~`@{height} + @{unit}`;
}
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.10",
"version": "2.0.11",
"homepage": "http://lesshat.com/",
"author": {
"name": "Petr Brzek",
Expand Down

0 comments on commit 373ade1

Please sign in to comment.