Problem with custom theme in Firefox

46 views
Skip to first unread message

FrD

unread,
Oct 23, 2012, 11:08:28 AM10/23/12
to tiddl...@googlegroups.com
Hi,

I'm using a custom theme I built from mineral theme (http://mineral-tiddlywiki.appspot.com/).
In this theme I call at the end the tiddler [[StyleSheetShortcuts]] I downloaded from Tiddlytools (http://www.tiddlytools.com/) as it contains many usfeul css classes.

In Google Chrome everything is fine. I may use for instance the class "floatright" from inside a tiddler, and the css is working.
In Firefox it seems that [[StyleSheetShortcuts]] is not loaded at the end of my theme so a call to {{floatright{{ ... }} doesn't do anything.

I'm on xubuntu 12.04 with firefox 16.0.1 and Chrome 22.0.1229.94.

Any idea ?

Thanks

FrD

whatever

unread,
Oct 23, 2012, 11:46:53 AM10/23/12
to TiddlyWiki
Hi!

The correct syntax is {{floatright{ ... }}}

w

FrD

unread,
Oct 23, 2012, 11:59:34 AM10/23/12
to tiddl...@googlegroups.com
Hi,

You're right.
It's a typo.
I used the correct syntax in both firefox and chrome and some others from [[StyleSheetShortcuts]] and it only works in chrome.

FrD

FrD

unread,
Oct 23, 2012, 3:24:45 PM10/23/12
to tiddl...@googlegroups.com
Hi,

I have uploaded a test case :   http://dl.dropbox.com/u/9385804/MTC_Theme.html
Look at the "test" tiddler both in Chrome and Firefox.

My theme tiddler contains a hidden part at the end (beginning with "/%" and ending with "%/").
This part has many sections that are called from within the visible part.
When there is no hidden part it works well and [[StyleSheetShortcuts]] is loaded both in Firefox and Chrome.
When the hidden part is here, [[StyleSheetShortcuts]] isn't loaded in  Firefox but still is in Chrome !

FrD



On Tuesday, October 23, 2012 5:08:28 PM UTC+2, FrD wrote:
Hi,



Thanks

FrD

whatever

unread,
Oct 23, 2012, 3:33:03 PM10/23/12
to TiddlyWiki
Hi!

I'm not sure about the specifics, but I think the problem might be in
your calls. I think you need a core tweak for the shortcuts like
##StyleSheet to work.
Try adding FrDTheme in front of link to the stylesheet, as in
FrDTheme##StyleSheet. Do the same for the others.

w

FrD

unread,
Oct 24, 2012, 2:10:20 AM10/24/12
to tiddl...@googlegroups.com
Hi whatever,

As far as I know the core knows how to deal with tiddler sections. I use them in almost all of my TWs.

It seems that the call to the sections in Firefox in the case of stylesheets causes a problem in the subsequent calls to other tiddlers.

And anyway, it works in Chrome !


FrD

whatever

unread,
Oct 24, 2012, 4:46:32 AM10/24/12
to TiddlyWiki
Hi!

I put [[StyleSheetShortcuts]] right after the section title for the
StyleSheet (before /*{{{*/) and it worked.

w

FrD

unread,
Oct 24, 2012, 5:04:54 AM10/24/12
to tiddl...@googlegroups.com
Hi whatever,

Thanks a lot, it works indeed !

FrD

FrD

unread,
Oct 24, 2012, 8:20:24 AM10/24/12
to tiddl...@googlegroups.com
Finally I found my mistake.
A css directive for Firefox was ill-formed.
Once corrected everything' s OK, and the additional stylesheets can be called at the end of the theme, or at least of the visible part of it.
Chrome wasn't impacted since the webkit directive was OK.

FrD
Reply all
Reply to author
Forward
0 new messages