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.
Adding mc-hidden: hidden does not hide the style
-
- Senior Propellus Maximus
- Posts: 3669
- Joined: Thu Feb 02, 2006 9:57 am
- Location: Pittsford, NY
Re: Adding mc-hidden: hidden does not hide the style
I think you've hit a known Flare bug. I know that certain other things such as generic selectors can't be hidden.
Nita
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
Re: Adding mc-hidden: hidden does not hide the style
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.
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.
-
- Senior Propellus Maximus
- Posts: 3669
- Joined: Thu Feb 02, 2006 9:57 am
- Location: Pittsford, NY
Re: Adding mc-hidden: hidden does not hide the style
Did you add that to a specific medium but the XML Editor is not set to filter for that medium?
Nita
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
Re: Adding mc-hidden: hidden does not hide the style
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!
-
- Jr. Propeller Head
- Posts: 3
- Joined: Sun Apr 03, 2022 6:12 pm
Re: Adding mc-hidden: hidden does not hide the style
It doesn't make sense. If there is a facility to hide irrelevant classes, it should work whether there is a selector present or not.
I had this problem too, but specifying the class did not fix it. It seems to be something to do with our use of multiple stylesheets that form a hierarchy through stylesheet linking. But I found that if I add the mc-hidden property the class in the stylesheet set as the primary stylesheet (not just in the stylesheet included in the primary stylesheet via linking), it finally works. It works, but it is annoying that I have to have multiple definitions of the same class split over multiple stylesheets to make it work!
I had this problem too, but specifying the class did not fix it. It seems to be something to do with our use of multiple stylesheets that form a hierarchy through stylesheet linking. But I found that if I add the mc-hidden property the class in the stylesheet set as the primary stylesheet (not just in the stylesheet included in the primary stylesheet via linking), it finally works. It works, but it is annoying that I have to have multiple definitions of the same class split over multiple stylesheets to make it work!
-
- Senior Propellus Maximus
- Posts: 2632
- Joined: Wed Apr 14, 2010 8:01 am
- Location: Surrey, UK
Re: Adding mc-hidden: hidden does not hide the style
I tried hiding some divs that had classes, and they weren't hidden either. Why is this so difficult?
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx