sassy-glyph

Easy CSS content glyph character conversion.


License
MIT
Install
bower install sassy-glyph

Documentation

Glyph

Glyph is a small extension that will convert a special character to it's CSS hex value for use in :before and :after pseudo content.

Glyph Demo

Installation

Compass

# Install gem
gem install sassy-glyph

# Require in your config.rb file
require 'glyph'

# Import into your project
@import "sassy-glyph";

Usage

Use the glyph mixin in the content property and it will compile to the correct HTML glyph octal

# Use glyph mixin
.arrow:after {
    content: glyph(➜)
}

# CSS compiles to
.arrow:after {
    content: "\279C";
}