ref: 434bc695739e9c679bfc09c0f9637930146ee35c
parent: 51987eaf39e1a49f36d4d5256ef311d69edb6578
author: Werner Lemberg <[email protected]>
date: Sat Nov 29 18:12:55 EST 2014
* src/tools/docmaker/tohtml.py: Improve CSS for vertical spacing.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,12 @@
2014-11-29 Werner Lemberg <[email protected]>
- [docmaker] Improve HTML code for table of contents..
+ * src/tools/docmaker/tohtml.py: Improve CSS for vertical spacing.
- * src/toold/docmaker/tohtml.py: Introduce a new table class `toc',
+2014-11-29 Werner Lemberg <[email protected]>
+
+ [docmaker] Improve HTML code for table of contents.
+
+ * src/tools/docmaker/tohtml.py: Introduce a new table class `toc',
together with proper CSS.
2014-11-29 Werner Lemberg <[email protected]>
--- a/src/tools/docmaker/tohtml.py
+++ b/src/tools/docmaker/tohtml.py
@@ -83,10 +83,11 @@
text-align: right;
width: 30%;
vertical-align: baseline;
- padding: 0 1em 0 0; }
+ padding: 1ex 1em 1ex 0; }
table.fields td.desc { vertical-align: baseline;
- padding: 0 0 0 1em; }
- table.fields td.desc p { margin: 1.5ex 0 1.5ex 0; }
+ padding: 1ex 0 1ex 1em; }
+ table.fields td.desc p:first-child { margin: 0; }
+ table.fields td.desc p { margin: 1.5ex 0 0 0; }
table.index { margin: 6ex auto 6ex auto;
border: 0;
border-collapse: separate;
@@ -115,11 +116,13 @@
table.toc td.link { width: 30%;
text-align: right;
vertical-align: baseline;
- padding: 0 1em 0 0; }
+ padding: 1ex 1em 1ex 0; }
table.toc td.desc { vertical-align: baseline;
- padding: 0 0 0 1em;
+ padding: 1ex 0 1ex 1em;
text-align: left; }
- table.toc td.desc p { margin: 1.5ex 0 1.5ex 0;
+ table.toc td.desc p:first-child { margin: 0;
+ text-align: left; }
+ table.toc td.desc p { margin: 1.5ex 0 0 0;
text-align: left; }
</style>