Coder Social home page Coder Social logo

mjonuschat / bootstrap-sass-rails Goto Github PK

View Code? Open in Web Editor NEW
279.0 279.0 55.0 1.86 MB

HTML, CSS, and JS toolkit from Twitter – Official Sass port:

Home Page: https://github.com/twbs/bootstrap-sass

License: Other

Ruby 12.51% CSS 87.44% JavaScript 0.05%

bootstrap-sass-rails's People

Contributors

antho1404 avatar jarhart avatar joshuabremer avatar jstayton avatar kylewest avatar mjonuschat avatar nicoarbogast avatar potatosalad avatar rafaelgaspar avatar silvenon avatar stephenprater avatar tiwatson avatar ys avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bootstrap-sass-rails's Issues

tooltip does not work

Maybe you miss the line '&.in {.opacity(80);}' in .tooltip class. Could you check it ?

Upgrade to 2.3.2

Hi

Sorry to bother for such a small thing, but bootstrap got updated to 2.3.2 to take care of the middle click in firefox not working

any chance of upgrading this gem as well?

thanks

Clearfix class not included?

Is there a reason why the clearfix css class of bootstrap is not included in this gem?

This is in the original css of bootstrap :

.clearfix {
   *zoom: 1;
}
.clearfix:before,
.clearfix:after {
   display: table;
   content: "";
   line-height: 0;
 }
.clearfix:after {
   clear: both;
}

bootstrap :File to import not found or unreadable

Hello!
I have found alredy some topics about my problem but I didnt understand how it should be fixed. Sorry =)

I was following http://ruby.railstutorial.org/chapters/filling-in-the-layout#fnref-5_5 tutorial and stuck by importing the bootstrap in app/assets/stylesheets/custom.css.scss.

That is my Gemfile:

source 'https://rubygems.org'
gem 'bootstrap-sass', '2.0.4'
gem 'rails', '3.2.8'

group :development, :test do
gem 'sqlite3', '1.3.5'
gem 'rspec-rails', '2.11.0'
end

Gems used only for assets and not required

in production environments by default.

group :assets do
gem 'sass-rails', '3.2.5'
gem 'coffee-rails', '3.2.2'
gem 'uglifier', '1.2.3'
end

gem 'jquery-rails', '2.0.2'

group :test do
gem 'capybara', '1.1.2'
end

group :production do
gem 'pg', '0.12.2'
end

And what error I get on localhost/sample_app/home

Sass::SyntaxError in Static_pages#home

Showing c:/Users/katja/Arbeit/rails_projects/sample_app/app/views/layouts/application.html.erb where line #5 raised:

