1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-05 22:27:24 +02:00

Schema: Move style to CSS

This commit is contained in:
Jakub Vrana
2025-03-25 22:35:31 +01:00
parent eac7d042ed
commit 67fa4c2a6f
4 changed files with 5 additions and 5 deletions

View File

@@ -202,6 +202,9 @@ if (!$translations) {
}
function minify_css($file) {
$file = preg_replace_callback('~url\((\w+\.(gif))\)~', function ($match) {
return "url(data:image/$match[2];base64," . base64_encode(file_get_contents(__DIR__ . "/adminer/static/$match[1]")) . ")";
}, $file);
return lzw_compress(preg_replace('~\s*([:;{},])\s*~', '\1', preg_replace('~/\*.*?\*/\s*~s', '', $file)));
}