├── .gitignore ├── .npmignore ├── README.md ├── build ├── js │ └── button.js └── sass │ ├── _development.scss │ ├── _import.scss │ ├── button.scss │ ├── css │ └── _execute.scss │ └── module │ ├── _drop-down.scss │ ├── _loader.scss │ ├── _setup.scss │ ├── _shape.scss │ ├── _size.scss │ ├── _style.scss │ └── _utilities.scss ├── cockpit.json ├── css ├── button.min.css └── icon-font-rocket-button │ ├── icomoon.eot │ ├── icomoon.svg │ ├── icomoon.ttf │ └── icomoon.woff ├── index.html ├── js └── button.min.js └── package.json /.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore docs files 2 | _gh_pages 3 | _site 4 | .ruby-version 5 | 6 | # Numerous always-ignore extensions 7 | *.diff 8 | *.err 9 | *.orig 10 | *.log 11 | *.rej 12 | *.swo 13 | *.swp 14 | *.zip 15 | *.vi 16 | *~ 17 | 18 | # OS or Editor folders 19 | .DS_Store 20 | ._* 21 | Thumbs.db 22 | .cache 23 | .project 24 | .settings 25 | .tmproj 26 | *.esproj 27 | nbproject 28 | *.sublime-project 29 | *.sublime-workspace 30 | .idea 31 | 32 | # Komodo 33 | *.komodoproject 34 | .komodotools 35 | 36 | # grunt-html-validation 37 | validation-status.json 38 | validation-report.json 39 | 40 | # Folders to ignore 41 | node_modules 42 | bower_components 43 | .sass-cache 44 | 45 | #Files to ignore 46 | test.html 47 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | // Files to ignore 2 | index.html 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # NO LONGER SUPPORTED 2 | 3 | # Rocket Button 4 | A lightweight button module. 5 | 6 | * [Getting Started](#getting-started) 7 | * [CSS Implementation](#css-implementation) 8 | * [SASS Implementation](#sass-implementation) 9 | * [Javascript Initialisation](#javascript-initialisation) 10 | * [Loader Options](#loader-options) 11 | * [Defaults](#defaults) 12 | * [Rebuilding Files](#rebuilding-files) 13 | * [Buttonplate Deprecated](#buttonplate-deprecated) 14 | 15 | ## Getting Started 16 | Install via NPM. 17 | 18 | ``` 19 | npm install rocket-button 20 | ``` 21 | 22 | **NOTE** that this module has a dependency [Rocket Tools (28kb)](https://github.com/chrishumboldt/Rocket-Tools) which will automatically be installed as well. 23 | 24 | ## CSS Implementation 25 | Start by including the necessary files. 26 | 27 | ```html 28 |
29 | 30 | 31 | ``` 32 | 33 | Now class your button and add a modifier to gain the desired effect. For example: 34 | 35 | ```html 36 | 37 | ``` 38 | 39 | There are a variety of options for the CSS modifiers. 40 | 41 | Class | Options | Description 42 | ---- | ---- | ---- 43 | `_mod-style-flat-(x)` | `white` `grey` `black` `aqua` `blue` `green`