Missing styles when Creating new stylesheet from existing

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
dennisx
Jr. Propeller Head
Posts: 3
Joined: Mon May 09, 2016 2:01 pm

Missing styles when Creating new stylesheet from existing

Post by dennisx »

Flare 12
I have noticed that when I created a new stylesheet from an existing stylesheet (existing in the project) for which I had created several new styles not all of the styles I created in the existing stylesheet were included in the new one. Some of the styles I created were in the new stylesheet.
Experimenting a bit I find that if I use the existing stylesheet to create a template first then create a new stylesheet from the template all of the styles appear to be in the new stylesheet. Does it matter how one creates new styles to ensure they can be passed to another CSS? Is this a known issue with creating stylesheets from existing stylesheets?

When creating the new stylesheet I am NOT using the ribbon. I have done it both from the toolbar "Project | add stylesheet" and from "Content | Add new".
Nita Beck
Senior Propellus Maximus
Posts: 3672
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Missing styles when Creating new stylesheet from existin

Post by Nita Beck »

Hi Dennisx! Welcome to the forums. :)
dennisx wrote:Flare 12
I have noticed that when I created a new stylesheet from an existing stylesheet (existing in the project) for which I had created several new styles not all of the styles I created in the existing stylesheet were included in the new one. Some of the styles I created were in the new stylesheet.
...
When creating the new stylesheet I am NOT using the ribbon. I have done it both from the toolbar "Project | add stylesheet" and from "Content | Add new".
Maybe it's me, but I'm not clear on just how you "created a new stylesheet from an existing stylesheet (existing in the project)..."

Whenever one uses the "Add <file type>" or "Add new" commands, the new file will always be based on a template, not on some other file of the same type that you have in the project. That is how Flare has been designed to work. Flare comes with a bunch of "factory templates", and, as you discovered, one can save something as a custom template for creating new files of the same type, based on the original file. So by saving your stylesheet as a template, you then made it available to use when creating new stylesheets.

But if all you are trying to do is make a copy of an existing stylesheet so that you can then modify the second one, just copy the first stylesheet and then immediately paste it into the same or a different folder within the Flare project. You can then rename the second stylesheet and edit it as you please.

HTH
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
dennisx
Jr. Propeller Head
Posts: 3
Joined: Mon May 09, 2016 2:01 pm

Re: Missing styles when Creating new stylesheet from existin

Post by dennisx »

Flare 12.05...
On the toolbar go to Project
under project select Add a Stylesheet
You are offered 2 choices:
"create from a Template"
"create from existing"
Select From existing
Navigate to the existing stylesheet of choice
Select
Change name of new file
Select "Add'
Tada you have created a new style sheet from an existing stylesheet - except it doesn't include all of the styles from the "exsiting" stylesheet.
Nita Beck
Senior Propellus Maximus
Posts: 3672
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Missing styles when Creating new stylesheet from existin

Post by Nita Beck »

Ah, you are my "learn something new every day" teacher, then! I have rarely (even perhaps never!) used the "create from existing" option. Given the behavior you're seeing, I would suspect something buggy and I would check in with tech support.

EDIT: In thinking about this some more, I have one other thought. Had you edited the original stylesheet by hand, rather than through Flare's Stylesheet Editor? If so, perhaps there's actually a coding flaw someplace, perhaps a missing semicolon at the end of a line or a missing closing } character. If you compare the code of the original stylesheet to the code of the second stylesheet, does it seem that the second one is truncated as of some point? If yes, that should point you to the location of the coding flaw in the original stylesheet. I dunno; it's a thought...
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
paintedturtle
Propeller Head
Posts: 88
Joined: Wed May 25, 2016 3:35 pm

Re: Missing styles when Creating new stylesheet from existin

Post by paintedturtle »

dennisx wrote:Flare 12.05...
Tada you have created a new style sheet from an existing stylesheet - except it doesn't include all of the styles from the "exsiting" stylesheet.
Interesting, because I feel like sometimes when I have copied and pasted stylesheets to create a new one within Flare, some of my settings have changed or new styles I've created have disappeared. Not clear enough behavior that I could document it but am curious to see what you find out.
~Sarah
Technical Writer using and experimenting with Flare version 12.0.5991.
SteveS
Senior Propellus Maximus
Posts: 2090
Joined: Tue Mar 07, 2006 5:06 pm
Location: Adelaide, far side of the world ( 34°56'0.78\"S 138°46'44.28\"E).
Contact:

Re: Missing styles when Creating new stylesheet from existin

Post by SteveS »

I'm curious...

How do the stylesheets look if you open them in a text editor?
Image
Steve
Life's too short for bad coffee, bad chocolate, and bad red wine.
dennisx
Jr. Propeller Head
Posts: 3
Joined: Mon May 09, 2016 2:01 pm

Re: Missing styles when Creating new stylesheet from existin

Post by dennisx »

Opening the file I wish to create a "new from existing" in notepad and looking for one of the styles which does not appear in the new stylesheet I find
p.note
{
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
padding: 14px 20px;
background-color: #fefadc;
border: solid 1px #ecede4;
color: #1c1d1a;
mc-auto-number-format: '{b}Note: {/b}';
font: Intel Clear;
text-align: left;
font-family: 'Intel Clear';
font-weight: 200;
}
I see nothing obviously wrong with this style.
another style that is omitted from the new stylesheet
p.Caption
{
orphans: 2;
widows: 2;
margin-bottom: 10pt;
font-family: Calibri;
font-style: italic;
color: #1F497D;
font-size: 9pt;
display: block;
text-align: left;
}
ChoccieMuffin
Senior Propellus Maximus
Posts: 2650
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Missing styles when Creating new stylesheet from existin

Post by ChoccieMuffin »

It could be something as tiny (and difficult to spot!) as a missing bracket, colon or semi-colon. I have found that if I open a stylesheet in Notepad++, the font looks a bit "funny" in styles following the error, and it's those styles that I'm missing in Flare.

So I suggest getting your microscope out and looking for a missing bracket, colon or semi-colon.
Started as a newbie with Flare 6.1, now using Flare 2024r2.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
jackdeland
Propeller Head
Posts: 71
Joined: Tue May 07, 2013 9:13 am
Location: Ann Arbor, Michigan
Contact:

Re: Missing styles when Creating new stylesheet from existin

Post by jackdeland »

Why not run that sucker through the CSS Validator at w3.org? https://jigsaw.w3.org/css-validator/
Jack DeLand
MadSkills Consultant and Trainer
Adam Charles Consulting, LLC
Ann Arbor, Michigan
http://www.adamcharlesconsulting.com
jackdeland
Propeller Head
Posts: 71
Joined: Tue May 07, 2013 9:13 am
Location: Ann Arbor, Michigan
Contact:

Re: Missing styles when Creating new stylesheet from existin

Post by jackdeland »

Ah. Just out of curiosity, I did just that. The validator doesn't like

Code: Select all

font : Intel Clear;
It does like

Code: Select all

font : 'Intel Clear';
Jack DeLand
MadSkills Consultant and Trainer
Adam Charles Consulting, LLC
Ann Arbor, Michigan
http://www.adamcharlesconsulting.com
Post Reply