Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-04

[patch] fpdoc.css now has "definition list" formatting

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

See attached patch.

* now contains formatting for "definition list" tags
* correctly handles long definition terms
* correctly wraps definition text

Changes will be seen in a page like:
http://lazarus-ccr.sourceforge.net/docs/rtl/sysutils/formatchars.html

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fpdoc.css.patch
Type: text/x-patch
Size: 562 bytes
Desc: not available
Url : http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20090428/f5a24a99/attachment.bin

Reply by email

Marco van de Voort
to Vincent Snijders
Vincent Snijders wrote 12 lines
> See attached patch. > > * now contains formatting for "definition list" tags > * correctly handles long definition terms > * correctly wraps definition text > > Changes will be seen in a page like: > http://lazarus-ccr.sourceforge.net/docs/rtl/sysutils/formatchars.html > > Thanks, applied. Let see if the formatchars docs get pretty tomorrow.

Is the left colum supposed to be right adjusted ? I'd prefer normal table style and left adjustment.

Reply by email

Graeme Geldenhuys
to Marco van de Voort
Marco van de Voort wrote 5 lines
> > Thanks, applied. Let see if the formatchars docs get pretty tomorrow. Is the left colum supposed to be right adjusted ? I'd prefer normal table style and left adjustment.

No it shouldn't be. :-(
Maybe I got the patch wrong. Initially I was going to right align the left column, but that caused problems with large (very wide) definition text (<dt> tag), so I adjusted the CSS code to use "auto" width. And with the latter option, text is always left aligned.

Sorry Vincent - if I got the patch wrong. Here is what the definition list CSS code should look like:

============================
/* 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;

}

============================

Viewing the following URL, I did screw up the patch and sent my initial attempt. :-(
http://lazarus-ccr.sourceforge.net/docs/rtl/fpdoc.css

Vincent, could you update the fpdoc.css with the code shown above. Thanks.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email