Functions
The functions
module is required for using any of the rest of the
framework.
Installation
You can install the functions
module via Bower, npm, or copy and paste.
Install using Bower:
$ bower install tree-functions --save
Once installed, @import
into your project in its Tools layer:
@import "bower_components/tree-functions/tools.functions";
Install using npm:
$ npm install tree-functions --save
Install via file download
The least recommended option for installation is to simply download
_tools.functions.scss
into your project and @import
it into your project in
its Tools layer.
Usage
Basic usage of the functions
module:
.foo {
padding: halve(10px);
}
This will yield:
.foo {
padding: 5px;
}
Credits
- inuitcss Powerful, Sass-based, OOCSS framework designed with scalability and performance in mind.