[Telepathy-commits] [telepathy-spec/master] Fix alignment issues for permalinks
Davyd Madeley
davyd at madeley.id.au
Mon Mar 23 12:29:27 PDT 2009
The floating header might need overloading for print CSS, but really no
one should be printing the spec anyway.
---
doc/spec/style.css | 15 ++++++++++-----
doc/templates/errors.html | 6 ++++--
doc/templates/generic-types.html | 6 ++++--
doc/templates/interface.html | 24 ++++++++++++++++--------
4 files changed, 34 insertions(+), 17 deletions(-)
diff --git a/doc/spec/style.css b/doc/spec/style.css
index 6fb6427..0d207c8 100644
--- a/doc/spec/style.css
+++ b/doc/spec/style.css
@@ -41,6 +41,11 @@ div.main {
margin-bottom: 1ex;
}
+div.main a[name] {
+ position: relative;
+ top: -4.5em;
+}
+
div.outset {
padding: 1ex;
margin-top: 1ex;
@@ -58,7 +63,7 @@ div.indent {
margin-left: 1em;
}
-#methods {
+div.methods {
background-color: #fcaf3e;
}
@@ -66,7 +71,7 @@ div.method {
border: 1px solid #f57900;
}
-#signals {
+div.signals {
background-color: #729fcf;
}
@@ -74,7 +79,7 @@ div.signal {
border: 1px solid #3465a4;
}
-#properties {
+div.properties {
background-color: #ad7fa8;
}
@@ -82,7 +87,7 @@ div.property {
border: 1px solid #75507b;
}
-#types {
+div.types {
background-color: #e9b96e;
}
@@ -90,7 +95,7 @@ div.type {
border: 1px solid #c17d11;
}
-#errors {
+div.errors {
background-color: #ef2929;
}
diff --git a/doc/templates/errors.html b/doc/templates/errors.html
index 20f53bb..4acf1c9 100644
--- a/doc/templates/errors.html
+++ b/doc/templates/errors.html
@@ -12,10 +12,12 @@
<a href="#errors">Errors</a>
</div>
<div class="main">
- <div id="errors" class="outset error">
+ <div class="outset errors error">
+ <a name="errors"></a>
<h1>Errors</h1>
#for $error in $spec.errors.values()
- <div id="$error.name" class="inset error">
+ <div class="inset error">
+ <a name="$error.name"></a>
<span class="permalink">(<a href="$error.get_url()">Permalink</a>)</span>
<h2>
$error.short_name
diff --git a/doc/templates/generic-types.html b/doc/templates/generic-types.html
index 261faa1..476b8ab 100644
--- a/doc/templates/generic-types.html
+++ b/doc/templates/generic-types.html
@@ -12,10 +12,12 @@
<a href="#types">Types</a>
</div>
<div class="main">
- <div id="types" class="outset type">
+ <div class="outset types type">
+ <a name="types"></a>
<h1>Generic Types</h1>
#for $type in $spec.generic_types
- <div id="$type.name" class="inset type">
+ <div class="inset type">
+ <a name="$type.name"></a>
<span class="permalink">$type.get_type_name() (<a href="$type.get_url()">Permalink</a>)</span>
<h2>
$type.short_name — $type.dbus_type
diff --git a/doc/templates/interface.html b/doc/templates/interface.html
index f4f1d18..ba3892f 100644
--- a/doc/templates/interface.html
+++ b/doc/templates/interface.html
@@ -27,10 +27,12 @@
$interface.get_docstring()
#if $interface.methods
- <div id="methods" class="outset method">
+ <div class="outset methods method">
+ <a name="methods"></a>
<h1>Methods</h1>
#for $method in $interface.methods
- <div id="$method.name" class="inset method">
+ <div class="inset method">
+ <a name="$method.name"></a>
<span class="permalink">(<a href="$method.get_url()">Permalink</a>)</span>
<h2>$method.short_name ($method.get_in_args()) → $method.get_out_args()</h2>
@@ -92,10 +94,12 @@
#end if
#if $interface.signals
- <div id="signals" class="outset signal">
+ <div class="outset signals signal">
+ <a name="signals"></a>
<h1>Signals</h1>
#for $signal in $interface.signals
- <div id="$signal.name" class="inset signal">
+ <div class="inset signal">
+ <a name="$signal.name"></a>
<span class="permalink">(<a href="$signal.get_url()">Permalink</a>)</span>
<h2>$signal.short_name ($signal.get_args())</h2>
@@ -126,13 +130,15 @@
#end if
#if $interface.properties
- <div id="properties" class="outset property">
+ <div class="outset properties property">
+ <a name="properties"></a>
<h1>Properties</h1>
<div>
Accessed using the org.freedesktop.DBus.Properties interface.
</div>
#for $property in $interface.properties
- <div id="$property.name" class="inset property">
+ <div class="inset property">
+ <a name="$property.name"></a>
<span class="permalink">(<a href="$property.get_url()">Permalink</a>)</span>
<h2>
$property.short_name — $property.dbus_type
@@ -149,10 +155,12 @@
#end if
#if $interface.types
- <div id="types" class="outset type">
+ <div class="outset types type">
+ <a name="types"></a>
<h1>Types</h1>
#for $type in $interface.types
- <div id="$type.name" class="inset type">
+ <div class="inset type">
+ <a name="$type.name"></a>
<span class="permalink">$type.get_type_name() (<a href="$type.get_url()">Permalink</a>)</span>
<h2>
$type.short_name — $type.dbus_type
--
1.5.6.5
More information about the telepathy-commits
mailing list