Closed (won't fix)
Project:
Menu Icons
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Jun 2011 at 14:40 UTC
Updated:
8 Feb 2014 at 20:36 UTC
Jump to comment: Most recent
Comments
Comment #1
andyf commentedI'd also be interested in this. I think service links has a module for generating sprites which could serve as inspiration.
Comment #2
acrollet commentedThe CSS Embedded Images can fulfill the goal of this request. IMO it doesn't make sense to add lots of separately maintained code to meet the sprite generation use-case, but I would consider doing this with the sprite module if a well-supported d7 release came out. For now this is a wontfix.
Comment #3
andyf commentedUnderstood, thanks for clarifying.
Comment #4
ridgek commentedacrollet, the CSS Embedded Images module is indeed a great module, but at least at first glance, it unfortunately seems it only parses theme CSS files. Upon enabling it on my test site, any CSS background images in my theme stylesheets are replaced by data:, but menu_icon's stylesheets remain untouched. I suppose this should be a feature request for the CSS Embedded Images module. :)
Comment #5
ridgek commentedJust submitted a feature request to CSS Embedded Images module for this. http://drupal.org/node/1601026
Comment #6
OnkelTem commentedI just want to announce a related module which I've just uploaded. It's called Sprites.
It generates sprites from images of a specific image style, replaces affected IMG tags with SPAN with identification CSS classes and generates required CSS definitions for applying background to SPANS.
Sandbox link: https://drupal.org/sandbox/onkeltem/2191795
Please check out and review.
Thanks.
P.S. Honestly, the idea of the module had come to my mind after I played with menu_icons module for some days. The problem with menu_icons module is that it doesn't support different states of menu icon images — like :hover, :focus, .active and etc. So I had to tweak menu_icons module by adding a couple of hooks which I used to plug SASS/Compass generation mechanism and I succeeded, while the solution was not universal. So I wished to create a more powerful solution and here you are: Sprites module, which works with any managed images processed through image styles (imagecache).