bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to skip default css format lines in html output


From: Patrice Dumas
Subject: Re: how to skip default css format lines in html output
Date: Fri, 7 May 2021 11:26:53 +0200

On Sat, May 01, 2021 at 07:07:28PM -0700, Per Bothner wrote:
> It seems wrong to include inline css in generated html files,
> especially when using the --ccs-ref or -C INFO_JS_DIR options.
> The documentation is complicated. The advice to use !important
> to override the default style rules feels quite wrong-headed.
> 
> However, looking at  _default_format_css_lines in HTML.pm
> I don't see a clean/clear way to skip the default rules.

One possibility is to use -c 'CSS_LINES=....' to replace completly the
output related to css.  Then --css-ref and --css-include output is
replaced in that case so those options will not have an effect.

> NO_CSS has other effects.

Indeed, in addition to removing the CSS lines, it removes class
definitions (and probably only some classes, not all).  Maybe the best
would be to remove NO_CSS completly and document that -c 'CSS_LINES='
can be used to remove/redefine CSS completly?  Currently the
documentation on NO_CSS/CSS_LINES is very short.


The current implementation in makeinfo is complicated, but I can't see
another way to achieve the possibility to add to makeinfo CSS rules in
other way.  Suggestions welcomed, but they should preserve the level of
customizability.

-- 
Pat



reply via email to

[Prev in Thread] Current Thread [Next in Thread]