recodelib
v1.0.8
Published
Library for Sass placeholders and JavaScript modules.
Downloads
3
Readme
#Recode A library for reusable Sass Placeholders and JavaScript Modules.
Install using npm:
npm install recodelib --save-dev
Sass Placeholders
Each placeholder have default variables that you can override. Have a look at the documentation to get a better understanding of each placeholder.
Add recode to your include path (if you use gulp-sass etc.).
includePaths: require('recodelib')
Import recode to your sass file.
@import "recode";
Ready to go, for example.
div {
@extend %grid-row;
div {
@extend %grid-column-12;
}
}
JavaScript Modules
Have a look at the documentation to get a better understanding of each module.
If you are using browserify it finds the module automatically and adds it to the bundle. Just require a module in your application script to get started.
var fixed = require('recodelib/modules/fixed');
fixed(document.getElementById('menu'));
Maintenance
Before publishing to NPM you must run gulp bundle
.