Closed (fixed)
Project:
Button style
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Aug 2009 at 14:09 UTC
Updated:
27 Dec 2009 at 04:30 UTC
Actually I was going to use similar thing myself, just didn't have time for implementing this as module. So nice that you implemented it.
I think this will work for $links ( node links, comment links, forum post links) too.
Comments
Comment #1
crea commentedWell it can be done using some CSS but having central place for maintaining all site buttons would be awesome!
Comment #2
sunwell, that's basically easy... just apply the CSS class 'button' to all list items of links, i.e. ['#attributes']['class'] = 'button'.
Not sure though, how to integrate this in a non-breaking way, because, personally, I wouldn't want to turn links into buttons on my sites.
Comment #3
crea commentedWell, one example where links as buttons makes perfect sense is forums. Advanced Forum, for example, implements for each link button-like appearance via background images. But I don't like this approach cause it takes lot of effort to make separate image for every button, and I think "sliding door" is better fit for this case. With "sliding door" themer also automatically gets same style for buttons because they share same background, and changing style is so easy - compare to making another set of background images for every button.
Comment #4
crea commentedApplying class doesn't work for me. "Sliding door" needs 2 "door" backgrounds so I think it requires custom theming function ( theme_links() ) to work.
Comment #5
sunoh, you need to apply the class on the LI, not on the A. The styles are already prepared to turn the entire list item into a button.
We could be able to do this, if #588148: theme_links() is not really themeable was already in core. So please help to get this sucker in.
Comment #6
crea commentedSince the time I tested your module, I played with it lot, and abandoned finally. To make it fully cross-browser is really recipe for nightmare.. :(
Comment #7
crea commentedoops dupe
Comment #8
crea commentedoops dupe
Comment #9
sunAlright, since you no longer use it, I'm closing this request.