Make dialog preview stylesheet default to dark background

This commit is contained in:
2014-04-16 17:49:13 -04:00
parent caa461f8e7
commit 199f84e0db
2 changed files with 16 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
body {
background-image: url('img/bg/dark.png');
}
*:not(br) {
position: absolute;
display: block;

View File

@@ -11,15 +11,21 @@
<html> <!-- xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" -->
<head>
<title>Dialog Preview</title>
<title>Dialog Preview -
</title>
<script type='text/javascript'>
document.querySelector('title').innerHTML += window.location.pathname.split("/").pop();
</script>
<link rel='stylesheet' type='text/css' href='dialog.css'/>
</head>
<body>
<xsl:attribute name='style'>
background-image: url('img/bg/<xsl:value-of select='/dialog/@skin'/>.png');
</xsl:attribute>
<xsl:if test='/dialog/@skin = "dark"'>
<xsl:if test='/dialog/@skin'>
<xsl:attribute name='style'>
background-image: url('img/bg/<xsl:value-of select='/dialog/@skin'/>.png');
</xsl:attribute>
</xsl:if>
<xsl:if test='/dialog/@skin = "dark" or not(/dialog/@skin)'>
<xsl:attribute name='class'>dark</xsl:attribute>
</xsl:if>
<div class='dialog'>