[yelp-xsl] html: Small style tweaks
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] html: Small style tweaks
- Date: Sat, 27 Oct 2012 17:53:10 +0000 (UTC)
commit c5ccadd7488876921bd5ccd42c6ce0b51bd52b90
Author: Shaun McCance <shaunm gnome org>
Date: Mon Oct 8 10:19:45 2012 -0400
html: Small style tweaks
xslt/common/html.xsl | 7 +++++++
xslt/dita/html/dita2html-topic.xsl | 3 ---
2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/xslt/common/html.xsl b/xslt/common/html.xsl
index 8080d93..a6e7161 100644
--- a/xslt/common/html.xsl
+++ b/xslt/common/html.xsl
@@ -746,6 +746,11 @@ thead td, thead th, tfoot td, tfoot th {
color: </xsl:text><xsl:value-of select="$color.text_light"/><xsl:text>;
background-color: </xsl:text><xsl:value-of select="$color.dark_background"/><xsl:text>;
}
+th {
+ text-align: </xsl:text><xsl:value-of select="$left"/><xsl:text>;
+ font-weight: bold;
+ color: </xsl:text><xsl:value-of select="$color.text_light"/><xsl:text>;
+}
ul, ol, dl { margin: 0; padding: 0; }
li {
@@ -761,6 +766,7 @@ dd {
margin: 0.2em 0 0 0;
margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1.44em;
}
+dd + dd { margin-top: 1em; }
ol.compact li { margin-top: 0.2em; }
ul.compact li { margin-top: 0.2em; }
ol.compact li:first-child { margin-top: 0; }
@@ -865,6 +871,7 @@ pre.contents {
padding: 0.5em 1em 0.5em 1em;
}
div.links .desc { color: </xsl:text><xsl:value-of select="$color.text_light"/><xsl:text>; }
+div.links > div.inner > div.region > div.desc { font-style: italic; }
div.links ul { margin: 0; padding: 0; }
div.links ul ul {
margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1em;
diff --git a/xslt/dita/html/dita2html-topic.xsl b/xslt/dita/html/dita2html-topic.xsl
index b16cb79..4681306 100644
--- a/xslt/dita/html/dita2html-topic.xsl
+++ b/xslt/dita/html/dita2html-topic.xsl
@@ -99,9 +99,6 @@ dt.dthd, dd.ddhd {
}
th, td { border: solid 1px; }
-<!-- FIXME: perhaps into html.xsl? -->
-div.links > div.inner > div.region > div.desc { font-style: italic; }
-th { text-align: left; }
</xsl:text>
</xsl:template>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]