mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
parent
b14e7f5696
commit
4c8407e2b6
@ -45,6 +45,15 @@ class StyleSheet
|
|||||||
self::send(true);
|
self::send(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected static function fixModuleLayoutCss($css)
|
||||||
|
{
|
||||||
|
return preg_replace(
|
||||||
|
'/(\.icinga-module\.module-[^\s]+) (#layout\.[^\s]+)/m',
|
||||||
|
'\2 \1',
|
||||||
|
$css
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
public static function send($minified = false)
|
public static function send($minified = false)
|
||||||
{
|
{
|
||||||
$app = Icinga::app();
|
$app = Icinga::app();
|
||||||
@ -84,7 +93,7 @@ class StyleSheet
|
|||||||
if ($minified) {
|
if ($minified) {
|
||||||
$less->compress();
|
$less->compress();
|
||||||
}
|
}
|
||||||
$out = $less->compile();
|
$out = self::fixModuleLayoutCss($less->compile());
|
||||||
$cache->store($cacheFile, $out);
|
$cache->store($cacheFile, $out);
|
||||||
echo $out;
|
echo $out;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user