On Jul 30, 8:01 am, Paulo Soares <[email protected]> wrote:
> I don't see how the plugin can handle this. The stylesheet used in the
> slide show replaces existing rules that are restored on exit. However,
> you are bypassing this mechanism adding CSS rules directly with
> jQuery.

If the "existing rules" (in StyleSheet) set:

   body {background-image: none}

shouldn't that be restored when I exit the slide show? Currently it's
not restored.
It seems more like the changes in the SlideShowStyleSheet are removed
rather than
the prior rules being restored if you see what I mean.

In the style sheet being used for the slide show is:

  body {
  background-image: url('[[LeftGradientImageBlue]]');
  background-repeat: repeat-y;
  color: #000;
}

when the slide show exits, the background-image and background-repeat
are the same
as listed in the stylesheet, so shouldn't they be reverted when the
slide show style
sheet is reverted? Does adding it via jQuery place it in some
different namespace or
something so that it's not reverted?

Sigh it would be nice if you could set a mark on the css stack
presetving all the settings
and just have it wipe all the css and restore the setting saved at the
mark.

I thought that was was setStlyesheet did: wiped existing styles and
applied the new style but apparently not.

> The tip on using CSS classes instead of custom rules looks quite
> reasonable and should be easier to revert.

Except I would have dozens of classes right? One class for each
background-image that I use
for a slide.

Even using that still leaves the problem of automatically removing the
classes when the slide show ends.

-- rouilj

-- 
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