lintel-contrib-badges
Badges for lintel.
Getting Started
This module requires Lintel.
If you haven't used Lintel before, be sure to check out the Getting Started guide, as it explains how to install and use this module. Once you're familiar with that process, you may install this module with this command:
bower install lintel-contrib-badges --save
Once the module has been installed, you will have to load it in your main SASS file:
You can use wiredep or grunt-wiredep to automatically inject files in your build process.
Variables
Check the vars file in the sass
folder to see the full list of variables you can customize.
$badge-padding-y
Default value: 4px
Badge padding-top and padding-bottom.
$badge-padding-y
Default value: 4px
Badge padding-top and padding-bottom.
$badge-padding-x
Default value: 8px
Badge padding-left and padding-right.
$badge-border-radius
Default value: $border-radius-sm
Badge border-radius.
Mixins
Check the mixins file in the sass
folder to see how you can extend this module.
make-badge($bg, [$border, $text, $bg-inverse, $border-inverse, $text-inverse])
Sets the background, border, and text color of a badge. Only include $*-inverse
parameters if $badge-include-inverse
is true
.
.badge-primary
Examples
Base
Default
Primary Badge
Primary
Round Badge
CSS makes the world go round
Inside Headings
This is a big, bad badge
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
License
Copyright (c) 2015 Marius Craciunoiu. Licensed under the MIT license.