It's a set of useful mixins for LESS, the CSS pre-processor: lesscss.org.
I recommend a "CodeKit" app for the auto compress (OS X).
Licensed under the MIT License
Examples how to use the functions contained in "less.dss" (v1.8.1) file:
- .gradient-h
- gradient-v
- .gradient-vline
- .gradient-v3colors
- .gradient-radial
- .gradient-direction
- .bg-clip
- .bg-size
- .box-align
- .box-direction
- .box-orient
- .box-pack
- .box-sizing
- .box-shadow
- .border-image
- .rounded
- .transform
- .matrix
- .matrix3d
- .rotate
- .rotate3d
- .scale
- .scale3d
- .translate
- .translate3d
- .skew
- .perspective
- .perspective-origin
- .transform-origin
- .transform-style
- .transition
- .animate
- .animation-state
- .columns
- .opacity
- .font
- .font-face
- .size
- .square
- .resizable
- .hide-text
- .center-block
- .clearfix
.gradient-h ( #fff, #aaa );
.gradient-v ( #fff, #aaa );
.gradient-vline ( #fff, #ddd, #aaa, #ddd );
.gradient-v3colors ( #00b3ee, #7a43b6, 50%, #c3325f );
.gradient-radial ( #fff, #aaa );
.gradient-direction ( #fff, #aaa, 120 );
.bg-clip ( border-box );
.bg-clip ( border );
.bg-size ( 100%, 50% );
.box-align ( baseline );
.box-direction ( normal );
.box-orient ( horizontal );
.box-pack ( center );
.box-sizing ( content-box );
.box-shadow ( "0 0 5px blue, inset 2px 2px 10px rgba (0,0,0, .2), 0 1px 4px #000" );
(multi)
.box-shadow ( in, 0 1px 4px #ddd );
(inset)
.box-shadow ( out, 0 1px 4px rgba(0,0,0, .5) );
(outset)
.box-shadow ( 0 1px 4px, #ccc, 45% );
(alpha)
.border-image ( "../img/picture.img", 30 30 repeat );
.rounded ( 10px );
.rounded ( 3px 2px 4px 10px );
.rounded ( top, 5 );
.rounded ( right, 5 );
.rounded ( bottom, 5 );
.rounded ( left, 5 );
.transform ( perspective(0) translate3d(50px, 40px, 80px) scale3d(1, 2, 0) rotate3d(0, 1, 0, 45deg) );
.matrix ( 0.9, 0.2, -0.5, 0.9, 0, 0 );
.matrix3d ( "1, 0, 0, 0, 0, 0.60, 0, -0.0009, 0, 0, 1, 0, 0, 0, 0, 1" );
.rotate ( 45 );
.rotate ( x, 45 );
.rotate ( y, 45 );
.rotate ( z, 45 );
.rotate ( 15, 10, 5, 45 );
.scale ( 0.8 );
.scale ( x, 0.4 );
.scale ( y, 1.3 );
.scale ( z, .7 );
.scale3d ( .4, .5, 1.2 );
.translate ( 20, 40 );
.translate ( x, 20 );
.translate ( y, 40 );
.translate ( z, 60 );
.translate3d ( 20, 40, 60 );
.skew ( 30, 4 );
.skew ( x, 20 );
.skew ( y, -30 );
.perspective ( 250 );
.perspective ( 250, px );
.perspective-origin ( 50% 50% );
.transform-origin ( 30%, 40%, 0 );
.transform-style ( preserve-3d );
.transition ( width, .7s );
.transition ( property, 0.2s, ease-out, 0 );
(checkout: http://daneden.me/animate/)
.animate ( wobble );
.animate ( wobble, 2s, ease, 0, 1, normal );
.animation-state ( running );
.columns ( 2, normal );
.opacity ( 0.7 );
.font ( italic, normal, bold, 14px, 1, "'Lucida Grande', Helvetica, Arial, Verdana, sans-serif" );
.font-face ( MyFontName, "../assets/fonts/sofia-pro" );
.size ( 400, 200 );
.square ( 400 );
.resizable ( vertical );
.hide-text;
.center-block;
.clearfix;