Hi!

I have a plugin which defines several macros. Each macro has its own
styles. However, since there are many macros, I'm exploring the
posibility of modularity, so that the user can only import the ones he
needs, thereby reducing the wiki size and load time. At the moment, I
have all the styles defined in one place, like this:

config.shadowTiddlers["InfoboxTablesStylesheet"]="/*{{{*/\n"+
".InfoboxTable{border-collapse: separate; border: none 0px; border-
spacing: 0px; border-radius: 10px; -moz-border-radius: 10px; -webkit-
border-radius: 10px; width: 300px; font-size: 10px; font-weight: bold;
background: [[InfoboxTablesColorPalette::InfoboxTableBackground]];}
\n"+
".InfoboxTableTop{border: none 0px; border-radius: 10px 10px 0px 0px; -
moz-border-radius: 10px 10px 0px 0px; -webkit-border-radius: 10px 10px
0px 0px; text-align: center; font-size: 16px;}\n"+
".InfoboxTableBottom{border: none 0px; border-radius: 0px 0px 10px
10px; -moz-border-radius: 0px 0px 10px 10px; -webkit-border-radius:
0px 0px 10px 10px; text-align: center;}\n"+
".InfoboxCellLeft, .InfoboxCellRight, .InfoboxCellEqual{font-weight:
normal;}\n"+
".InfoboxCellLeft{width: 34%;}\n"+
".InfoboxCellRight{width: 66%;}\n"+
".InfoboxCellEqual{width: 50%;}\n"+
".InfoboxSeriesTitle{background:
[[InfoboxTablesColorPalette::InfoboxSeriesTitle]];}\n"+
".InfoboxSeriesSubtitle{background:
[[InfoboxTablesColorPalette::InfoboxSeriesSubtitle]];}\n"+
".InfoboxStoryTitle{background:
[[InfoboxTablesColorPalette::InfoboxSeriesTitle]];}\n"+
".InfoboxStorySubtitle{background:
[[InfoboxTablesColorPalette::InfoboxSeriesSubtitle]];}\n"+
".InfoboxSystemTitle{background:
[[InfoboxTablesColorPalette::InfoboxSystemTitle]];}\n"+
".InfoboxSystemSubtitle{background:
[[InfoboxTablesColorPalette::InfoboxSystemSubtitle]];}\n"+
"/*}}}*/";
store.addNotification("InfoboxTablesStylesheet",refreshStyles);

The use of shadow tiddlers enables the user to change the styles and
colors. However, if I want to make the plugin modular, I need to move
the macro specific styles to the coresponding macro. So in the above
example, the bottom six styles are macro specific (series, story,
system).

Is there a way to move each style to the coresponding macro yet have
it added to the same shadow tiddler (InfoboxTablesStylesheet)?

w

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to