diff options
author | David Robillard <d@drobilla.net> | 2011-03-10 03:52:10 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-03-10 03:52:10 +0000 |
commit | 4c606a36fbda4f8c649282f1c52d9a3bf80b3f56 (patch) | |
tree | 49e23587b4225ea09ee1ba2f511ad027dcd5b0be | |
parent | f37d1fcd28c9940b7f8d9bc40639d18f6ff87b5a (diff) | |
download | lv2-4c606a36fbda4f8c649282f1c52d9a3bf80b3f56.tar.xz |
Clean up style and terseify header.
-rw-r--r-- | doc/style.css | 39 | ||||
-rwxr-xr-x | lv2specgen/lv2specgen.py | 33 | ||||
-rw-r--r-- | lv2specgen/template.html | 4 |
3 files changed, 40 insertions, 36 deletions
diff --git a/doc/style.css b/doc/style.css index 06e8aed..9df3849 100644 --- a/doc/style.css +++ b/doc/style.css @@ -1,4 +1,5 @@ html, body { + font-family: sans-serif; font-size: 100%; background-color: #fff; color: #000; @@ -20,37 +21,32 @@ a:hover { img { border: 0; } -h1, h2, h3, h4, h5 { - font-weight: 400; +h1, h2, h3, h4, h5, h6 { line-height: 1em; } h1 { - color: #234764; - font-size: 160%; - margin: .7em 0 0; - text-decoration: none; -} -h1 a { - color: #234764; + font-size: 180%; + font-weight: 900; } h2 { - color: #366d9c; font-size: 140%; - font-weight: 700; - margin: 3ex 0 1ex; + font-weight: 650; } h3 { - color: #366d9c; font-size: 130%; - margin: 0 0 .75ex; - padding: 0; + font-weight: 600; } h4 { - color: #366d9c; font-size: 120%; - font-style: italic; - margin: 2ex 0 0; - padding: 0; + font-weight: 550; +} +h5 { + font-size: 110%; + font-weight: 500; +} +h6 { + font-size: 100%; + font-weight: 450; } #logoheader { background-color: #F3F3F3; @@ -69,7 +65,7 @@ h4 { padding: 1ex; } #title { - color: #366d9c; + /*color: #366d9c;*/ font-size: 200%; font-weight: 700; margin: .25ex 0 .5ex; @@ -417,6 +413,7 @@ ul, ol { .specterm h3 { background-color: #F3F3F3; padding: 0.5ex; + margin: 0; } .spectermbody { padding: 0 1ex 1ex 1ex; @@ -466,6 +463,8 @@ pre { } code { color: #373; + font-family: fixed,monospace; + font-weight: 500; } #menu li, #searchbox form, ul#iconbar li, #body-main .success p a { display: inline; diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py index 9c3ab3d..b2df07c 100755 --- a/lv2specgen/lv2specgen.py +++ b/lv2specgen/lv2specgen.py @@ -584,27 +584,32 @@ def specAuthors(m, subject): for j in m.find_statements(RDF.Statement(i.object, foaf.name, None)): dev.add(j.object.literal_value['string']) - dev_str = '' - for d in dev: - dev_str += '<div class="author" property="doap:developer">%s</div>' % d - maint = set() for i in m.find_statements(RDF.Statement(None, doap.maintainer, None)): for j in m.find_statements(RDF.Statement(i.object, foaf.name, None)): maint.add(j.object.literal_value['string']) - maint_str = '' - for m in maint: - maint_str += '<div class="author" property="doap:maintainer">%s</div>' % m - - ret = '' - if dev_str != '': - ret += '<tr><th class="metahead">Developer(s)</th><td>' + dev_str + '</td></tr>' - if maint_str != '': - ret += '<tr><th class="metahead">Maintainer(s)</th><td>' + maint_str + '</td></tr>' + doc = '' + first = True + for d in dev: + if not first: + doc += ', ' + doc += '<span class="author" property="doap:developer">%s</span>' % d + first = False - return ret + for m in maint: + if not first: + doc += ', ' + doc += '<span class="author" property="doap:maintainer">%s</span>' % m + first = False + n_authors = len(dev) + len(maint) + if n_authors == 0: + return '' + elif n_authors == 1: + return '<tr><th class="metahead">Author</th><td>' + doc + '</td></tr>' + else: + return '<tr><th class="metahead">Authors</th><td>' + doc + '</td></tr>' def specVersion(m, subject): """ diff --git a/lv2specgen/template.html b/lv2specgen/template.html index 096d1e2..1b3111e 100644 --- a/lv2specgen/template.html +++ b/lv2specgen/template.html @@ -23,8 +23,8 @@ <div class="meta"> <table> <tr><th class="metahead">URI</th><td><a href="@URI@">@URI@</a></td></tr> - <tr><th class="metahead">Revision</th><td>@REVISION@</td></tr> - <tr><th class="metahead">Namespaces</th><td>@PREFIXES@</td></tr> + <tr><th class="metahead">Version</th><td>@REVISION@</td></tr> + <tr><th class="metahead">Prefixes</th><td>@PREFIXES@</td></tr> @AUTHORS@ </table> </div> |