Skip to content

jhardy/sassy-glyph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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";
}

About

Easy CSS content glyph character conversion.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published