seyhunak / twitter-bootstrap-rails

Twitter Bootstrap for Rails 6.0, Rails 5 - Rails 4.x Asset Pipeline
https://github.com/seyhunak/twitter-bootstrap-rails
4.49k stars 997 forks source link

Unable to disable FontAwesome icons and use Glyphicons #503

Closed RepublicOfAppsLLC closed 10 years ago

RepublicOfAppsLLC commented 11 years ago

Hi,

I want to disable font awesome and use the default glyph icons. I am following the exact instructions on the README, by commenting out fontawesome and uncommenting twitter bootstrap sprites:

@import "twitter/bootstrap/bootstrap";
@import "twitter/bootstrap/responsive";

// Set the correct sprite paths
@iconSpritePath: asset-path("twitter/bootstrap/glyphicons-halflings");
@iconWhiteSpritePath: asset-path("twitter/bootstrap/glyphicons-halflings-white");

// Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines)
// Note: If you use asset_path() here, your compiled bootstrap_and_overrides.css will not
//       have the proper paths. So for now we use the absolute path.
// @fontAwesomeEotPath: asset-path("fontawesome-webfont.eot");
// @fontAwesomeEotPath_iefix: asset-path("fontawesome-webfont.eot#iefix");
// @fontAwesomeWoffPath: asset-path("fontawesome-webfont.woff");
// @fontAwesomeTtfPath: asset-path("fontawesome-webfont.ttf");
// @fontAwesomeSvgPath: asset-path("fontawesome-webfont.svg");

// Font Awesome
// @import "fontawesome";

// Glyphicons
@import "twitter/bootstrap/sprites.less";

// Your custom LESS stylesheets goes here
//
// Since bootstrap was imported above you have access to its mixins which
// you may use and inherit here
//
// If you'd like to override bootstrap's own variables, you can do so here as well
// See http://twitter.github.com/bootstrap/customize.html#variables for their names and documentation
//
// Example:
// @linkColor: #ff0000;

However, when I do this, I get a syntax error upon running assets:precompile:

rake aborted!
Invalid CSS after "...lass*=" icon-"]": expected ")", was "{background-ima..."
  (in /Users/republicofapps/roa/app/assets/stylesheets/application.css)
(sass):885
/Users/republicofapps/.rvm/gems/ruby-1.9.2-p180@foo/gems/sass-3.2.5/lib/sass/scss/parser.rb:1136:in `expected'

Can somebody please help me? I want to use twitter-bootstrap-rails, but without fontawesome.

Thanks!

achempion commented 11 years ago

try to uncomment the // @import "fontawesome"; line

aj7 commented 11 years ago

i am getting the same problem...seems to be related to this: // @import "twitter/bootstrap/sprites.less";

toadkicker commented 10 years ago

If you are using v3 it has been renamed to glyphicons.less instead of sprites.less.