1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 10:04:07 +02:00

CSS: Move media selector to <link>

This commit is contained in:
Jakub Vrana
2025-03-13 17:55:42 +01:00
parent 041e7064ca
commit 9226804aa2
2 changed files with 46 additions and 48 deletions

View File

@@ -36,7 +36,7 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") {
echo "<link rel='stylesheet' href='" . h($val) . "'>\n";
}
} else {
echo "<link rel='stylesheet' href='../adminer/static/dark.css'>\n";
echo "<link rel='stylesheet' media='(prefers-color-scheme: dark)' href='../adminer/static/dark.css'>\n";
}
echo script_src("../adminer/static/functions.js");
echo script_src("static/editing.js");