1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-06 22:56:46 +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");

View File

@@ -1,6 +1,5 @@
/** @author Robert Mesaros, https://www.rmsoft.sk */
@media (prefers-color-scheme: dark) {
body { color: #829bb0; background: #002240; }
a { color: #517fa8; }
a:visited { color: #517fa8; }
@@ -46,4 +45,3 @@
#schema div.table a { color: #3c7bb3; }
#menu .active { color: #398c8d; }
#edit-fields tbody tr:hover td, #edit-fields tbody tr:hover th { background: #3b6f9d; }
}