1
vote
0answers
73 views

Import same Compass Sprite across multiple stylesheets with Rails

Sometimes we have both regular and partial .sass files with @include declarations using the very same sprite images. This is easily used in standalone sass because you can @import icons/*.png in the ...
0
votes
0answers
113 views

Compass-rails won't generate sprites

in app/assets/stylesheets/application.sass: @import "compass/css3/images" @import "icons/*.png" # => app/assets/images/icons/*.png in app/assets/stylesheets/icons/icons.sass: @include ...
0
votes
2answers
70 views

Preloading css sprites

I have a css file with the following reference to chess.svg. Is there a simple way to get the chess.svg sprite and other css images to start downloading without having to first wait for the entire css ...
1
vote
1answer
332 views

Is there any good alternative to compass-rails for automatic css sprites with rails?

I installed compass-rails in my Rails 3.2.6 app but only for the automatic sprites feature and I'm thinking that : This is probably overkill I need to launch the watch task or nothing happens ...
2
votes
1answer
167 views

Should we keep Sprited images out of the Asset Pipeline?

We use Compass to Sprite images (combine many images into a single file). If I create a Sprite for the images/common/ dir, Compass creates a file named common-sff832da50b.png. Compass generates a ...
0
votes
1answer
189 views

CSS Sprite for Submit Button not working (In Rails 3)

I'm having trouble getting my CSS sprite effect to work in my rails app, not sure why because I don't totally understand the concept. Heres my submit button code: <%= f.submit '', :class => ...
0
votes
0answers
133 views

Rails 3.0.9 CSS Sprites in img tags

I'm working in a Rails 3.0.9 app and chose css_sprite over lemonade to generate a CSS sprite. So far that works very well, using the generated sprite classes in most HTML tags works perfectly fine, ...
1
vote
4answers
78 views

Is that possible to do this using external CSS?

Consider the following example: HTML: <div id="julia" class="photo"></div> <div id="rachel" class="photo"></div> <div id="martin" class="photo"></div> CSS: ...
3
votes
3answers
2k views

CSS Sprite generator for Ruby on Rails project

I'm currently working on a large, highly trafficked Ruby on Rails website and in order to get our page load times down, we are looking at spriting our background images. There seem to be a lot of ...