![]() a hash of options used during compilation.This should run the installed and configured gem to create your icons: Compiling icons.Ĭreate app/assets/stylesheets/_icons.scssĪccess these new icons by creating a tag with the class icon-) Load up the icons directory and test it out. This tells the gem to take the vectors from app/assets/icons and create fonts and stylesheets for them.Ĭreate a file in lib/tasks called icons.rake : namespace :icons do task :compile do puts " Compiling icons. ![]() bundleĬreate a fontcustom.yml file with something like this: # config/fontcustom.yml ![]() Preprocessor_path as the relative path from your compiled CSS to your outputĪdd gem 'fontcustom' to your gem file. Set templates to include scss-rails to generate a SCSS partial with theĬompatible font-url() helper. ThisĬan be much easier than centering dozens of SVGs by hand.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |