https://github.com/cferdinandi/labels
Lightweight CSS labels.
https://github.com/cferdinandi/labels
Last synced: 9 months ago
JSON representation
Lightweight CSS labels.
- Host: GitHub
- URL: https://github.com/cferdinandi/labels
- Owner: cferdinandi
- License: mit
- Created: 2013-12-02T22:10:33.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2021-05-26T09:40:33.000Z (over 4 years ago)
- Last Synced: 2025-04-03T08:12:04.257Z (9 months ago)
- Language: CSS
- Homepage:
- Size: 29.3 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Labels [](https://travis-ci.org/cferdinandi/labels)
Lightweight CSS labels.
[Download Labels](https://github.com/cferdinandi/labels/archive/master.zip) / [View the demo](http://cferdinandi.github.io/labels/)
## Getting Started
Compiled and production-ready code can be found in the `dist` directory. The `src` directory contains development code.
### 1. Include Labels on your site.
```html
```
### 2. Add the markup to your HTML.
```html
Default Label
Success Label
Danger Label
Warning Label
```
And that's it, you're done. Nice work!
## Installing with Package Managers
You can install Labels with your favorite package manager.
* **NPM:** `npm install cferdinandi/labels`
* **Bower:** `bower install https://github.com/cferdinandi/labels.git`
* **Component:** `component install cferdinandi/labels`
## Working with the Source Files
If you would prefer, you can work with the development code in the `src` directory using the included [Gulp build system](http://gulpjs.com/). This compiles, lints, and minifies code, and runs unit tests. It's the same build system that's used by [Kraken](http://cferdinandi.github.io/kraken/), so it includes some unnecessary tasks and Sass variables but can be dropped right in to the boilerplate without any configuration.
### Dependencies
Make sure these are installed first.
* [Node.js](http://nodejs.org)
* [Gulp](http://gulpjs.com) `sudo npm install -g gulp`
### Quick Start
1. In bash/terminal/command line, `cd` into your project directory.
2. Run `npm install` to install required files.
3. When it's done installing, run one of the task runners to get going:
* `gulp` manually compiles files.
* `gulp watch` automatically compiles files when changes are made and applies changes using [LiveReload](http://livereload.com/).
## Browser Compatibility
Labels works in all modern browsers, and IE 6 and above.
## How to Contribute
In lieu of a formal style guide, take care to maintain the existing coding style. Please apply fixes to both the development and production code. Don't forget to update the version number, and when applicable, the documentation.
## License
The code is available under the [MIT License](LICENSE.md).