Changing drop-down heading colors?

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
ChristineShirey
Propeller Head
Posts: 14
Joined: Tue Oct 23, 2007 9:07 am
Location: Boston, MA

Changing drop-down heading colors?

Post by ChristineShirey »

My drop-down headings (hotspot text) appear to be picking up the link and hover colors from a:link and a:hover (but not a:visited?). Is there a way for me to change the drop-down heading colors without changing all the other links in the project?

Thanks,
Christine
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Changing drop-down heading colors?

Post by LTinker68 »

You can, but you have to manually modify the stylesheet. I don't use drop-down effects, but the examples below show how to do it with a toggler. The principle is the same -- you'd just change toggler for dropDownHotspot or whatever that tag is.

Code: Select all

toggler:link
{
     color:#336699;
     text-decoration: none;
}

toggler:visited
{
     color:#336699;
     text-decoration: none;
}

toggler:focus
{
     color:#336699;
     text-decoration: none;
}

toggler:hover
{
     color:#880000;
     text-decoration: none;
}

NOTE: The code above is shown with each link state separated, but they could also be combined like the following (just make sure the hover is the last one or the last one before "active" if you add that state):

Code: Select all

toggler:link,
toggler:visited,
toggler:focus
{
     color:#336699;
     text-decoration: none;
}

toggler:hover
{
     color:#880000;
     text-decoration: none;
}
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
NorthEast
Master Propellus Maximus
Posts: 6354
Joined: Mon Mar 05, 2007 8:33 am

Re: Changing drop-down heading colors?

Post by NorthEast »

Yep, edit dropDownHotSpot - you don't need to edit it manually in text view, you can set the styles for the link and pseudo classes (focus, hover) in either of the stylesheet views.
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Changing drop-down heading colors?

Post by LTinker68 »

Dave Lee wrote:Yep, edit dropDownHotSpot - you don't need to edit it manually in text view...
Thanks, Dave. I didn't have Flare running at the time, so I just opened the stylesheet file directly. Couldn't remember if the drop-down styles had their own pseudo-classes or not.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Post Reply