On 21 May 2011 01:13, Lionel Orry <[email protected]> wrote:
> Okay,
>
> so here is a new shot.
>
> - The 'toc-toggle' attribute is needed to generate corresponding stuff.
> Without it (by default), the document is kept as before (apart from a few
> javascript functions which are never evaluated anyway).
> - The "Hide TOC" is no longer a button, but a simple cross ('X'). When
> hovering it, a translated version of "(Hide the table of contents)" is
> appended to the X.
> - The "Show TOC" button is translated as well
> - Overall cleanup in JS code, more generally I try to apply class names
> dynamically only, and the CSS takes care of modifying the display according
> to this new class "toc_hidden".
>
> I only did the translation for French but that's not hard to update for
> people maintaining the translations: 2 new fields "toc-showtext" and
> "toc-hidetext"
>
>
> 2 samples:
>
> toc2 + flask theme:
>   asciidoc -a data-uri -a toc-toggle -a toc2 -a theme=flask -o
> article_toc2.html article.txt
>
> toc + default theme:
>   asciidoc -a data-uri -a toc-toggle -a toc -o article_toc.html article.txt
>
> Again, thanks for reviewing and telling me your suggestions.
>
> I had one: replace the 'X' by the good-looking unicode character "Ballot X"
> (#x2717): ✗
> but I think it is less portable and is not displayed properly everywhere.
>
> Regards,
> Lionel
>

Hi Lionel,

I notice that you have modified each css individually.  Can the
changes be put in a separate css file loaded after the theme so it can
be applied to all themes without having to edit them each
individually, a potential maintenance nightmare.

Cheers
Lex

> --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" 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/asciidoc?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" 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/asciidoc?hl=en.

Reply via email to