项目作者: raulghm

项目描述 :
Stylus port for font-awesome 4.7.0
高级语言: CSS
项目地址: git://github.com/raulghm/Font-Awesome-Stylus.git
创建时间: 2013-10-30T19:26:23Z
项目社区:https://github.com/raulghm/Font-Awesome-Stylus

开源协议:GNU General Public License v2.0

下载


Font Awesome Stylus





Stylus Port for Font Awesome

Installation

Import font-awesome in your project and configure fonts path correctly ($fa-font-path)

Bower support

  1. bower install font-awesome-stylus

NPM support

  1. npm install font-awesome-stylus

Usage

Set font path

  1. $fa-font-path = "../fonts"
  2. // OR
  3. $fa-font-path = "http://netdna.bootstrapcdn.com/font-awesome/4.7.0/fonts"

Example of requiring and using font-awesome middleware to create compile function to utilize in other frameworks.

  1. var fontAwesome = require('font-awesome-stylus'),
  2. stylus = require('stylus');
  3. function compile(str) {
  4. return stylus(str)
  5. .use(fontAwesome());
  6. }

To import whole font-awesome in your stylus file:

  1. @import "font-awesome-stylus"

Include icon using mixin

  1. .my-icon
  2. fa(user)

Original source

http://fortawesome.github.io/Font-Awesome