File to import not found or unreadable: bootstrap.
Load path: Sass::Rails::Importer(c:/Users/katja/Arbeit/rails_projects/sample_app/app/assets/stylesheets/custom.css.scss)
(in c:/Users/katja/Arbeit/rails_projects/sample_app/app/assets/stylesheets/custom.css.scss)
Extracted source (around line #5):

2:
3:
4: <title><%= full_title(yield(:title)) %></title>
5: <%= stylesheet_link_tag "application", media: "all" %>
6: <%= javascript_include_tag "application" %>
7: <%= csrf_meta_tags %>
8: <!--[if lt IE 9]>
Rails.root: c:/Users/katja/Arbeit/rails_projects/sample_app

Application Trace | Framework Trace | Full Trace
app/assets/stylesheets/custom.css.scss:1
app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb__16020705_20168520'

Thank you in advanced

No icons in production

Not sure if it's user error, but this gem works perfectly in development mode, and in production does not display the icons.

The paths are different:

development:

background-image: url(/assets/twitter/bootstrap/glyphicons-halflings.png);

production:

  background-image: image-url("twitter/bootstrap/glyphicons-halflings.png");

Not sure what is causing that, but clearly, the latter does not work.

Variable arguments cause syntax error

Hi,

I get the following syntax error when I use bootstrap-sass-rails in a simple configuration:

Invalid CSS after "...shadow($shadows": expected ")", was "...) {"

This is refering on a passage in the twitter/mixins file where variable arguments are use

// Drop shadows
@mixin box-shadow($shadows...) {
  -webkit-box-shadow: $shadows;
     -moz-box-shadow: $shadows;
          box-shadow: $shadows;
}

I am using:

  • Ruby 1.9.2
  • Rails 3.2.8
  • sass 3.2.0
  • sass-rails 3.2.5
  • bootstrap-sass-rails 2.2.1

The gem file looks like this

group :assets do
  gem 'bootstrap-sass-rails'
end

The application.css.scss contains just a single line

@import 'twitter/bootstrap'

Undefined variable: "$baseLineHeight".

When assets precompile on Heroku failed, I tried RAILS_ENV=production rake assets:precompile on my local/development machine, and here what I’ve got:

** Invoke assets:precompile (first_time)
** Execute assets:precompile
/Users/exalted/.rbenv/versions/2.0.0-p195/bin/ruby ./bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke tmp:cache:clear (first_time)
** Execute tmp:cache:clear
** Execute assets:precompile:primary
rake aborted!
Undefined variable: "$baseLineHeight".
  (in /Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/bootstrap-sass-rails-2.3.2.0/vendor/assets/stylesheets/twitter/bootstrap/_accordion.scss)
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/bootstrap-sass-rails-2.3.2.0/vendor/assets/stylesheets/twitter/bootstrap/_accordion.scss:9
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/script/variable.rb:49:in `_perform'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/script/node.rb:40:in `perform'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/tree/visitors/perform.rb:298:in `visit_prop'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/tree/visitors/base.rb:37:in `visit'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/tree/visitors/perform.rb:100:in `visit'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/tree/visitors/base.rb:53:in `block in visit_children'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/tree/visitors/base.rb:53:in `map'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/tree/visitors/base.rb:53:in `visit_children'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/tree/visitors/perform.rb:109:in `block in visit_children'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/tree/visitors/perform.rb:121:in `with_environment'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/tree/visitors/perform.rb:108:in `visit_children'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/tree/visitors/base.rb:37:in `block in visit'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/tree/visitors/perform.rb:320:in `visit_rule'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/tree/visitors/base.rb:37:in `visit'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/tree/visitors/perform.rb:100:in `visit'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/tree/visitors/base.rb:53:in `block in visit_children'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/tree/visitors/base.rb:53:in `map'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/tree/visitors/base.rb:53:in `visit_children'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/tree/visitors/perform.rb:109:in `block in visit_children'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/tree/visitors/perform.rb:121:in `with_environment'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/tree/visitors/perform.rb:108:in `visit_children'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/tree/visitors/base.rb:37:in `block in visit'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/tree/visitors/perform.rb:128:in `visit_root'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/tree/visitors/base.rb:37:in `visit'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/tree/visitors/perform.rb:100:in `visit'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/tree/visitors/perform.rb:7:in `visit'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/tree/root_node.rb:20:in `render'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/engine.rb:315:in `_render'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-3.2.7/lib/sass/engine.rb:262:in `render'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sass-rails-3.2.6/lib/sass/rails/template_handlers.rb:106:in `evaluate'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/tilt-1.3.7/lib/tilt/template.rb:77:in `render'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/context.rb:193:in `block in evaluate'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/context.rb:190:in `each'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/context.rb:190:in `evaluate'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/processed_asset.rb:12:in `initialize'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/base.rb:249:in `new'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/base.rb:249:in `block in build_asset'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/base.rb:270:in `circular_call_protection'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/base.rb:248:in `build_asset'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/index.rb:93:in `block in build_asset'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/caching.rb:19:in `cache_asset'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/index.rb:92:in `build_asset'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/base.rb:169:in `find_asset'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/index.rb:60:in `find_asset'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/bundled_asset.rb:16:in `initialize'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/base.rb:252:in `new'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/base.rb:252:in `build_asset'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/index.rb:93:in `block in build_asset'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/caching.rb:19:in `cache_asset'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/index.rb:92:in `build_asset'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/base.rb:169:in `find_asset'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/index.rb:60:in `find_asset'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/sprockets/static_compiler.rb:19:in `block in compile'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/base.rb:219:in `block in each_logical_path'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/base.rb:206:in `block (2 levels) in each_file'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/base.rb:196:in `each'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/base.rb:196:in `each_entry'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/base.rb:204:in `block in each_file'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/base.rb:203:in `each'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/base.rb:203:in `each_file'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/sprockets-2.2.2/lib/sprockets/base.rb:217:in `each_logical_path'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/sprockets/static_compiler.rb:18:in `compile'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/sprockets/assets.rake:56:in `internal_precompile'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/sprockets/assets.rake:70:in `block (3 levels) in <top (required)>'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:246:in `call'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:241:in `each'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain'
/Users/exalted/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/sprockets/assets.rake:60:in `block (3 levels) in <top (required)>'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:246:in `call'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:241:in `each'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain'
/Users/exalted/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:143:in `invoke_task'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:101:in `block (2 levels) in top_level'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:101:in `each'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:101:in `block in top_level'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:110:in `run_with_threads'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:95:in `top_level'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:73:in `block in run'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/bin/rake:33:in `<top (required)>'
./bin/rake:16:in `load'
./bin/rake:16:in `<main>'
Tasks: TOP => assets:precompile:primary
rake aborted!
Command failed with status (1): [/Users/exalted/.rbenv/versions/2.0.0-p195/...]
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/file_utils.rb:53:in `block in create_shell_runner'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/file_utils.rb:45:in `call'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/file_utils.rb:45:in `sh'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/file_utils_ext.rb:37:in `sh'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/file_utils.rb:80:in `ruby'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/file_utils_ext.rb:37:in `ruby'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/sprockets/assets.rake:12:in `ruby_rake_task'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/sprockets/assets.rake:21:in `invoke_or_reboot_rake_task'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:246:in `call'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:241:in `each'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain'
/Users/exalted/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:143:in `invoke_task'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:101:in `block (2 levels) in top_level'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:101:in `each'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:101:in `block in top_level'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:110:in `run_with_threads'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:95:in `top_level'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:73:in `block in run'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
/Users/exalted/Development/foobar/vendor/bundle/ruby/2.0.0/gems/rake-10.0.4/bin/rake:33:in `<top (required)>'
./bin/rake:16:in `load'
./bin/rake:16:in `<main>'
Tasks: TOP => assets:precompile

Any ideas please?

Gemfile:

  gem 'sass-rails',   '~> 3.2.3'
  gem 'bootstrap-sass-rails'
  gem 'font-awesome-sass-rails’

Gemfile.lock:

    bootstrap-sass-rails (2.3.2.0)
      sass-rails (>= 3.1.0)
    font-awesome-sass-rails (3.0.2.2)
      sass-rails (>= 3.1.1)
    sass (3.2.7)
    sass-rails (3.2.6)
      sass (>= 3.1.10)
  bootstrap-sass-rails
  font-awesome-sass-rails
  sass-rails (~> 3.2.3)

application.css:

 *= require_self
 *
 *= require bootstrap_and_overrides
 *= require _font-awesome
 *= require social-buttons
 *
 *= require main

application.js:

//= require jquery
//= require jquery_ujs
//
//= require rails.validations
//= require rails.validations.simple_form
//= require twitter/bootstrap

Typographical error in _navbar.scss (s/solid/solit/)

$ ack solit
vendor/assets/stylesheets/twitter/bootstrap/_navbar.scss
122:    border: 1px solit $navbarSearchBorder;

I'd send a pull-request, but I'd imagine it's much, much easier for you to fix this without that overhead. Thanks!

How about rails port of twbs

because from a rails perspective the new structure of twbs/bootstrap-sass really sucks,
would be great to keep this project

everything should/can be copied from twbs/bootstrap-sass but keep the old vendor/assets/.. structure so the app or other gems can override original sass .. what is one of the best features of the asset-pipeline .. but completely destroyed by the new structure of twbs/bootstrap-sass since 3.2.0

thanks

Can't override base fonts

I've tried defining my own fonts for $sansFontFamily but my overrides are ignored.

I've found that in order for the base font to be set I have to add this to my overrides file:
$sansFontFamily: "Nunito", "Helvetica Neue", Helvetica, Arial, sans-serif;
$baseFontFamily: $sansFontFamily;

I'm not clear why I have to override $baseFontFamily as well. Shouldn't it pick up $sansFontFamily?

Even with those overrides the form elements are still using the $sansFontFamily defined in the gem. Somehow the call to @include font-sans-serif in the code below is pulling up the fonts from the gem.

// Set font for forms
label,
input,
button,
select,
textarea {
@include font-shorthand($baseFontSize,normal,$baseLineHeight); // Set size, weight, line-height here
}
input,
button,
select,
textarea {
// TODO: MOJ - check baseFontFamily
@include font-sans-serif($baseFontSize,normal,$baseLineHeight); // And only set font-family here for those that need it (note the missing label element)
}

Not sure if it helps but here's the output from _forms.scss:

/* line 50, ../../../../.rvm/gems/ruby-1.9.3-p0@opentapestry/gems/bootstrap-sass-rails-2.0.2.2/vendor/assets/stylesheets/twitter/bootstrap/_forms.scss */
input,
button,
select,
textarea {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 13px;
font-weight: normal;
line-height: 18px;
}

Modal slide in

Could it be that the modal slide doesnt work properly?

my Modal just fades in and doesnt slide from the top

I see the html change from
class="modal hide fade"

to

class="modal hide fade in"

so the javascript is happening.. its just that the slide doesn't

anyone have experienced this behavior?
could it be that something broke between versions?

Glyphicons are not working in production

In development they are working fine but in production they look like squares. Am I doing something wrong here? Or do I have to manually include them myself?

Im using Rails 4 with bootstrap-sass-rails-3.0.0.3.

Rails 4

It would be awesome if you could update the gemspec file so we also can use it with Rails 4.

Undefined mixin 'border-radius'.

Hi,

if i try to use a mixin, i get the following error:

Undefined mixin 'border-radius'.
  (in /Users/marvin/dev/testproject/app/assets/stylesheets/application.css.scss:26)

Here are the steps i did:

  • add gem 'bootstrap-sass-rails' to the gem file
  • run bundle install
  • add mixin to application.css.scss
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
 * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the top of the
 * compiled file, but it's generally better to create a new file per style scope.
 *
 *= require_self
 *= require_tree .
 */


/* 
 * override bootstrap default variables 
 * http://getbootstrap.com/customize/
 */
$border-radius-base: 6px;

@import "twitter/bootstrap";

.well {
  @include border-radius(10px);
  padding: 20px;
}

Any idea what is or what i did wrong?

$placeholderText is ignored in _form.scss

There is an entry for the placeHolderText in _variables.scss:

// Input placeholder text color
// -------------------------
$placeholderText: $grayLight !default;

However, in _forms.scss the value is hard coded to $grayLight:

// Placeholder text gets special styles; can't be bundled together though for some reason
@include placeholder($grayLight);

Incompatible units in navbar.scss

Hi there,
I imported Bootstrap navbar in my rails project (doing: @import "twitter/bootstrap/navbar";) and after that I got this message:

Error Compilling CSS asset
Sass::UnitConversionError: Incompatible units: 'em' and 'px'.

And it says the error is in ../stylesheets/twitter/bootstrap/_navbar.scss:53
Which means the following statement:

padding: (($navbarHeight - $baseLineHeight) / 2) 20px (($navbarHeight - $baseLineHeight) / 2);

I put this statement in my own scss and I got the same error, the error is exactly in the subtraction: $navbarHeight - $baseLineHeight, but if I put, for example, "40px - 20px", there is no error. And I checked the file _variables.scss and both variables have correct values, i. e., in pixels.

So, any ideia what it can be? I don't know if it's some configuration problems or something, I have been using sass Bootstrap here with no problems.

Thanks a million..

Bootstrap assets don't load when deployed on Heroku

During local development the gem works as expected showing bootstrap styles in the browser, but when deployed on Heroku, css and js are not loaded, showing errors like this in the logs:

ActionController::RoutingError (No route matches [GET] "/assets/application-d2158c36372a7dc329c38969f8791ca3.css")

@font-face and $baseFontFamily

After the @import of twitter/bootstrap/variables, twitter/bootstrap/mixins and twitter/bootstrap/type, and the @font-face declaration, the $baseFontFamily value cannot be overwritten. Is still having the default value, even when I recompile de files and clean the cache.

bootstrap-sass-rails seems to break compass

I can't seem to figure out why, but it appears that it can't import anything else in other gem vendor dirs. I'm still looking into it, but figured I'd open the issue in case you knew.

@import compass

File to import not found or unreadable: compass.

sass (3.1.12) lib/sass/tree/import_node.rb:64:in `rescue in import'
sass (3.1.12) lib/sass/tree/import_node.rb:42:in `import'
sass (3.1.12) lib/sass/tree/import_node.rb:25:in `imported_file'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:149:in `rescue in visit_import'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:154:in `visit_import'
sass (3.1.12) lib/sass/tree/visitors/base.rb:37:in `visit'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:18:in `visit'
sass (3.1.12) lib/sass/tree/visitors/base.rb:53:in `block in visit_children'
sass (3.1.12) lib/sass/tree/visitors/base.rb:53:in `map'
sass (3.1.12) lib/sass/tree/visitors/base.rb:53:in `visit_children'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:27:in `block in visit_children'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:39:in `with_environment'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:26:in `visit_children'
sass (3.1.12) lib/sass/tree/visitors/base.rb:37:in `block in visit'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:47:in `visit_root'
sass (3.1.12) lib/sass/tree/visitors/base.rb:37:in `visit'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:18:in `visit'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:7:in `visit'
sass (3.1.12) lib/sass/tree/root_node.rb:20:in `render'
sass (3.1.12) lib/sass/engine.rb:300:in `_render'
sass (3.1.12) lib/sass/engine.rb:247:in `render'
sass-rails (3.2.3) lib/sass/rails/template_handlers.rb:106:in `evaluate'
tilt (1.3.3) lib/tilt/template.rb:76:in `render'
sprockets (2.1.2) lib/sprockets/context.rb:177:in `block in evaluate'
sprockets (2.1.2) lib/sprockets/context.rb:174:in `each'
sprockets (2.1.2) lib/sprockets/context.rb:174:in `evaluate'
sprockets (2.1.2) lib/sprockets/processed_asset.rb:12:in `initialize'
sprockets (2.1.2) lib/sprockets/base.rb:241:in `new'
sprockets (2.1.2) lib/sprockets/base.rb:241:in `block in build_asset'
sprockets (2.1.2) lib/sprockets/base.rb:262:in `circular_call_protection'
sprockets (2.1.2) lib/sprockets/base.rb:240:in `build_asset'
sprockets (2.1.2) lib/sprockets/index.rb:89:in `block in build_asset'
sprockets (2.1.2) lib/sprockets/caching.rb:19:in `cache_asset'
sprockets (2.1.2) lib/sprockets/index.rb:88:in `build_asset'
sprockets (2.1.2) lib/sprockets/base.rb:163:in `find_asset'
sprockets (2.1.2) lib/sprockets/index.rb:56:in `find_asset'
sprockets (2.1.2) lib/sprockets/bundled_asset.rb:38:in `init_with'
sprockets (2.1.2) lib/sprockets/asset.rb:24:in `from_hash'
sprockets (2.1.2) lib/sprockets/caching.rb:15:in `cache_asset'
sprockets (2.1.2) lib/sprockets/index.rb:88:in `build_asset'
sprockets (2.1.2) lib/sprockets/base.rb:163:in `find_asset'
sprockets (2.1.2) lib/sprockets/index.rb:56:in `find_asset'
sprockets (2.1.2) lib/sprockets/environment.rb:74:in `find_asset'
sprockets (2.1.2) lib/sprockets/base.rb:171:in `[]'

RTL Support

3.1 released and still no RTL ? why not ?

foundation 5 and other frameworks are RTLing and you r not !!!

How do I override the default variables?

I am requiring "twitter/bootstrap" in application.css.
I'd like bootstrap to pick up my $font-family-sans-serif, instead of the one that comes with the gem. How do I do that?

Bootstrap 3.0 offset naming inconsitency

In bootstrap 3 to offset a column within a grid you'd use CSS class .col-lg-offset-* whereas currently you have it as .col-offset-*.

While I understand this is easier as offsets are only allowed when the media is large enough for .col-lg-*, it is a potential cause for confusion for people new to the library and it could also break if twitter decide to add column offsets for smaller device resolutions in future.

Images won't compile on Rails 4

Sprockets on Rails 4 changed a little the behaviour of what it compiles and what not, and this includes not compiling vendor/assets anymore, to avoid it from compiling files that shouldn't be compiled.

Labels aren't working anymorze

hello,
Since the new version, the label color are not displayed.
I think that the new system with the &-important ... ... are not a good syntax.
The output asset is : label -important and not label-important

I think that this commit can make it work :

PPaques@68e9725

I'm not sure because i'm new in sass ;)

