aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-03-09 21:53:21 +0000
committerDavid Robillard <d@drobilla.net>2011-03-09 21:53:21 +0000
commit7c7e2d5a401fd6a14006c61961350d19be8cad81 (patch)
tree6613d2da18b2b14f6c0abd1e3d4c4e9baa530414
parent4c7ffdc602622e9c019abdc86e9c6c36ea1f4a76 (diff)
downloadlv2-7c7e2d5a401fd6a14006c61961350d19be8cad81.tar.xz
Tweak documentation style.
-rw-r--r--doc/style.css32
-rwxr-xr-xlv2specgen/lv2specgen.py6
2 files changed, 25 insertions, 13 deletions
diff --git a/doc/style.css b/doc/style.css
index 825671a..f4f304f 100644
--- a/doc/style.css
+++ b/doc/style.css
@@ -1,4 +1,5 @@
html, body {
+ font-size: 100%;
background-color: #fff;
color: #000;
margin: 0;
@@ -52,18 +53,18 @@ h4 {
padding: 0;
}
#logoheader {
- background-color: #f7f7f7;
+ background-color: #F3F3F3;
border: 0;
- border-bottom: 1px solid #999;
+ border-bottom: 1px solid #DDD;
height: 84px;
margin: 0;
padding: 1px;
z-index: 1;
}
#titleheader {
- background-color: #f7f7f7;
+ background-color: #F3F3F3;
border: 0;
- border-bottom: 1px solid #999;
+ border-bottom: 1px solid #DDD;
margin: 0;
padding: 1ex;
}
@@ -370,10 +371,10 @@ a:active {
color: #C00;
}
.sec {
- background-color: #f7f7f7;
- border-bottom: 1px solid #CCC;
+ background-color: #FBFBFB;
+ border-top: 1px solid #EEE;
color: #000;
- margin: 1em 0 .5em;
+ margin: 1em 1ex .5em 1ex;
padding: 1ex;
}
ul, ol {
@@ -396,7 +397,7 @@ ul, ol {
padding: 0 0 0 1ex;
}
.description {
- margin-bottom: 2ex;
+ margin-bottom: 0.75em;
}
.blankdesc {
background-color: #eee;
@@ -408,9 +409,18 @@ ul, ol {
}
.specterm {
background-color: #fbfbfb;
- border: 1px solid #ddd;
- margin-top: 1ex;
- padding: 1ex;
+ border: 0;
+ border-top: 1px solid #ddd;
+ margin: 0;
+ padding: 0;
+ margin-bottom: 1em;
+}
+.specterm h3 {
+ background-color: #F3F3F3;
+ padding: 0.5ex;
+}
+.spectermbody {
+ padding: 0 1ex 1ex 1ex;
}
dl {
margin: 0;
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py
index b872385..1ab6515 100755
--- a/lv2specgen/lv2specgen.py
+++ b/lv2specgen/lv2specgen.py
@@ -422,7 +422,8 @@ def docTerms(category, list, m):
label = getLabel(m, term)
comment = getComment(m, term)
-
+
+ doc += '<div class="spectermbody">'
if label!='' or comment != '':
doc += '<div class="description">'
@@ -449,7 +450,8 @@ def docTerms(category, list, m):
if (len(terminfo)>0): #to prevent empty list (bug #882)
doc += '\n<dl class="terminfo">%s</dl>\n' % terminfo
- doc += "\n\n</div>\n\n"
+ doc += '</div>'
+ doc += "\n</div>\n\n"
return doc