Use icons?

aharown07 - October 28, 2008 - 02:22
Project:Fasttoggle
Version:5.x-1.1
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

How hard would it be to replace the text links with icons? I don't mind doing this myself (rather than feature request) but my PHP /CSS skills are rudimentary so a nudge in the right direction wd be appreciated.
My comments are just getting quite cluttered with links for the admin/moderator roles.

#1

nige - October 28, 2008 - 17:16

I don't think you can replace the text of a link with plain icons using css. What you can do is to define an icon to show up before a linked text (or anything else linked) or afterwards. IE6 doesn't support that, but there is a good and small workaround for that.
For other solutions you have to code PHP.

#2

kkaefer - October 28, 2008 - 15:35

Technically, it is possible to “hide” the text of a link, e.g. by using text-indent:-9999px;. However, fasttoggle currently doesn’t allow to add classes so that you can target the link in an IE6-compatible way. You can still write selectors for the current versions by using things like a[href^='/node/1234/toggle/sticky].

#3

aharown07 - October 28, 2008 - 16:51

OK, thanks.
A bit of php hacking isn't out of the question. Is it possible to override fastoggle functions in template.php?
(I only half know what that means, but I'm getting there)

#4

kkaefer - November 8, 2008 - 11:09
Status:active» fixed

Added class names (version in CVS).

--project followup subject--

System Message - November 22, 2008 - 11:15

Automatically closed -- issue fixed for two weeks with no activity.

#5

System Message - November 22, 2008 - 11:22
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.