mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-25 10:57:40 +02:00
LessCompiler: fix #layout usage in module CSS
This commit is contained in:
parent
6aab5d889e
commit
97b5800f32
@ -155,18 +155,16 @@ class LessCompiler
|
|||||||
$moduleCss .= '}';
|
$moduleCss .= '}';
|
||||||
}
|
}
|
||||||
|
|
||||||
$moduleCss = preg_replace(
|
|
||||||
'/(\.icinga-module\.module-[^\s]+) (#layout\.[^\s]+)/m',
|
|
||||||
'\2 \1',
|
|
||||||
$moduleCss
|
|
||||||
);
|
|
||||||
|
|
||||||
$this->source .= $moduleCss;
|
$this->source .= $moduleCss;
|
||||||
|
|
||||||
if ($this->theme !== null) {
|
if ($this->theme !== null) {
|
||||||
$this->source .= file_get_contents($this->theme);
|
$this->source .= file_get_contents($this->theme);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->lessc->compile($this->source);
|
return preg_replace(
|
||||||
|
'/(\.icinga-module\.module-[^\s]+) (#layout\.[^\s]+)/m',
|
||||||
|
'\2 \1',
|
||||||
|
$this->lessc->compile($this->source)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user