Not all span classes appear

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
mel_w
Propeller Head
Posts: 33
Joined: Wed Oct 19, 2011 2:05 pm

Not all span classes appear

Post by mel_w »

Hi,
Our stylesheet has 28 span classes. When I try to apply a span class in the XML Editor (by right-clicking the text to which I want to apply the class and selecting Span Class from the context menu), I see a list of 20 span classes, and at the bottom of the list, this text "Only 20 of 28 styles shown!".

I don't see an option to display all styles. Is there a trick to this, or perhaps another way to apply a span class?

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

Re: Not all span classes appear

Post by LTinker68 »

I usually leave the Styles pane docked on the right side of the GUI. Then when I select the text, the Styles pane will show the related styles, which would include the span styles, in this case. You can easily scroll in that list to select the style you want.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
mel_w
Propeller Head
Posts: 33
Joined: Wed Oct 19, 2011 2:05 pm

Re: Not all span classes appear

Post by mel_w »

Thanks! I have the Styles pane open too, but my span classes don't appear in the Styles pane--just the span style, and what looks like two default span classes (span.boolean and span.state). I can't figure out any way to get to the span classes other than via the context menu.
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Not all span classes appear

Post by LTinker68 »

mel_w wrote:... but my span classes don't appear in the Styles pane--just the span style, and what looks like two default span classes (span.boolean and span.state). I can't figure out any way to get to the span classes other than via the context menu.
The Styles pane will show the styles that are present in the medium associated with the primary target. For example, if your primary target is an online output and you added the span tags only to the print medium then you won't see them in the Styles pane until you switch the primary target to a print output. On the other hand, if that's the case, you probably didn't mean to create the span classes just in the print medium. The way to correct that is to open the stylesheet file and move the styles from the @media print section of the stylesheet to the default media section of the stylesheet (which doesn't have a label; anywhere that's not inside a @media block is the default medium).
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
mel_w
Propeller Head
Posts: 33
Joined: Wed Oct 19, 2011 2:05 pm

Re: Not all span classes appear

Post by mel_w »

Thanks for that--the classes were set up in the default medium, so we're all good there. It's a bit of a mystery why they don't appear by default in the Styles pane. However, a coworker discovered a workaround: right-click the text to which you want to apply a span class, select any span class from the context menu, and then...and only then!...all the span classes appear in the Styles pane.
i-tietz
Propellus Maximus
Posts: 1219
Joined: Wed Oct 24, 2007 4:13 am
Location: Fürth, Germany

Re: Not all span classes appear

Post by i-tietz »

mel_w wrote:and what looks like two default span classes (span.boolean and span.state)
You can get rid of those:
Open the stylesheet in a text editor (right-click, open with) and add

span.boolean,
span.state
{ mc-disabled: true; }
Inge____________________________
"I need input! - Have you got input?"
Post Reply