Make dialog preview stylesheet default to dark background
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
body {
|
||||||
|
background-image: url('img/bg/dark.png');
|
||||||
|
}
|
||||||
|
|
||||||
*:not(br) {
|
*:not(br) {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: block;
|
display: block;
|
||||||
|
|||||||
@@ -11,15 +11,21 @@
|
|||||||
|
|
||||||
<html> <!-- xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" -->
|
<html> <!-- xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" -->
|
||||||
<head>
|
<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'/>
|
<link rel='stylesheet' type='text/css' href='dialog.css'/>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<xsl:attribute name='style'>
|
<xsl:if test='/dialog/@skin'>
|
||||||
background-image: url('img/bg/<xsl:value-of select='/dialog/@skin'/>.png');
|
<xsl:attribute name='style'>
|
||||||
</xsl:attribute>
|
background-image: url('img/bg/<xsl:value-of select='/dialog/@skin'/>.png');
|
||||||
<xsl:if test='/dialog/@skin = "dark"'>
|
</xsl:attribute>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:if test='/dialog/@skin = "dark" or not(/dialog/@skin)'>
|
||||||
<xsl:attribute name='class'>dark</xsl:attribute>
|
<xsl:attribute name='class'>dark</xsl:attribute>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<div class='dialog'>
|
<div class='dialog'>
|
||||||
|
|||||||
Reference in New Issue
Block a user