madebysource / lesshat

Smart LESS CSS mixins library.
lesshat.com
MIT License
2.19k stars 258 forks source link

Keyframes compilation #77

Closed Spope closed 10 years ago

Spope commented 10 years ago

.keyframes has a little bug, it works for all -engines- declaration except for the standard @keyframes rule when combining mulitple instructions. It removes the semicolon :

@-webkit-keyframes test{ from{top:-800px;left:-800px;}to{top:0px;left:0px;}}
@-moz-keyframes test{ from{top:-800px;left:-800px;}to{top:0px;left:0px;}}
@-o-keyframes test{ from{top:-800px;left:-800px;}to{top:0px;left:0px;}}
@keyframes test{ from{top:-800pxleft:-800px}to{top:0pxleft:0px};
}

My lessHat function is :

.keyframes(~'test, from{top:-800px;left:-800px;}to{top:0px;left:0px;}');
petrbrzek commented 10 years ago

Fixed in the new version 2.0.13.

Spope commented 10 years ago

Quickly fixed ! Thanks!