Using MadCap.css and MadCap*.js files

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

Using MadCap.css and MadCap*.js files

Postby Mark Jacober on Wed Jun 18, 2008 9:32 am

I think I'm missing something here. How can I use the styles and js functions that ship with Flare in MadCap.css and the MadCap .js files if I'm importing a project from Frame?
Mark Jacober
Propeller Head
 
Posts: 20
Joined: Wed Oct 17, 2007 11:29 am

Re: Using MadCap.css and MadCap*.js files

Postby Ryan Cerniglia on Wed Jun 18, 2008 10:07 am

The MadCap.css and MadCap*.js files are used for WebHelp, WebHelp Plus, and to a lesser extent HTML Help and DotNetHelp output.

You don't need to worry about manually including them -they're available by default when you publish your project in those outputs
Ryan Cerniglia
 

Re: Using MadCap.css and MadCap*.js files

Postby Mark Jacober on Wed Jun 18, 2008 10:41 am

I'd like to be able to import a FrameMaker file and map FrameMaker styles to those in MadCap.css. I understand how Flare includes MadCap.css and the MadCap*.js files automatically if I'm creating topics in Flare, but not if I'm importing them from Frame. My goal would be to have the import and HTMLHelp generation pretty-much push-button.
Mark Jacober
Propeller Head
 
Posts: 20
Joined: Wed Oct 17, 2007 11:29 am

Re: Using MadCap.css and MadCap*.js files

Postby KevinDAmery on Wed Jun 18, 2008 11:10 am

The default css for Flare topics is actually styles.css not madcap.css. So you can do the mapping you're after, just do it into styles.css instead--or you can use any other css you prefer (for example, when I started using Flare here I just grabbed our corporate website css file as a starting point so I could conform with our corporate look without having to reinvent the wheel).
Until next time....
Image
Kevin Amery
Certified MAD for Flare
KevinDAmery
Propellus Maximus
 
Posts: 1985
Joined: Tue Jan 23, 2007 8:18 am
Location: Darn, I knew I was around here somewhere...

Re: Using MadCap.css and MadCap*.js files

Postby Dave Lee on Tue Jun 24, 2008 6:24 am

Mark Jacober wrote:I think I'm missing something here. How can I use the styles and js functions that ship with Flare in MadCap.css and the MadCap .js files if I'm importing a project from Frame?


I think the short answer is that you don't map styles to MadCap.css. You would map them to the stylesheet that you use for your topics (as mentioned, the default is styles.css).

MadCap.css is a stylesheet generated by Flare that includes styles that are specific to the output - you wouldn't use any of these styles in your topic content, and you can't link your topics to this stylesheet anyway as it only exists in the output.

I think it is just there to make the job of editing your main stylesheet a bit easier, by hiding/simplifying the styles that the Flare output uses behind the scenes. For example, to edit the formatting of your breadcrumbs, you just edit one style - breadcrumbsProxy (in styles.css). This is then used to generate styles used in the actual output, such as div.MCBreadcrumbsBox and span.MCBreadcrumbsPrefix.
Dave Lee
Master Propellus Maximus
 
Posts: 5872
Joined: Mon Mar 05, 2007 8:33 am
Location: UK


Return to Styles, Stylesheets and XML

Who is online

Users browsing this forum: No registered users and 7 guests