How to change the css style of "newtiddler" macro in mainmenu?

5 views
Skip to first unread message

Ted

unread,
Jan 8, 2008, 5:17:56 AM1/8/08
to TiddlyWiki
dear all,
i am going to move the sidebar options to the mainmenu, and i add
"<<newTiddler>>" in [[mainmenu]]. however, it looks different from
others.
is it possible to change the style (i know "label" can be used to
change the text displayes)?
thank you in advance.
ted

Ted

unread,
Jan 8, 2008, 12:29:07 PM1/8/08
to TiddlyWiki
Anyone help?

I added a <<newTiddler>> in [[mainmenu]]. but the appearance of "new
tiddler" is different from other items in mainmenu. it seems that the
"#mainmenu a" doesn't work on the "new tiddler".

could someone help out? thank you very much!

ted

Eric Shulman

unread,
Jan 8, 2008, 12:39:46 PM1/8/08
to TiddlyWiki
> I added a <<newTiddler>> in [[mainmenu]]. but the appearance of "new
> tiddler" is different from other items in mainmenu. it seems that the
> "#mainmenu a" doesn't work on the "new tiddler".

try "#mainMenu .button"

(also, note that CSS id's are case sensitive... #mainmenu and
#mainMenu are NOT the same)

HTH,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

Ted

unread,
Jan 8, 2008, 12:59:01 PM1/8/08
to TiddlyWiki
thanks Eric. another question: i know newTiddler has lable param,
seems that closeAll not.
how can i change the label on a button of closeAll?

Eric Shulman

unread,
Jan 8, 2008, 1:14:35 PM1/8/08
to TiddlyWiki


On Jan 8, 9:59 am, Ted <keyongj...@gmail.com> wrote:
> thanks Eric. another question: i know newTiddler has lable param,
> seems that closeAll not.
> how can i change the label on a button of closeAll?

Put the following line of javascript into a tiddler (e.g.,
[[ConfigTweaks]])

config.macros.closeAll.label="your text goes here";

Tag that tiddler with 'systemConfig' (i.e., making it plugin) and then
save-and-reload.

That's it.

enjoy,
-e

Ted

unread,
Jan 8, 2008, 9:56:37 PM1/8/08
to TiddlyWiki
thank you very much. it works!
rgds,
ted

Ted

unread,
Jan 8, 2008, 9:57:13 PM1/8/08
to TiddlyWiki
thank you very much. it works!
rgds,
ted

Reply all
Reply to author
Forward
0 new messages