[library-web] [mallard] fix styling of mallard pages
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] [mallard] fix styling of mallard pages
- Date: Fri, 3 Dec 2010 10:14:00 +0000 (UTC)
commit 474f122537b4cabab06640877a5229c30599e6c6
Author: Frédéric Péters <fpeters 0d be>
Date: Fri Dec 3 11:10:07 2010 +0100
[mallard] fix styling of mallard pages
data/skin/mallard.css | 25 +++++++++++++++++++++++++
data/xslt/mal2html.xsl | 5 +++--
2 files changed, 28 insertions(+), 2 deletions(-)
---
diff --git a/data/skin/mallard.css b/data/skin/mallard.css
new file mode 100644
index 0000000..bef58a3
--- /dev/null
+++ b/data/skin/mallard.css
@@ -0,0 +1,25 @@
+/* cancellation of some CSS set by Mallard XSL */
+
+html, body {
+ max-width: none;
+ padding: 0;
+}
+
+div.head {
+ margin: 0;
+}
+
+div.body {
+ border: none;
+ max-width: 80em;
+}
+
+div, pre, p {
+ border: none;
+ margin: 0;
+}
+
+div.body div, div.body pre, div.body p {
+ margin: 1em 0 0;
+}
+
diff --git a/data/xslt/mal2html.xsl b/data/xslt/mal2html.xsl
index a8d3102..2034755 100644
--- a/data/xslt/mal2html.xsl
+++ b/data/xslt/mal2html.xsl
@@ -96,9 +96,10 @@ along with libgo; if not, write to the Free Software Foundation, Inc.,
<title>
<xsl:apply-templates mode="html.title.mode" select="$node"/>
</title>
- <xsl:call-template name="html.js"/>
- <xsl:call-template name="html.head.custom"/>
<xsl:call-template name="libgo.head"/>
+ <xsl:call-template name="html.head.custom"/>
+ <xsl:call-template name="html.css"/>
+ <link rel="stylesheet" type="text/css" href="/skin/mallard.css"/>
</head>
<body>
<xsl:apply-templates mode="html.body.attr.mode" select="$node"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]