Missing styles when Creating new stylesheet from existing
Missing styles when Creating new stylesheet from existing
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".
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
Hi Dennisx! Welcome to the forums.
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
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)..."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".
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

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: Missing styles when Creating new stylesheet from existin
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.
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
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...
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

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!
-
paintedturtle
- Propeller Head
- Posts: 88
- Joined: Wed May 25, 2016 3:35 pm
Re: Missing styles when Creating new stylesheet from existin
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.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.
~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
I'm curious...
How do the stylesheets look if you open them in a text editor?
How do the stylesheets look if you open them in a text editor?
Steve
Life's too short for bad coffee, bad chocolate, and bad red wine.
Re: Missing styles when Creating new stylesheet from existin
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;
}
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
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.
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
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
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
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
Ah. Just out of curiosity, I did just that. The validator doesn't like
It does like
Code: Select all
font : Intel Clear;Code: Select all
font : 'Intel Clear';Jack DeLand
MadSkills Consultant and Trainer
Adam Charles Consulting, LLC
Ann Arbor, Michigan
http://www.adamcharlesconsulting.com
MadSkills Consultant and Trainer
Adam Charles Consulting, LLC
Ann Arbor, Michigan
http://www.adamcharlesconsulting.com