I've been using Flare for a bit more than three years and am generally pretty good at defining CSS styles and otherwise working with CSS. So I don't have a "problem" as such. But I am doing a bit of thinking (uh oh) about CSS "strategy".
Today I have several projects that have both print (PDF, Word) and online help (WebHelp, HTML5 Help) Targets. Although I've generated other Targets (ePub, Air, et al.) "for fun", I may at some point need to generate them as production-quality outputs.
So I''m hoping to learn from others' experience how best to organize a "complex" Flare project's CSS file or files.
My current approach is to use a single CSS file for a given project, organized as follows:
- The stylesheet's default units are for print mediums or targets, and so are specified in points (pts) and inches (in).
- The stylesheet's default section also includes shared specifications that don't use measurement units such as heading color, font-family, float / clear classes, and so on.
- A @media non-print section specifies units in ems.
- Implement changes to a specific category (shared, print, non-print) without having to deal with all the other unrelated stuff contained in a single large stylesheet.
- More easily create — and manage — a separate set of measurement-specific style definitions for other Target types (ePub, et al.) in future projects.
- Does splitting stylesheets into specialized categories make it clumsier to, say, author topics or preview them in Flare's XML Editor?
- Does this strategy in fact make it more difficult rather than less difficult to manage a project's CSS files or troubleshoot CSS problems?
- What other issues or considerations should one incorporate into a "CSS Strategy"?
- And so on…
Cheers & thanks in advance for your help,
Riley
SFO