diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c3629e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..6e5919d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,3 @@ +language: node_js +node_js: + - "0.10" diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..e21c763 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,99 @@ +module.exports = function(grunt) { + /** + * Load tasks + */ + grunt.loadNpmTasks('lesshat-devstack'); + grunt.loadNpmTasks('grunt-prompt'); + + /** + * Grunt config + */ + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + + generator: { + settings: { + mixin_name: null, + default_value: null, + vendors: null + } + }, + + version: { + settings: { + version: null + } + }, + + prompt: { + version: { + options: { + questions: [{ + config: 'version.settings.version', + type: 'input', + validate: function(value) { + return (value && true); + }, + message: 'LESS Hat next version number? Current is ' + '<%= pkg.version %>'.green + ':', + }], + } + }, + generate: { + options: { + questions: [{ + config: 'generator.settings.mixin_name', + type: 'input', + message: 'What is the name of new mixin? (e.g. animationDelay)', + filter: function(value) { + grunt.config('generator.settings.mixin_css_name', value.replace(/([A-Z])/g, function(upperCase) { + return '-' + upperCase.toLowerCase(); + })); + grunt.config('generator.settings.mixin_name | firstLetter', value[0].toUpperCase() + value.slice(1)); + return value[0].toLowerCase() + value.slice(1); + }, + validate: function(value) { + if (/[a-z0-9]+/i.test(value)) { + return true; + } else { + return 'Please fill only valid characters [a-zA-Z0-9].'; + } + } + }, { + config: 'generator.settings.vendors', + type: 'checkbox', + message: 'For which browsers is this mixin?', + choices: [{ + name: 'webkit' + }, { + name: 'moz' + }, { + name: 'opera' + }, { + name: 'ms', + }] + }, { + config: 'generator.settings.default_value', + type: 'input', + default: 'none', + filter: function(value) { + return '\'' + value + '\''; + }, + message: 'What is default value of the mixin? Optional – you can skip', + }] + } + } + } + + }); + + /** + * Register tasks + */ + + grunt.registerTask('version', ['prompt:version', 'iterate', 'build', 'mixins_update']); + grunt.registerTask('dev', ['build', 'test']); + grunt.registerTask('generate', ['prompt:generate', 'generator']); + grunt.registerTask('contrib', ['build', 'test', 'mixins_update', 'prefix', 'documentation']); + grunt.registerTask('default', ['version','build', 'test', 'mixins_update', 'prefix', 'documentation']); + +}; diff --git a/LICENSE b/LICENSE index f45b78b..fd5a4c8 100644 --- a/LICENSE +++ b/LICENSE @@ -1,14 +1,17 @@ -MIT License +The MIT License + +Copyright (c) 2013 Petr Brzek -Copyright (c) 2012 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -16,29 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - -BSD License - -Copyright (c) 2012 -All rights reserved. -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * Neither the name of the Organization nor the - names of its contributors may be used to endorse or promote products - derived from this software without specific prior written permission. -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDER BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/README-template.md b/README-template.md new file mode 100644 index 0000000..ad511a3 --- /dev/null +++ b/README-template.md @@ -0,0 +1,229 @@ + + +# LESS Hat 2.0 [![Build Status](https://travis-ci.org/csshat/lesshat.png)](https://travis-ci.org/csshat/lesshat) + + +![LESS Hat 2.0](http://f.cl.ly/items/240x0i2S0B101F1d420t/lesshat-v2.0.png) + +--- +**[Download latest](https://raw.github.com/PetrBrzek/LESSHat/master/build/lesshat.less)** (or **[Prefixed](https://raw.github.com/PetrBrzek/LESSHat/master/build/lesshat-prefixed.less)**) **|** +**[Get Starded](#get-started) |** +**[Contribute](#contribute) |** +**[Documentation](#documentation) |** + +--- +
+          ![LESS Hat 2.0](http://media.giphy.com/media/lI6nHr5hWXlu0/giphy.gif) ![LESS Hat 2.0](http://f.cl.ly/items/0y0M3O0L0d2h1G0Y3W23/yes.png) +
+## 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. + +After a year, there is a new, **completely rewritten 2.0 version** that brings 86 great mixins, robust workflow for editing, testing and creating new mixins. + +Meet the best mixins library in the world. Thanks to the LESS Hat 2.0 is LESS CSS finally usable. + +If you would like to use CSS Hat for working with LESS Hat and you still don't have one, we have a suprise for you at **[lesshat.com](http://lesshat.com)** - Check it out! + +### Features +* **Configuration** – You can turn off/on browser prefixes according to your needs. +* **No restrictions** – If it's possible in CSS, it must be possible to be done with a mixin. Unlimited number of anything, shadows, gradients, gradient swatches. +* **Standard naming convention** – In LESS Hat, mixins have names like all CSS3 properties. No `.rounded` or `.shadow`. It's stupid. +* **Cross-browser** – LESS Hat takes care of exporting CSS for all available browsers. +* **Bootstrap friendly** – You can now use prefixed LESS Hat version and gaily work with Bootstrap. Yeah it's that easy. +* **Keyframes** – Although it's tricky as hell, but yeah LESS Hat has mixin for `.keyframes` +* **Blank state ready** – If you call mixin without any arguments, LESS Hat does not pollute your CSS with empty properties. Instead LESS Hat generates nothing. +* **Workflow** – **No more one line editing!** We created developer friendly worklow for editing and creating mixins. You can test mixins with [MOCHA](http://visionmedia.github.io/mocha/), generate new mixin with [GRUNT](http://gruntjs.com/). Find out more about the workflow in **[contribution](#contribution)** section. + +## Get started +The structure of this repo is: + +* **build folder** – there are ready-to-use lesshat.less or lesshat-prefixed.less mixins +* **mixins folder** – developer version of mixins (more about that in **[contribution](#contribution)** section) +* **.gitignore** – is a list of files that git will ignore. I know you know that, but it's convention. +* **.travis.yml** – Configuration file for Travis CI. Travis CI is a hosted continuous integration service for the open source community. +* **Gruntfle.js** – task runner. If you don't want to use lesshat-devstack ignore it. +* **LICENCE** – self-explanatory +* **README-template.md** – If you want to edit readme, edit it in this file. README.md is generated. +* **README.md** – please don't edit this file. Either edit README-template.md or documentation inside mixins/ folder. +* **Bower** – is like NPM for frontend. NPM is like Gems for JavaScript. I could go on forever… +* **package.json** – contains meta data for NPM. + +### Structure of LESS Hat mixins +1. **Global prefix configuration**: + + @webkit: true; + @moz: true; + @opera: true; + @ms: true; + @w3c: true; + + If you for example don't want to generate prefixes for opera, just turn it to false. + +2. **Typical LESS Hat mixin**: + + .supermixin(...) { + + @webkit_local: true; + @w3c_local: true; + + @process: ~`(function(){})()`; + + .result (@arguments, @signal, @boolean, @local_boolean) when (@boolean = true) and (@local_boolean = true) { + .inception (@signal, @arguments) when (@signal = 1) and not (@process = 08121991) { -webkit-border-radius: @process; } + .inception (@signal, @arguments) when (@signal = 1) and (@process = 08121991) {} + .inception (@signal, @arguments) when (@signal = 3) and not (@process = 08121991) { border-radius: @process; } + .inception (@signal, @arguments) when (@signal = 3) and (@process = 08121991) {} + .inception(@signal, @arguments); + } + + .result (@arguments, @signal, @boolean, @local_boolean) when not (@boolean = true), not (@local_boolean = true) {} + + .result(@arguments, 1, @webkit, @webkit_local); + .result(@arguments, 3, @w3c, @w3c_local); + } + + At the top, there are a local prefix configurations. So you can turn off/on browser for one specific mixin. This is quite useful. + + In @process variable is all magic. Please don't edit javascrpt directly in .less file. Instead use [lesshat-devstack](https://github.com/csshat/lesshat-devstack). + + If you call mixin without arguments, some mixins return CSS default value for specific property, but some mixins return magic number *08121991* (Yeah, it's like Lost, TV series, but numbers are different) and because of that LESS CSS generates nothing. + + **Why 08121991 and not just 0 (zero)?** + Some CSS properties have zero as default value. So we need more difficult number. + +3. **Use (almost) every property without interpolation!** + + Correct mixin calling: + + .background-image(linear-gradient(to bottom, #fb83fa 0%,#e93cec 100%)) + + Incorrect calling: + + .background-image(~'linear-gradient(to bottom, #fb83fa 0%,#e93cec 100%)') + + Unfortunately, there are exceptions: + + .keyframes(~''); + .calc(~''); + .selection(~''); + + // in some cases you have to interpolate border-radius or LESS CSS begins to play on calculator + .border-radius(~'20px / 40px'); + + + +## Contribute: +1. Download this repo. +2. NPM install. +3. Now you have LESS Hat devstack (see [documentation](https://github.com/csshat/lesshat-devstack).) +4. If you create new mixin, use grunt generate command! +5. If it's possible (almost always) test the coverage for new mixins, and never break existing tests. +6. Commits should represent one logical change each. If a mixin goes through multiple iterations, squash your commits down to one. +7. Finally, commit some code and open a pull request. + + +## Documentation: + +### List of mixins: +1. **[align-content](#align-content)** `flexbox` +2. **[align-items](#align-items)** `flexbox` +3. **[align-self](#align-self)** `flexbox` +4. **[animation](#animation)** +5. **[animation-delay](#animation-delay)** +6. **[animation-direction](#animation-direction)** +7. **[animation-duration](#animation-duration)** +8. **[animation-fill-mode](#animation-fill-mode)** +9. **[animation-iteration-count](#animation-iteration-count)** +10. **[animation-name](#animation-name)** +11. **[animation-play-state](#animation-play-state)** +12. **[animation-timing-function](#animation-timing-function)** +13. **[appearance](#appearance)** +14. **[backface-visibility](#backface-visibility)** +15. **[background-clip](#background-clip)** +16. **[background-image](#background-image)** +17. **[background-origin](#background-origin)** +18. **[background-size](#background-size)** +19. **[blur](#blur)** `filter` +20. **[border-bottom-left-radius](#border-bottom-left-radius)** +21. **[border-bottom-right-radius](#border-bottom-right-radius)** +22. **[border-image](#border-image)** +23. **[border-radius](#border-radius)** +24. **[border-top-left-radius](#border-top-left-radius)** +25. **[border-top-right-radius](#border-top-right-radius)** +26. **[box-shadow](#box-shadow)** +27. **[box-sizing](#box-sizing)** +28. **[brightness](#brightness)** `filter` +29. **[calc](#calc)** +29. **[column-count](#column-count)** +30. **[column-gap](#column-gap)** +31. **[column-rule](#column-rule)** +32. **[column-width](#column-width)** +33. **[columns](#columns)** +34. **[contrast](#contrast)** `filter` +35. **[display](#display)** `flexbox` +36. **[drop-shadow](#drop-shadow)** `filter` +37. **[filter](#filter)** +38. **[flex](#flex)** `flexbox` +39. **[flex-basis](#flex-basis)** `flexbox` +40. **[flex-direction](#flex-direction)** `flexbox` +41. **[flex-grow](#flex-grow)** `flexbox` +42. **[flex-shrink](#flex-shrink)** `flexbox` +43. **[flex-wrap](#flex-wrap)** `flexbox` +44. **[font-face](#font-face)** +45. **[grayscale](#grayscale)** `filter` +46. **[hue-rotate](#hue-rotate)** `filter` +47. **[invert](#invert)** `filter` +48. **[justify-content](#justify-content)** `flexbox` +49. **[keyframes](#keyframes)** +50. **[opacity](#opacity)** +51. **[order](#order)** +52. **[perspective](#perspective)** +53. **[perspective-origin](#perspective-origin)** +54. **[placeholder](#placeholder)** +55. **[rotate](#rotate)** `transform` +56. **[rotate3d](#rotate3d)** `transform` +57. **[rotateX](#rotateX)** `transform` +58. **[rotateY](#rotateY)** `transform` +59. **[rotateZ](#rotateZ)** `transform` +60. **[saturate](#saturate)** `filter` +61. **[scale](#scale)** `transform` +62. **[scale3d](#scale3d)** `transform` +63. **[scaleX](#scaleX)** `transform` +64. **[scaleY](#scaleY)** `transform` +65. **[scaleZ](#scaleZ)** `transform` +66. **[selection](#selection)** +67. **[sepia](#sepia)** `filter` +68. **[size](#size)** `width, height` +69. **[skew](#skew)** `transform` +70. **[skewX](#skewX)** `transform` +71. **[skewY](#skewY)** `transform` +72. **[transform](#transform)** +73. **[transform-origin](#transform-origin)** +74. **[transform-style](#transform-style)** +75. **[transition](#transition)** +76. **[transition-delay](#transition-delay)** +77. **[transition-duration](#transition-duration)** +78. **[transition-property](#transition-property)** +79. **[transition-timing-function](#transition-timing-function)** +80. **[translate](#translate)** `transform` +81. **[translate3d](#translate3d)** `transform` +82. **[translateX](#translateX)** `transform` +83. **[translateY](#translateY)** `transform` +84. **[translateZ](#translateZ)** `transform` +85. **[user-select](#user-select)** + +*** + +{{ documentation }} + + +## Big Thanks to: +* **[Jan Kuca](http://www.jankuca.com/)** (help us with lesshat-devstack) +* **[MOZILLA DEVELOPER NETWORK](https://developer.mozilla.org/)** (almost all summary are from MDN) +* **[Angular UI router](https://github.com/angular-ui/ui-router)** (example of good github profile) +* **[Marek Hrabe](https://twitter.com/marek)** (for coding lesshat.com) +* **[Jan Vu Nam](http://dribbble.com/Vucek)** (for design lesshat.com and LESS Hat book icon) diff --git a/README.md b/README.md new file mode 100644 index 0000000..5add6ef --- /dev/null +++ b/README.md @@ -0,0 +1,2995 @@ + + +# LESS Hat 2.0 [![Build Status](https://travis-ci.org/csshat/lesshat.png)](https://travis-ci.org/csshat/lesshat) + + +![LESS Hat 2.0](http://f.cl.ly/items/240x0i2S0B101F1d420t/lesshat-v2.0.png) + +--- +**[Download latest](https://raw.github.com/PetrBrzek/LESSHat/master/build/lesshat.less)** (or **[Prefixed](https://raw.github.com/PetrBrzek/LESSHat/master/build/lesshat-prefixed.less)**) **|** +**[Get Starded](#get-started) |** +**[Contribute](#contribute) |** +**[Documentation](#documentation) |** + +--- +
+          ![LESS Hat 2.0](http://media.giphy.com/media/lI6nHr5hWXlu0/giphy.gif) ![LESS Hat 2.0](http://f.cl.ly/items/0y0M3O0L0d2h1G0Y3W23/yes.png) +
+## 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. + +After a year, there is a new, **completely rewritten 2.0 version** that brings 86 great mixins, robust workflow for editing, testing and creating new mixins. + +Meet the best mixins library in the world. Thanks to the LESS Hat 2.0 is LESS CSS finally usable. + +If you would like to use CSS Hat for working with LESS Hat and you still don't have one, we have a suprise for you at **[lesshat.com](http://lesshat.com)** - Check it out! + +### Features +* **Configuration** – You can turn off/on browser prefixes according to your needs. +* **No restrictions** – If it's possible in CSS, it must be possible to be done with a mixin. Unlimited number of anything, shadows, gradients, gradient swatches. +* **Standard naming convention** – In LESS Hat, mixins have names like all CSS3 properties. No `.rounded` or `.shadow`. It's stupid. +* **Cross-browser** – LESS Hat takes care of exporting CSS for all available browsers. +* **Bootstrap friendly** – You can now use prefixed LESS Hat version and gaily work with Bootstrap. Yeah it's that easy. +* **Keyframes** – Although it's tricky as hell, but yeah LESS Hat has mixin for `.keyframes` +* **Blank state ready** – If you call mixin without any arguments, LESS Hat does not pollute your CSS with empty properties. Instead LESS Hat generates nothing. +* **Workflow** – **No more one line editing!** We created developer friendly worklow for editing and creating mixins. You can test mixins with [MOCHA](http://visionmedia.github.io/mocha/), generate new mixin with [GRUNT](http://gruntjs.com/). Find out more about the workflow in **[contribution](#contribution)** section. + +## Get started +The structure of this repo is: + +* **build folder** – there are ready-to-use lesshat.less or lesshat-prefixed.less mixins +* **mixins folder** – developer version of mixins (more about that in **[contribution](#contribution)** section) +* **.gitignore** – is a list of files that git will ignore. I know you know that, but it's convention. +* **.travis.yml** – Configuration file for Travis CI. Travis CI is a hosted continuous integration service for the open source community. +* **Gruntfle.js** – task runner. If you don't want to use lesshat-devstack ignore it. +* **LICENCE** – self-explanatory +* **README-template.md** – If you want to edit readme, edit it in this file. README.md is generated. +* **README.md** – please don't edit this file. Either edit README-template.md or documentation inside mixins/ folder. +* **Bower** – is like NPM for frontend. NPM is like Gems for JavaScript. I could go on forever… +* **package.json** – contains meta data for NPM. + +### Structure of LESS Hat mixins +1. **Global prefix configuration**: + + @webkit: true; + @moz: true; + @opera: true; + @ms: true; + @w3c: true; + + If you for example don't want to generate prefixes for opera, just turn it to false. + +2. **Typical LESS Hat mixin**: + + .supermixin(...) { + + @webkit_local: true; + @w3c_local: true; + + @process: ~`(function(){})()`; + + .result (@arguments, @signal, @boolean, @local_boolean) when (@boolean = true) and (@local_boolean = true) { + .inception (@signal, @arguments) when (@signal = 1) and not (@process = 08121991) { -webkit-border-radius: @process; } + .inception (@signal, @arguments) when (@signal = 1) and (@process = 08121991) {} + .inception (@signal, @arguments) when (@signal = 3) and not (@process = 08121991) { border-radius: @process; } + .inception (@signal, @arguments) when (@signal = 3) and (@process = 08121991) {} + .inception(@signal, @arguments); + } + + .result (@arguments, @signal, @boolean, @local_boolean) when not (@boolean = true), not (@local_boolean = true) {} + + .result(@arguments, 1, @webkit, @webkit_local); + .result(@arguments, 3, @w3c, @w3c_local); + } + + At the top, there are a local prefix configurations. So you can turn off/on browser for one specific mixin. This is quite useful. + + In @process variable is all magic. Please don't edit javascrpt directly in .less file. Instead use [lesshat-devstack](https://github.com/csshat/lesshat-devstack). + + If you call mixin without arguments, some mixins return CSS default value for specific property, but some mixins return magic number *08121991* (Yeah, it's like Lost, TV series, but numbers are different) and because of that LESS CSS generates nothing. + + **Why 08121991 and not just 0 (zero)?** + Some CSS properties have zero as default value. So we need more difficult number. + +3. **Use (almost) every property without interpolation!** + + Correct mixin calling: + + .background-image(linear-gradient(to bottom, #fb83fa 0%,#e93cec 100%)) + + Incorrect calling: + + .background-image(~'linear-gradient(to bottom, #fb83fa 0%,#e93cec 100%)') + + Unfortunately, there are exceptions: + + .keyframes(~''); + .calc(~''); + .selection(~''); + + // in some cases you have to interpolate border-radius or LESS CSS begins to play on calculator + .border-radius(~'20px / 40px'); + + + +## Contribute: +1. Download this repo. +2. NPM install. +3. Now you have LESS Hat devstack (see [documentation](https://github.com/csshat/lesshat-devstack).) +4. If you create new mixin, use grunt generate command! +5. If it's possible (almost always) test the coverage for new mixins, and never break existing tests. +6. Commits should represent one logical change each. If a mixin goes through multiple iterations, squash your commits down to one. +7. Finally, commit some code and open a pull request. + + +## Documentation: + +### List of mixins: +1. **[align-content](#align-content)** `flexbox` +2. **[align-items](#align-items)** `flexbox` +3. **[align-self](#align-self)** `flexbox` +4. **[animation](#animation)** +5. **[animation-delay](#animation-delay)** +6. **[animation-direction](#animation-direction)** +7. **[animation-duration](#animation-duration)** +8. **[animation-fill-mode](#animation-fill-mode)** +9. **[animation-iteration-count](#animation-iteration-count)** +10. **[animation-name](#animation-name)** +11. **[animation-play-state](#animation-play-state)** +12. **[animation-timing-function](#animation-timing-function)** +13. **[appearance](#appearance)** +14. **[backface-visibility](#backface-visibility)** +15. **[background-clip](#background-clip)** +16. **[background-image](#background-image)** +17. **[background-origin](#background-origin)** +18. **[background-size](#background-size)** +19. **[blur](#blur)** `filter` +20. **[border-bottom-left-radius](#border-bottom-left-radius)** +21. **[border-bottom-right-radius](#border-bottom-right-radius)** +22. **[border-image](#border-image)** +23. **[border-radius](#border-radius)** +24. **[border-top-left-radius](#border-top-left-radius)** +25. **[border-top-right-radius](#border-top-right-radius)** +26. **[box-shadow](#box-shadow)** +27. **[box-sizing](#box-sizing)** +28. **[brightness](#brightness)** `filter` +29. **[calc](#calc)** +29. **[column-count](#column-count)** +30. **[column-gap](#column-gap)** +31. **[column-rule](#column-rule)** +32. **[column-width](#column-width)** +33. **[columns](#columns)** +34. **[contrast](#contrast)** `filter` +35. **[display](#display)** `flexbox` +36. **[drop-shadow](#drop-shadow)** `filter` +37. **[filter](#filter)** +38. **[flex](#flex)** `flexbox` +39. **[flex-basis](#flex-basis)** `flexbox` +40. **[flex-direction](#flex-direction)** `flexbox` +41. **[flex-grow](#flex-grow)** `flexbox` +42. **[flex-shrink](#flex-shrink)** `flexbox` +43. **[flex-wrap](#flex-wrap)** `flexbox` +44. **[font-face](#font-face)** +45. **[grayscale](#grayscale)** `filter` +46. **[hue-rotate](#hue-rotate)** `filter` +47. **[invert](#invert)** `filter` +48. **[justify-content](#justify-content)** `flexbox` +49. **[keyframes](#keyframes)** +50. **[opacity](#opacity)** +51. **[order](#order)** +52. **[perspective](#perspective)** +53. **[perspective-origin](#perspective-origin)** +54. **[placeholder](#placeholder)** +55. **[rotate](#rotate)** `transform` +56. **[rotate3d](#rotate3d)** `transform` +57. **[rotateX](#rotateX)** `transform` +58. **[rotateY](#rotateY)** `transform` +59. **[rotateZ](#rotateZ)** `transform` +60. **[saturate](#saturate)** `filter` +61. **[scale](#scale)** `transform` +62. **[scale3d](#scale3d)** `transform` +63. **[scaleX](#scaleX)** `transform` +64. **[scaleY](#scaleY)** `transform` +65. **[scaleZ](#scaleZ)** `transform` +66. **[selection](#selection)** +67. **[sepia](#sepia)** `filter` +68. **[size](#size)** `width, height` +69. **[skew](#skew)** `transform` +70. **[skewX](#skewX)** `transform` +71. **[skewY](#skewY)** `transform` +72. **[transform](#transform)** +73. **[transform-origin](#transform-origin)** +74. **[transform-style](#transform-style)** +75. **[transition](#transition)** +76. **[transition-delay](#transition-delay)** +77. **[transition-duration](#transition-duration)** +78. **[transition-property](#transition-property)** +79. **[transition-timing-function](#transition-timing-function)** +80. **[translate](#translate)** `transform` +81. **[translate3d](#translate3d)** `transform` +82. **[translateX](#translateX)** `transform` +83. **[translateY](#translateY)** `transform` +84. **[translateZ](#translateZ)** `transform` +85. **[user-select](#user-select)** + +*** + +### • align-content +**Summary:** + +The CSS align-content property aligns a flex container's lines within the flex container when there is an extra space on the cross-axis. This property has no effect on the single line flexible boxes. + +Resources: **[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/align-content)**, **[CSS-Tricks](http://css-tricks.com/almanac/properties/a/align-content/)** + +**Syntax:** + +Default value: stretch + + .align-content(flex-start | flex-end | center | space-between | space-around | stretch) + +**Example:** + + div { + .align-content(flex-start); + } + + // Result + div { + -webkit-align-content: flex-start; + -ms-flex-line-pack: start; + align-content: flex-start; + } + + + +### • align-items +**Summary:** + +The CSS align-items property aligns flex items of the current flex line the same way as justify-content but in the perpendicular direction. + +Resources: **[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/align-items)**, **[CSS-Tricks](http://css-tricks.com/almanac/properties/a/align-items/)** + +**Syntax:** + +Default value: stretch + + .align-items(flex-start | flex-end | center | baseline | stretch) + +**Example:** + + div { + .align-items(flex-start); + } + + // Result + div { + -webkit-box-align: flex-start; + -moz-box-align: start; + -webkit-align-items: start; + -ms-flex-align: flex-start; + align-items: flex-start; + } + + + +### • align-self +**Summary:** + +The align-self CSS property aligns flex items of the current flex line overriding the align-items value. If any of the flex item's cross-axis margin is set to auto, then align-self is ignored. + +Resources: **[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self)**, **[CSS-Tricks](http://css-tricks.com/almanac/properties/a/align-self/)** + +**Syntax:** + +Default value: auto + + .align-self(auto | flex-start | flex-end | center | baseline | stretch) + +**Example:** + + div { + .align-self(flex-start); + } + + // Result + div { + -webkit-align-self: flex-start; + -ms-align-self: start; + align-self: flex-start; + } + + + +### • animation +**Summary:** + +Shorthand to define a CSS animation, setting all parameters at once. + +Resources: **[WebPlatform](http://docs.webplatform.org/wiki/css/properties/animation/animation)**, **[CSS3files](http://www.css3files.com/animation/)** + +**Syntax:** + +Default value: none + + .animation(animation-name | animation-duration | animation-timing-function | animation-delay | animation-iteration-count | animation-direction | animation-fill-mode , […]*) + +**Example:** + + div { + .animation(nameAnimation 2s linear alternate); + } + + // Result + div { + -webkit-animation: nameAnimation 2s linear alternate; + -moz-animation: nameAnimation 2s linear alternate; + -opera-animation: nameAnimation 2s linear alternate; + animation: nameAnimation 2s linear alternate; + } + + + +### • animation-delay +**Summary:** + +Defines a length of time to elapse before an animation starts, allowing an animation to begin execution some time after it is applied. + +Resources: **[WebPlatform](http://docs.webplatform.org/wiki/css/properties/animation-delay)**, **[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/animation-delay)** + +**Syntax:** + +Default value: 0 + + .animation-delay(