Get a character CSS unicode
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
readme.md
sass-getunicode.gemspec

readme.md

Sass Get Unicode Plugin

This plugin allow you to use easily a special character in a pseudo element (i.e. ::before and ::after).

Example:

There is only one Sass::Script functions which can be used in your sass.

.foo:after{
  content:getUnicode('⬆');
}

Compiles to:

.foo:after{
  content:"\2b06";
}

Et voilà !

Installation

gem install sass-getunicode

Usage

Use with the Sass command line

sass -r sass-getunicode --watch sass_dir:css_dir

Use with compass

Add the following to your compass configuration:

require 'sass-getunicode'

Credit

Copyright

Copyright (c) 2013 Victor Coulon - Hull. Licence MIT