[fpc-devel] [patch] fpdoc.css now has "definition list" formatting
Michael Van Canneyt
michael at freepascal.org
Wed Apr 29 12:40:48 CEST 2009
On Wed, 29 Apr 2009, Graeme Geldenhuys wrote:
> Hi,
>
> I wrote some CSS formatting for "definition list" tags for the fpdoc
> HTML output. This makes the <dl>, <dt> and <dd> tags look much better.
> Below is a before and after example.
>
> http://www.freepascal.org/docs-html/rtl/sysutils/formatfloat.html
> vs
> http://lazarus-ccr.sourceforge.net/docs/rtl/sysutils/formatfloat.html
>
>
> Here is another example:
> http://lazarus-ccr.sourceforge.net/docs/rtl/sysutils/formatchars.html
>
>
> Could somebody please add the following CSS code to the end of the
> fpdoc.css file (that's if you prefer the new formatted definition
> lists).
I'll adapt the file.
> Also if this change is accepted, is there a program (maybe
> fpdoc itself) that generates the fpdoc.css file that needs patching as
> well. I don't mind doing the patching, I just need to know what
> program generates the default fpdoc.css file - if any.
The fpdoc.css file is hand-generated. I doubt you can patch me,
I'm beyond repair ;)
Michael.
>
> ============================
> /* definition list */
> dl {
> border: 3px double #ccc;
> padding: 0.5em;
> }
>
> /* definition list: term */
> dt {
> float: left;
> clear: left;
> width: auto; /* normally browsers default width of largest item */
> padding-right: 20px;
> font-weight: bold;
> color: darkgreen;
> }
>
> /* definition list: description */
> dd {
> margin: 0 0 0 110px;
> padding: 0 0 0.5em 0;
> }
>
> ============================
>
>
> Regards,
> - Graeme -
>
>
> _______________________________________________
> fpGUI - a cross-platform Free Pascal GUI toolkit
> http://opensoft.homeip.net/fpgui/
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>
More information about the fpc-devel
mailing list