[Libreoffice-commits] help.git: source/default.css source/online_transform.xsl

Olivier Hallot ohallot at collabora.co.uk
Wed Nov 23 21:13:20 UTC 2016


 source/default.css          |    9 +++++----
 source/online_transform.xsl |   10 ++++++++--
 2 files changed, 13 insertions(+), 6 deletions(-)

New commits:
commit 6025b3e9288965cebf6d5ee7bff8bf4338d1391e
Author: Olivier Hallot <ohallot at collabora.co.uk>
Date:   Wed Nov 23 19:07:19 2016 -0200

    tdf#97745 (part) tweaks in CSS & XSLT
    
    Change-Id: I38370bc7d4a6e90d13aacd6bdf035f636a0c2535
    Reviewed-on: https://gerrit.libreoffice.org/31135
    Reviewed-by: Olivier Hallot <olivier.hallot at edx.srv.br>
    Tested-by: Olivier Hallot <olivier.hallot at edx.srv.br>

diff --git a/source/default.css b/source/default.css
index 99f738c..1076e58 100644
--- a/source/default.css
+++ b/source/default.css
@@ -161,10 +161,11 @@ left: 5px;
 border:solid 1px;
 }
 
-#centerdiv {
-position: fixed;
-top: 25%;
-left:25%;
+#mediadiv {
+}
+
+.mediabutton{
+background-color:cyan;
 }
 
 .tintro {
diff --git a/source/online_transform.xsl b/source/online_transform.xsl
index 14c3dea..3f629d7 100644
--- a/source/online_transform.xsl
+++ b/source/online_transform.xsl
@@ -843,13 +843,17 @@
   </xsl:variable>
   <xsl:choose>
         <xsl:when test="starts-with($type,'video')">
+          <div id="mediadiv">
             <video src="{$data}" type="{$type}" width="{$width}" height="{$height}" controls="'1'"></video>
+          </div>
         </xsl:when>
         <xsl:when test="starts-with($type,'audio')">
+          <div id="mediadiv">
             <audio src="{$data}" type="{$type}" controls="'1'"></audio>
+          </div>
         </xsl:when>
         <xsl:otherwise>
-           <object width="{$width}" height="{$height}" data="{$data}"></object>
+           <object width="{$width}" height="{$height}" data="{$data}" type="{$type}"></object>
         </xsl:otherwise>
   </xsl:choose>
 </xsl:template>
@@ -889,7 +893,9 @@
 		</xsl:when>
 
 		<xsl:when test="descendant::tablecell[1]/descendant::image">
-			<table border="0" class="icontable" cellpadding="5" cellspacing="0">
+
+
+          <table border="0" class="icontable" cellpadding="5" cellspacing="0">
 				<xsl:apply-templates mode="icontable"/>
 		 </table>
 		</xsl:when>


More information about the Libreoffice-commits mailing list