diff --git a/openlp/core/lib/htmlbuilder.py b/openlp/core/lib/htmlbuilder.py
index 0c4a6821c..db5b84efb 100644
--- a/openlp/core/lib/htmlbuilder.py
+++ b/openlp/core/lib/htmlbuilder.py
@@ -58,18 +58,21 @@ body {
position: absolute;
left: 0px;
top: 0px;
- z-index:10;%s
+ z-index:10;
+ %s
}
#footer {
position: absolute;
- z-index:5;%s
+ z-index:5;
+ %s
}
/* lyric css */
%s
+
@@ -221,22 +229,13 @@ co-operating in qwebkit. https://bugs.webkit.org/show_bug.cgi?id=43187
Therefore one table for text, one for outline and one for shadow.
-->
-
-
-
@@ -268,11 +267,13 @@ def build_html(item, screen, alert, islive):
html = HTMLSRC % (width, height,
build_alert(alert, width),
build_footer(item),
- build_lyrics(item, islive),
+ build_lyrics(item),
+ u'true' if theme and theme.display_slideTransition and islive \
+ else u'false',
image)
return html
-def build_lyrics(item, islive):
+def build_lyrics(item):
"""
Build the video display div
@@ -280,15 +281,13 @@ def build_lyrics(item, islive):
Service Item containing theme and location information
"""
style = """
-.lyricscommon { position: absolute; %s }
-.lyricstable { z-index:4; %s }
-.lyricsoutlinetable { z-index:3; %s }
-.lyricsshadowtable { z-index:2; %s }
-.lyrics { %s }
-.lyricsoutline { %s }
-.lyricsshadow { %s }
-td { opacity: 1; %s }
-td.fadeout { opacity: 0; }
+ .lyricscommon { position: absolute; %s }
+ .lyricstable { z-index:4; %s }
+ .lyricsoutlinetable { z-index:3; %s }
+ .lyricsshadowtable { z-index:2; %s }
+ .lyrics { %s }
+ .lyricsoutline { %s }
+ .lyricsshadow { %s }
"""
theme = item.themedata
lyricscommon = u''
@@ -298,7 +297,6 @@ td.fadeout { opacity: 0; }
lyrics = u''
outline = u'display: none;'
shadow = u'display: none;'
- transition = u''
if theme:
lyricscommon = u'width: %spx; height: %spx; word-wrap: break-word; ' \
u'font-family: %s; font-size: %spt; color: %s; line-height: %d%%;' \
@@ -313,8 +311,6 @@ td.fadeout { opacity: 0; }
(item.main.x() + float(theme.display_shadow_size),
item.main.y() + float(theme.display_shadow_size))
align = u''
- if theme.display_slideTransition and islive:
- transition = u'-webkit-transition: opacity 1s linear;'
if theme.display_horizontalAlign == 2:
align = u'text-align:center;'
elif theme.display_horizontalAlign == 1:
@@ -342,7 +338,7 @@ td.fadeout { opacity: 0; }
if theme.display_shadow:
shadow = u'color: %s;' % (theme.display_shadow_color)
lyrics_html = style % (lyricscommon, lyricstable, outlinetable,
- shadowtable, lyrics, outline, shadow, transition)
+ shadowtable, lyrics, outline, shadow)
return lyrics_html
def build_footer(item):