Adding a Label to the Navigation Slide Out Button

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
jmcgill
Propeller Head
Posts: 20
Joined: Thu May 14, 2015 3:35 pm

Adding a Label to the Navigation Slide Out Button

Post by jmcgill »

Is there a way to add a label to the Navigation Slide Out Button? If a label is not possible, can a tooltip be added? I attempted to add the label to the image file, but the image text was blurry and the tablet.css restricts the icon size to 48x48. The size can be altered in the tablet.css, but I'm working on a skin template that I can share with novice CSS users. I'm pretty sure they will freak out if I ask them to alter the tablet.css in the Output folder. Any ideas? Thanks!
NorthEast
Master Propellus Maximus
Posts: 6365
Joined: Mon Mar 05, 2007 8:33 am

Re: Adding a Label to the Navigation Slide Out Button

Post by NorthEast »

Can't you just add this CSS to your own stylesheet so that it overrides tablet.css?
jmcgill
Propeller Head
Posts: 20
Joined: Thu May 14, 2015 3:35 pm

Re: Adding a Label to the Navigation Slide Out Button

Post by jmcgill »

That was a good suggestion. I added a duplicate CSS entry in the MainStyles.css, but altered the width to accommodate a longer image that included a label. Unfortunately, the two CSS entries (MainStyles.css and Tablet.css) canceled each other out and no icon appeared. Once I removed the entry from the MainStyles.css, the icon reappeared.
NorthEast
Master Propellus Maximus
Posts: 6365
Joined: Mon Mar 05, 2007 8:33 am

Re: Adding a Label to the Navigation Slide Out Button

Post by NorthEast »

If you've edited tablet.css and your CSS works, it should just be a case of using the same CSS in your main stylesheet - since that is loaded after tablet.css.

Anyway, maybe a simpler solution is to do something like this?

Code: Select all

.menu-icon::before
{
    content: "Menu";
    color: #ffffff;
    position: relative;
    left: -40px;
    top: 15px;
    float: left;
}
jmcgill
Propeller Head
Posts: 20
Joined: Thu May 14, 2015 3:35 pm

Re: Adding a Label to the Navigation Slide Out Button

Post by jmcgill »

That did the trick! I tweaked it a bit so the icon would appear first followed by the text. It looks beautiful. Thank you so much.

Code: Select all

.menu-icon::before
{
    content: "Explore";
    color: #ffffff;
    position: relative;
    right: -10px;
    top: 12px;
    float: right;
    width: 120px;
}
Post Reply