Commit graph

8 commits

Author SHA1 Message Date
Bradley M. Kuhn
476a42bf0d In-page anchor links vs. bootstrap's fixed navbar
@keynote2k was the first to point out that the in-page anchor links in
the Guide failed to function properly, due to Bootstrap's fixed navbar.

This mixed solution of CSS and Javascript is the best solution I've been
able to come up with for the problem.  The CSS solution is obviously
preferable, and is used herein for those anchor id attributes in the
Guide that have no href of their own.

Due to problems with using a pure CSS solution where the anchor includes
both an href and a id attribute.  The Javascript solution is specific
for those cases.  I took care not to have them both happen at once, as
they would undoubtedly conflict.

I did a inordinate amount of research about this issue.  Bootstrap's own
page about the fixed navbar:
   http://getbootstrap.com/examples/navbar-fixed-top/

doesn't discuss this issue at all, but there is a bug in Booststrap's
 bugtracker:
     https://github.com/twitter/bootstrap/issues/1768

which discusses the issue.  (However, I don't understand why that bug is
closed, since none of the solutions I implement herein truly solve it).

The most useful page I found regarding this issue is this one:
  http://nicolasgallagher.com/jump-links-and-viewport-positioning/demo

which offers several pure CCS solutions (each with drawbacks and
advantages).  Unfortunately, none of those solutions consider the
question of anchor links that have both href and id attributes, and none
of them work properly in that situation.
2014-11-16 10:23:08 -05:00
Bradley M. Kuhn
5a71e2bdc4 Quoted text seemed to prominent.
In the HTML rendered versions of the guide, the quoted text, using the
previous CSS herein include, seemed to prominent.

Hopefully, this change will resolve that issue.
2014-11-13 13:25:22 -05:00
Bradley M. Kuhn
d3b6d1cda7 Improve CSS for code listing and quotation. 2014-11-09 16:42:17 -05:00
Bradley M. Kuhn
aae402b322 Add CSS for lstlisting and quotations from tex4ht
I based these primarily on blockquote and code formatting from Boostrap.
2014-11-09 16:11:24 -05:00
Bradley M. Kuhn
20bae66371 Correct to not have body > 2014-11-06 15:14:57 -05:00
Bradley M. Kuhn
6037a3726d Additional CSS to beautify the Guide.
HT jgay who pasted this to me on IRC.
2014-11-06 14:51:08 -05:00
Bradley M. Kuhn
913551b960 Add css for guide and include it from webhacks. 2014-11-06 14:49:23 -05:00
Bradley M. Kuhn
441df63ee7 Hack tex4ht's overlib stuff to use jQuery tooltip
tex4ht supports "overlib" for footnote popups.  The hack is pretty
straightforward; it dumps a Javascript area into a .js file that can
then be used by overlib to popup stuff.

This hack is to use that output to make the same thing work with jQuery
UI's tooltip widget.

Note that we run with overlib support first, then *without* it in the
Makefile setup.  This is to force the needed .js file to be generated,
but make sure the HTML doesn't try to load overlib (which is default).

(This should be adapted as a patch to upstream tex4ht ultimately.)

Also included herein are improvements to the Makefile to build the HTML
output.
2014-11-06 12:34:18 -05:00