Closed (won't fix)
Project:
Drupal core
Version:
8.0.x-dev
Component:
Garland theme
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
11 Dec 2006 at 11:42 UTC
Updated:
29 Jul 2014 at 17:33 UTC
To further optimize Garland performance, consider using CSS Image rollovers.
see: http://www.designmeme.com/articles/cssrollovers/ for an example of what I mean.
This will only load 1 image for the entire theme, and then different mouseover sections will use different co-ordinates of the image.
Put all of the following files into one big PNG:
*bg-bar-white.png
*bg-content-right.png
*bg-navigation-item.png
*body.png
*menu-expanded.gif
*bg-bar.png
*bg-content.png
*bg-navigation.png
*gradient-inner.png
*menu-leaf.gif
*bg-content-left.png
*bg-navigation-item-hover.png
*bg-tab.png
*menu-collapsed.gif
Could this work?
Thanks
Comments
Comment #1
Crell commentedPositioned background images are all well and good for rollovers, but using them for all images on the page is asking for trouble. The technique doesn't always work right, especially in IE. It also makes updating images much harder, because you have to recalculate all of your image positions every time you change an image. So no, I don't think it would work to go that far with it.
Comment #2
Steven commentedI decided against CSS sprites for the rollovers, because they would be harder to generate programmatically (we'd have to assemble slices together again). This is something for 6.0.
Using them for static background images is a lot of work, especially in a layered theme like Garland. It is not worth the trouble IMO.
Comment #3
jacauc commentedThats why i marked the issue for 6.x dev
Comment #4
jacauc commentedCould we consider doing this for the one thing that annoys me and some people testing my devel site the most?
That thing is the little downward arrow above the primary links. When hovering over a primary link, it is annoying to wait for the new image to load.
Just a thought... Really not a trainsmash, but would be nice.
Thanks again!
Comment #5
Stefan Nagtegaal commentedI'm working on Garland/Minelli again, so updating the title and assigning myself..
Comment #6
Jeff Burnz commentedLooks like this never happened - bumping off to D8.
Comment #7
amateescu commentedThe Garland theme has been removed from D8: #911054: Remove Garland from Core