Skip to content

goodybag/diet-tags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diet Tags

http://storage.j0.hn/diet-tags.png

Usage:

package.json

"dependencies": {
  "diet-tags": "goodybag/diet-tags"
}
@import "./node_modules/diet-tags/index.less"

@img-base-url: '../dist/img';
@diet-tag-size: 20px;
#components > .diet-tags( @img-base-url, @diet-tag-size );
<span class="diet-tag diet-tag-gluten-free"></span>
<span class="diet-tag diet-tag-vegan"></span>
<span class="diet-tag diet-tag-vegetarian"></span>
<span class="diet-tag diet-tag-kosher"></span>
<span class="diet-tag diet-tag-halal"></span>
<span class="diet-tag diet-tag-dairy-free"></span>
<span class="diet-tag diet-tag-nuts"></span>
<span class="diet-tag diet-tag-spicy"></span>

In a build step, copy the files from diet-tags/img to a public directory (preferably one that is ignored from vcs).

API

.diet-tags( @diet-tags-url, @diet-tag-size: 20px, @gutter: 5px )

Params

  • @diet-tags-url - The path where the diet tags images are stored
  • @diet-tag-size - The size of the icons
  • @gutter - Space between icons

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages