Changing drop-down heading colors?

This forum is for all Flare issues related to styles, stylesheets and XML.

Changing drop-down heading colors?

Postby ChristineShirey on Thu Jun 19, 2008 1:28 pm

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
ChristineShirey
Propeller Head
 
Posts: 14
Joined: Tue Oct 23, 2007 9:07 am
Location: Boston, MA

Re: Changing drop-down heading colors?

Postby LTinker68 on Thu Jun 19, 2008 2:53 pm

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.
LTinker68
Master Propellus Maximus
 
Posts: 7245
Joined: Thu Feb 16, 2006 9:38 pm

Re: Changing drop-down heading colors?

Postby Dave Lee on Tue Jun 24, 2008 7:41 am

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.
Dave Lee
Master Propellus Maximus
 
Posts: 5872
Joined: Mon Mar 05, 2007 8:33 am
Location: UK

Re: Changing drop-down heading colors?

Postby LTinker68 on Tue Jun 24, 2008 8:36 am

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.
LTinker68
Master Propellus Maximus
 
Posts: 7245
Joined: Thu Feb 16, 2006 9:38 pm


Return to Styles, Stylesheets and XML

Who is online

Users browsing this forum: No registered users and 8 guests