Image path not correct

In vendor/variables, you have:
$iconSpritePath: "twitter/bootstrap/glyphicons-halflings.png" !default;

This should be:
$iconSpritePath: image-path("glyphicons-halflings.png") !default;

This makes the icons not be on the default /assets/ path, and bootswatch can't find them.

Expected a color. Got: transparent

Likely due to using compass and bootstrap... is this not supported?

bootstrap-sass-rails (2.0.0.0) vendor/assets/stylesheets/twitter/bootstrap/_mixins.scss:456:in `gradient-striped'
bootstrap-sass-rails (2.0.0.0) vendor/assets/stylesheets/twitter/bootstrap/_progress-bars.scss:57
bootstrap-sass-rails (2.0.0.0) vendor/assets/stylesheets/twitter/bootstrap.css.scss:56
compass (0.12.alpha.4) lib/compass/sass_extensions/functions/gradient_support.rb:12:in `initialize'
compass (0.12.alpha.4) lib/compass/sass_extensions/functions/gradient_support.rb:236:in `new'
compass (0.12.alpha.4) lib/compass/sass_extensions/functions/gradient_support.rb:236:in `block in color_stops'
compass (0.12.alpha.4) lib/compass/sass_extensions/functions/gradient_support.rb:229:in `map'
compass (0.12.alpha.4) lib/compass/sass_extensions/functions/gradient_support.rb:229:in `color_stops'
compass (0.12.alpha.4) lib/compass/sass_extensions/functions/gradient_support.rb:285:in `linear_gradient'
sass (3.1.12) lib/sass/script/funcall.rb:88:in `_perform'
sass (3.1.12) lib/sass/script/node.rb:40:in `perform'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:216:in `visit_prop'
sass (3.1.12) lib/sass/tree/visitors/base.rb:37:in `visit'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:18:in `visit'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:201:in `block (2 levels) in visit_mixin'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:201:in `map'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:201:in `block in visit_mixin'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:39:in `with_environment'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:201:in `visit_mixin'
sass (3.1.12) lib/sass/tree/visitors/base.rb:37:in `visit'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:18:in `visit'
sass (3.1.12) lib/sass/tree/visitors/base.rb:53:in `block in visit_children'
sass (3.1.12) lib/sass/tree/visitors/base.rb:53:in `map'
sass (3.1.12) lib/sass/tree/visitors/base.rb:53:in `visit_children'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:27:in `block in visit_children'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:39:in `with_environment'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:26:in `visit_children'
sass (3.1.12) lib/sass/tree/visitors/base.rb:37:in `block in visit'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:236:in `visit_rule'
sass (3.1.12) lib/sass/tree/visitors/base.rb:37:in `visit'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:18:in `visit'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:146:in `block in visit_import'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:146:in `map'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:146:in `visit_import'
sass (3.1.12) lib/sass/tree/visitors/base.rb:37:in `visit'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:18:in `visit'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:146:in `block in visit_import'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:146:in `map'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:146:in `visit_import'
sass (3.1.12) lib/sass/tree/visitors/base.rb:37:in `visit'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:18:in `visit'
sass (3.1.12) lib/sass/tree/visitors/base.rb:53:in `block in visit_children'
sass (3.1.12) lib/sass/tree/visitors/base.rb:53:in `map'
sass (3.1.12) lib/sass/tree/visitors/base.rb:53:in `visit_children'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:27:in `block in visit_children'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:39:in `with_environment'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:26:in `visit_children'
sass (3.1.12) lib/sass/tree/visitors/base.rb:37:in `block in visit'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:47:in `visit_root'
sass (3.1.12) lib/sass/tree/visitors/base.rb:37:in `visit'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:18:in `visit'
sass (3.1.12) lib/sass/tree/visitors/perform.rb:7:in `visit'
sass (3.1.12) lib/sass/tree/root_node.rb:20:in `render'
sass (3.1.12) lib/sass/engine.rb:300:in `_render'
sass (3.1.12) lib/sass/engine.rb:247:in `render'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.