Git Product home page Git Product logo

font-icons's Introduction

Install

# Get the compass extension:
$ sudo gem install font-icons --pre

# Add the following lines to your compass configuration file:
require 'font-icons'

# Adding a font to your library is achieved by running the following command within an existing compass project:
$ compass install -r font-icons font-icons/FONTNAME

# The following paramaters are accepted:
iconic, entypo

# Optionally, you can install all fonts at once using: 
$ compass install -r font-icons font-icons

Update

# Uninstall the compass extension:
$ sudo gem uninstall font-icons

# Install the compass extension again:
$ sudo gem install font-icons --pre

Usage

// Import font-icons compass extension
@import "font-icons";

// Add the font family
@include font-icon-family(entypo);

// Style your heart out
ul.entypo {
  list-style: none;
  list-style-image: none;
  li {
    @include font-icon-base(entypo); 
    &.menu-item-001 { @extend %entypo-music; }
  }
}

// To any piece of content
.randomcontent {
    @include font-icon-base(entypo); 
    @extend %entypo-music;
}

Arguments

@include font-icon-base($family:"iconic", $font-size: 1em, $width: 1em, $margin: 0.8em)

Font Attribution

Fonts included from the Entypo font icon set created by Daniel Bruce
http://www.entypo.com
License: SIL Open Font License

Fonts included from the Iconic font icon set created by P.J. Onori
http://somerandomdude.com/work/iconic/
License: SIL Open Font License

License

See LICENSE.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.