Skip to content

Commit

Permalink
Fix a bug in our CSS variable generation
Browse files Browse the repository at this point in the history
  • Loading branch information
mahagr committed May 3, 2012
1 parent 4445994 commit 5fa75ba
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -224,7 +224,9 @@ public function getStyleVariables() {
$xml = $this->params->getXml();
$variables = array();
foreach ($this->style_variables as $name=>$value) {
$variables[] = "\t{$name}:{$this->params->get($name)};";
$value = $this->params->get($name);
if ($value != '')
$variables[] = "\t{$name}:{$value};";
}
if ($variables) $this->compiled_style_variables = "@variables {\n".implode("\n", $variables)."\n}\n\n";
else $this->compiled_style_variables = '';
Expand Down Expand Up @@ -360,6 +362,7 @@ public function compileStyleSheet($source, $dest) {
'CompressUnitValues' => false,
'CompressExpressionValues' => false
);
CssMin::setVerbose(1);
$tokens = CssMin::minify($buffer, $filters, $plugins, false);
$buffer = new CssKunenaFormatter($tokens, "\t");
} else {
Expand Down

0 comments on commit 5fa75ba

Please sign in to comment.