Adding mc-hidden: hidden does not hide the style

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

Adding mc-hidden: hidden does not hide the style

Postby Meligator on Tue Oct 12, 2021 2:37 pm

There are classes in the CSS that are used to style our pages, but never need to be manually selected from the Style Window. I'm trying to prevent Flare from showing them in the Style Window. I've added the following property to the CSS definition, but it's not working:
mc-hidden: hidden;

For example, I have the following in the CSS, but the Style Window still lists #hideMoreLink:

#hideMoreLink
{
list-style-image: url('../images/icons/triangle_up.png');
mc-hidden: hidden;
}

I've tried closing and reopening the project and Flare itself, but that didn't help.
Meligator
Jr. Propeller Head
 
Posts: 8
Joined: Thu Jun 13, 2019 5:04 pm

Re: Adding mc-hidden: hidden does not hide the style

Postby Nita Beck on Tue Oct 12, 2021 2:51 pm

I think you've hit a known Flare bug. I know that certain other things such as generic selectors can't be hidden.
Nita
Image
Content Strategist / Information Architect / Flare Consultant: http://beck-communications.com
Manager, Rochester Flare User Group: http://www.facebook.com/RochesterFlareUserGroup
Nita Beck
Senior Propellus Maximus
 
Posts: 3461
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Adding mc-hidden: hidden does not hide the style

Postby Meligator on Wed Oct 13, 2021 12:29 pm

Ah, yes -- I found that in the documentation. So now I have this (as one example):

p.content-box
{
mc-hidden: hidden;
}

But it still doesn't work. When I put my cursor in a paragraph in Flare, I can still select .content-box from the Styles pane.
Meligator
Jr. Propeller Head
 
Posts: 8
Joined: Thu Jun 13, 2019 5:04 pm

Re: Adding mc-hidden: hidden does not hide the style

Postby Nita Beck on Wed Oct 13, 2021 12:41 pm

Did you add that to a specific medium but the XML Editor is not set to filter for that medium?
Nita
Image
Content Strategist / Information Architect / Flare Consultant: http://beck-communications.com
Manager, Rochester Flare User Group: http://www.facebook.com/RochesterFlareUserGroup
Nita Beck
Senior Propellus Maximus
 
Posts: 3461
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Adding mc-hidden: hidden does not hide the style

Postby Meligator on Wed Oct 13, 2021 2:48 pm

No, but I figured out the problem. This was working for some things but not for others. When I realized that you can't use mc-hidden on just a class, I didn't realize that it won't work if your CSS defines the class without any selectors. For example, I thought that if our CSS defined .content-box, I could hide that class by adding p.content-box (etc.) with the mc-hidden attribute. Makes sense, now that I think about it. Thanks!
Meligator
Jr. Propeller Head
 
Posts: 8
Joined: Thu Jun 13, 2019 5:04 pm


Return to Styles, Stylesheets and XML

Who is online

Users browsing this forum: No registered users and 3 guests