Plugin Developer DiscussionDiscussion for FogBugz Plugin developers |
||
I've read the article "Implementing IPluginStaticCSS", and this seems relevant for including style sheets for plug-in pages, but still can't determine the best way to add a style-sheet containing classes that I want to reference in custom HTML I am injecting via the IPluginBugEventDisplay.BugEventDisplay.
An alternative is to just inline your CSS or use style tags...
<STYLE TYPE="text/css"> H1 { font-size: x-large; color: red } H2 { font-size: large; color: blue } </STYLE> Seems to me that the main advantage of having external (static) style sheet is if in fact you want to change your styles after you deploy the plugin. Otherwise embeded or inline CSS should work fine.
Styles send down in StaticCss should be usable on any page in FogBugz (not just plugin pages). If your CSS is not static, you can inline it as Martin said.
The main advantage to using StaticCss is that inline CSS has a big impact on page render speed, and static CSS files can be cached by the browser. |
Powered by FogBugz