summaryrefslogtreecommitdiff
path: root/xsl
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2016-07-03 21:38:03 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2016-07-03 21:38:03 +0200
commit74f353bea50895bee0f95cb8771ca43119e7436b (patch)
treefc91579e7dbfa22d5b12b518aca44b6ec7113dc5 /xsl
parent649247898e9d8e450b49f74f129222bb4fe42af2 (diff)
downloadmutti-web-74f353bea50895bee0f95cb8771ca43119e7436b.tar.gz
mutti-web-74f353bea50895bee0f95cb8771ca43119e7436b.tar.bz2
mutti-web-74f353bea50895bee0f95cb8771ca43119e7436b.zip
Postcss (for css3 variables) and minify our stylesshet
We do need a css3 variable transformation for internet explorer. We do check in the minifed sourcecode into git. We don't want to have to install node_modules on our deployment server. Note that the *.xml files opened directly in the browser will not use the minified, but the original stylesheet (thus there's no need for a watcher script while development)
Diffstat (limited to 'xsl')
-rw-r--r--xsl/common.xsl1
-rw-r--r--xsl/layout.xsl2
2 files changed, 2 insertions, 1 deletions
diff --git a/xsl/common.xsl b/xsl/common.xsl
index b0fa8b1..f9387dc 100644
--- a/xsl/common.xsl
+++ b/xsl/common.xsl
@@ -15,6 +15,7 @@
<xsl:variable name="filename" select="/s:html/@name" />
<xsl:variable name="title" select="document('../main.xml')/s:site/s:page[@filename = $filename]/@title" />
<xsl:param name="suffix" select="'.xml'" />
+ <xsl:param name="stylesheet" select="'style.css'" />
<xsl:output method="xml" indent="no" encoding="utf-8"
cdata-section-elements="script style"
diff --git a/xsl/layout.xsl b/xsl/layout.xsl
index 65f5825..2b21d37 100644
--- a/xsl/layout.xsl
+++ b/xsl/layout.xsl
@@ -19,7 +19,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="viewport" content="width=device-width" />
- <link rel="stylesheet" type="text/css" href="style/style.css" />
+ <link rel="stylesheet" type="text/css" href="style/{$stylesheet}" />
</head>
<body>
<header>