[yelp-xsl] mal2html-media: TTML on audio, fix media-controls bugs
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] mal2html-media: TTML on audio, fix media-controls bugs
- Date: Sun, 4 Nov 2012 20:55:50 +0000 (UTC)
commit 576baf687f3ddc5a9a32ce45e8099a40f6b87e44
Author: Shaun McCance <shaunm gnome org>
Date: Sun Nov 4 15:55:30 2012 -0500
mal2html-media: TTML on audio, fix media-controls bugs
xslt/common/html.xsl | 8 +++-----
xslt/mallard/html/mal2html-media.xsl | 3 +++
2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/xslt/common/html.xsl b/xslt/common/html.xsl
index 32f9745..3407a91 100644
--- a/xslt/common/html.xsl
+++ b/xslt/common/html.xsl
@@ -1239,12 +1239,10 @@ pre span.prompt {
span.sys { font-family: monospace; }
span.var { font-style: italic; }
-.ui-tile .media-controls { display: none; }
+.ui-tile-img .media-controls { display: none; }
span.media { display: inline-block; }
-video { display: block; }
-div.media-audio > div.inner > div.media-controls { display: inline-block; }
-div.media-video > div.inner { display: inline-block; text-align: center; }
-div.media-video > div.inner video { margin: 0; }
+audio, video { display: block; margin: 0; }
+div.media > div.inner { display: inline-block; text-align: center; }
div.media-controls {
min-width: 24em;
height: 24px;
diff --git a/xslt/mallard/html/mal2html-media.xsl b/xslt/mallard/html/mal2html-media.xsl
index 1e3e3b4..f952a18 100644
--- a/xslt/mallard/html/mal2html-media.xsl
+++ b/xslt/mallard/html/mal2html-media.xsl
@@ -156,6 +156,9 @@ FIXME
</xsl:otherwise>
</xsl:choose>
</audio>
+ <xsl:if test="not($inline)">
+ <xsl:apply-templates mode="mal2html.ttml.mode" select="tt:tt[1]"/>
+ </xsl:if>
</xsl:template>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]